Overview
- Category
- Construction
- API mode
execute- 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/stair-calculator
Execute availability
This tool has an execute route defined by its descriptor. Server-side execution is currently unavailable, so requests return api_not_launched.
POST /api/v1/tools/stair-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.
total_rise· number · required- Enter the finished floor-to-floor vertical rise in inches.
target_riser· number · required- Enter the riser height you are aiming for in inches before the final riser count is rounded.
tread_depth· number · required- Enter the planned horizontal tread depth in inches.
{
"type": "object",
"properties": {
"total_rise": {
"type": "number",
"description": "Enter the finished floor-to-floor vertical rise in inches."
},
"target_riser": {
"type": "number",
"description": "Enter the riser height you are aiming for in inches before the final riser count is rounded."
},
"tread_depth": {
"type": "number",
"description": "Enter the planned horizontal tread depth in inches."
}
},
"required": [
"total_rise",
"target_riser",
"tread_depth"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
risers· number- No field description is available.
riser_height· number- No field description is available.
treads· number- No field description is available.
total_run· number- No field description is available.
stringer_length· number- No field description is available.
angle_degrees· number- No field description is available.
{
"type": "object",
"properties": {
"risers": {
"type": "number"
},
"riser_height": {
"type": "number"
},
"treads": {
"type": "number"
},
"total_run": {
"type": "number"
},
"stringer_length": {
"type": "number"
},
"angle_degrees": {
"type": "number"
}
},
"additionalProperties": false
}
108-inch floor-to-floor rise
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/stair-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"total_rise": 108,
"target_riser": 7,
"tread_depth": 10
}'
{
"ok": true,
"data": {
"slug": "stair-calculator",
"result": {
"values": {
"risers": 15,
"riser_height": 7.20000000000000017763568394002504646778106689453125,
"treads": 14,
"total_run": 140,
"stringer_length": 176.816000000000002501110429875552654266357421875,
"angle_degrees": 37.64999999999999857891452847979962825775146484375
},
"display": {
"display": "15"
},
"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.