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/driveway-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/driveway-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 driveway length.
width· number · required- Enter driveway width.
depth· number · required- Enter material depth.
waste· number · required- Enter waste allowance.
cost_per_yard· number · required- Enter cost per cubic yard.
{
"type": "object",
"properties": {
"length": {
"type": "number",
"description": "Enter driveway length."
},
"width": {
"type": "number",
"description": "Enter driveway width."
},
"depth": {
"type": "number",
"description": "Enter material depth."
},
"waste": {
"type": "number",
"description": "Enter waste allowance."
},
"cost_per_yard": {
"type": "number",
"description": "Enter cost per cubic yard."
}
},
"required": [
"length",
"width",
"depth",
"waste",
"cost_per_yard"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
cubic_yards· number- Material volume produced by the tool.
square_feet· number- Surface area produced by the tool.
estimated_cost· number- Estimated material cost produced by the tool.
{
"type": "object",
"properties": {
"cubic_yards": {
"type": "number",
"description": "Material volume produced by the tool."
},
"square_feet": {
"type": "number",
"description": "Surface area produced by the tool."
},
"estimated_cost": {
"type": "number",
"description": "Estimated material cost produced by the tool."
}
},
"additionalProperties": false
}
Driveway 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/driveway-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"length": 60,
"width": 12,
"depth": 4,
"waste": 10,
"cost_per_yard": 145
}'
{
"ok": true,
"data": {
"slug": "driveway-calculator",
"result": {
"values": {
"cubic_yards": 9.7799999999999993605115378159098327159881591796875,
"square_feet": 720,
"estimated_cost": 1417.779999999999972715158946812152862548828125
},
"display": {
"display": "9.78"
},
"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.