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/sand-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/sand-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 area length used in the calculation.
width· number · required- Enter the area width used in the calculation.
depth· number · required- Enter the sand depth used in the calculation.
density_lb_per_cubic_yard· number · required- Enter the bulk density used in the calculation.
waste_percent· number · required- Enter the compaction and waste allowance used in the calculation.
bag_weight· number · optional- Enter the bag weight used in the calculation.
{
"type": "object",
"properties": {
"length": {
"type": "number",
"description": "Enter the area length used in the calculation.",
"minimum": 0
},
"width": {
"type": "number",
"description": "Enter the area width used in the calculation.",
"minimum": 0
},
"depth": {
"type": "number",
"description": "Enter the sand depth used in the calculation.",
"minimum": 0
},
"density_lb_per_cubic_yard": {
"type": "number",
"description": "Enter the bulk density used in the calculation.",
"minimum": 1
},
"waste_percent": {
"type": "number",
"description": "Enter the compaction and waste allowance used in the calculation."
},
"bag_weight": {
"type": "number",
"description": "Enter the bag weight used in the calculation.",
"minimum": 0.01000000000000000020816681711721685132943093776702880859375
}
},
"required": [
"length",
"width",
"depth",
"density_lb_per_cubic_yard",
"waste_percent"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
cubic_yards· number- Sand volume produced by the calculation.
tons· number- Estimated weight produced by the calculation.
pounds· number- Estimated pounds produced by the calculation.
bags_needed· number- Bags needed produced by the calculation.
{
"type": "object",
"properties": {
"cubic_yards": {
"type": "number",
"description": "Sand volume produced by the calculation."
},
"tons": {
"type": "number",
"description": "Estimated weight produced by the calculation."
},
"pounds": {
"type": "number",
"description": "Estimated pounds produced by the calculation."
},
"bags_needed": {
"type": "number",
"description": "Bags needed produced by the calculation."
}
},
"additionalProperties": false
}
Sand 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/sand-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"length": 20,
"width": 12,
"depth": 2,
"density_lb_per_cubic_yard": 2700,
"waste_percent": 10,
"bag_weight": 50
}'
{
"ok": true,
"data": {
"slug": "sand-calculator",
"result": {
"values": {
"cubic_yards": 1.62999999999999989341858963598497211933135986328125,
"tons": 2.20000000000000017763568394002504646778106689453125,
"pounds": 4400,
"bags_needed": 88
},
"display": {
"display": "1.63"
},
"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.