Overview
- Category
- Construction
- API mode
not_available- Processing
- client-side
- Privacy
- no-data-stored
Public descriptor
The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.
GET /api/v1/tools/decking-calculator
Execute availability
This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.
POST /api/v1/tools/decking-calculator/execute
Authentication is not issued during the preview. A bearer API key is planned for execution after launch.
Input schema
object object; additional properties are not accepted.
deck_length· number · required- Enter the deck length used in the calculation.
deck_width· number · required- Enter the deck width used in the calculation.
board_width· number · required- Enter the actual board width used in the calculation.
gap· number · required- Enter the gap between boards used in the calculation.
board_length· number · required- Enter the available board length used in the calculation.
waste_percent· number · required- Enter the cut and waste allowance used in the calculation.
price_per_board· number · optional- Enter the price per board used in the calculation.
{
"type": "object",
"properties": {
"deck_length": {
"type": "number",
"description": "Enter the deck length used in the calculation.",
"minimum": 0
},
"deck_width": {
"type": "number",
"description": "Enter the deck width used in the calculation.",
"minimum": 0
},
"board_width": {
"type": "number",
"description": "Enter the actual board width used in the calculation.",
"minimum": 0.01000000000000000020816681711721685132943093776702880859375
},
"gap": {
"type": "number",
"description": "Enter the gap between boards used in the calculation.",
"minimum": 0
},
"board_length": {
"type": "number",
"description": "Enter the available board length used in the calculation.",
"minimum": 0.01000000000000000020816681711721685132943093776702880859375
},
"waste_percent": {
"type": "number",
"description": "Enter the cut and waste allowance used in the calculation."
},
"price_per_board": {
"type": "number",
"description": "Enter the price per board used in the calculation.",
"minimum": 0
}
},
"required": [
"deck_length",
"deck_width",
"board_width",
"gap",
"board_length",
"waste_percent"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
deck_area· number- Deck surface area produced by the calculation.
board_rows· number- Board rows produced by the calculation.
boards_needed· number- Boards needed produced by the calculation.
linear_feet· number- Total board length produced by the calculation.
fasteners_estimate· number- Estimated fasteners produced by the calculation.
estimated_board_cost· number- Estimated board cost produced by the calculation.
{
"type": "object",
"properties": {
"deck_area": {
"type": "number",
"description": "Deck surface area produced by the calculation."
},
"board_rows": {
"type": "number",
"description": "Board rows produced by the calculation."
},
"boards_needed": {
"type": "number",
"description": "Boards needed produced by the calculation."
},
"linear_feet": {
"type": "number",
"description": "Total board length produced by the calculation."
},
"fasteners_estimate": {
"type": "number",
"description": "Estimated fasteners produced by the calculation."
},
"estimated_board_cost": {
"type": "number",
"description": "Estimated board cost produced by the calculation."
}
},
"additionalProperties": false
}
Decking Calculator example
The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.
curl -X POST "https://utilitypages.org/api/v1/tools/decking-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"deck_length": 16,
"deck_width": 12,
"board_width": 5.5,
"gap": 0.25,
"board_length": 16,
"waste_percent": 10,
"price_per_board": 18.5
}'
{
"ok": true,
"data": {
"slug": "decking-calculator",
"result": {
"values": {
"deck_area": 192,
"board_rows": 26,
"boards_needed": 29,
"linear_feet": 457.6000000000000227373675443232059478759765625,
"fasteners_estimate": 677,
"estimated_board_cost": 536.5
},
"display": {
"display": "192"
},
"warnings": [],
"assumptions": [],
"steps": []
}
},
"meta": [],
"request_id": "req_example_123"
}
Errors
api_not_launched· 503- Returned by the current launch gate for every execute request.
invalid_json· 400- Returned when an enabled execute request does not contain valid JSON.
validation_failed· 422- Returned when a request does not satisfy the input schema.
browser_interaction_required· 422- Returned for browser capability tools instead of inventing a server-side result.
tool_not_found· 404- Returned when a requested descriptor slug does not exist.
execution_failed· 503- Returned when an enabled server-side execution cannot complete.