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/flooring-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/flooring-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.
length· number · required- Enter the room length used in the calculation.
width· number · required- Enter the room width used in the calculation.
waste_percent· number · required- Enter the cut and waste allowance used in the calculation.
coverage_per_box· number · required- Enter the coverage per box used in the calculation.
price_per_sq_ft· number · optional- Enter the price per square foot used in the calculation.
{
"type": "object",
"properties": {
"length": {
"type": "number",
"description": "Enter the room length used in the calculation.",
"minimum": 0
},
"width": {
"type": "number",
"description": "Enter the room width used in the calculation.",
"minimum": 0
},
"waste_percent": {
"type": "number",
"description": "Enter the cut and waste allowance used in the calculation."
},
"coverage_per_box": {
"type": "number",
"description": "Enter the coverage per box used in the calculation.",
"minimum": 0.01000000000000000020816681711721685132943093776702880859375
},
"price_per_sq_ft": {
"type": "number",
"description": "Enter the price per square foot used in the calculation.",
"minimum": 0
}
},
"required": [
"length",
"width",
"waste_percent",
"coverage_per_box"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
floor_area· number- Floor area produced by the calculation.
material_area· number- Material including waste produced by the calculation.
boxes_needed· number- Boxes needed produced by the calculation.
purchased_coverage· number- Purchased coverage produced by the calculation.
estimated_material_cost· number- Estimated material cost produced by the calculation.
{
"type": "object",
"properties": {
"floor_area": {
"type": "number",
"description": "Floor area produced by the calculation."
},
"material_area": {
"type": "number",
"description": "Material including waste produced by the calculation."
},
"boxes_needed": {
"type": "number",
"description": "Boxes needed produced by the calculation."
},
"purchased_coverage": {
"type": "number",
"description": "Purchased coverage produced by the calculation."
},
"estimated_material_cost": {
"type": "number",
"description": "Estimated material cost produced by the calculation."
}
},
"additionalProperties": false
}
Flooring 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/flooring-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"length": 18,
"width": 14,
"waste_percent": 10,
"coverage_per_box": 22.5,
"price_per_sq_ft": 4.25
}'
{
"ok": true,
"data": {
"slug": "flooring-calculator",
"result": {
"values": {
"floor_area": 252,
"material_area": 277.19999999999998863131622783839702606201171875,
"boxes_needed": 13,
"purchased_coverage": 292.5,
"estimated_material_cost": 1178.09999999999990905052982270717620849609375
},
"display": {
"display": "252"
},
"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.