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/lumber-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/lumber-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.
quantity· number · required- Enter board quantity.
thickness· number · required- Enter nominal thickness.
width· number · required- Enter nominal width.
length· number · required- Enter length.
waste· number · required- Enter waste allowance.
{
"type": "object",
"properties": {
"quantity": {
"type": "number",
"description": "Enter board quantity."
},
"thickness": {
"type": "number",
"description": "Enter nominal thickness."
},
"width": {
"type": "number",
"description": "Enter nominal width."
},
"length": {
"type": "number",
"description": "Enter length."
},
"waste": {
"type": "number",
"description": "Enter waste allowance."
}
},
"required": [
"quantity",
"thickness",
"width",
"length",
"waste"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
board_feet· number- Board feet produced by the tool.
purchase_board_feet· number- Board feet including waste produced by the tool.
cubic_feet· number- Approximate cubic feet produced by the tool.
{
"type": "object",
"properties": {
"board_feet": {
"type": "number",
"description": "Board feet produced by the tool."
},
"purchase_board_feet": {
"type": "number",
"description": "Board feet including waste produced by the tool."
},
"cubic_feet": {
"type": "number",
"description": "Approximate cubic feet produced by the tool."
}
},
"additionalProperties": false
}
Lumber Calculator worked 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/lumber-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"quantity": 24,
"thickness": 2,
"width": 8,
"length": 10,
"waste": 10
}'
{
"ok": true,
"data": {
"slug": "lumber-calculator",
"result": {
"values": {
"board_feet": 320,
"purchase_board_feet": 352,
"cubic_feet": 26.666667000000000342652128892950713634490966796875
},
"display": {
"display": "320"
},
"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.