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/tile-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/tile-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.
room_length· number · required- No field description is available.
room_width· number · required- No field description is available.
tile_length· number · required- No field description is available.
tile_width· number · required- No field description is available.
waste_percent· number · required- No field description is available.
tiles_per_box· integer · optional- No field description is available.
{
"type": "object",
"properties": {
"room_length": {
"type": "number",
"exclusiveMinimum": 0
},
"room_width": {
"type": "number",
"exclusiveMinimum": 0
},
"tile_length": {
"type": "number",
"exclusiveMinimum": 0
},
"tile_width": {
"type": "number",
"exclusiveMinimum": 0
},
"waste_percent": {
"type": "number",
"minimum": 0
},
"tiles_per_box": {
"type": "integer",
"minimum": 1
}
},
"required": [
"room_length",
"room_width",
"tile_length",
"tile_width",
"waste_percent"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
tiles_needed· number- No field description is available.
tiles_without_waste· number- No field description is available.
extra_tiles· number- No field description is available.
boxes_needed· number- No field description is available.
room_area_sq_ft· number- No field description is available.
tile_area_sq_ft· number- No field description is available.
coverage_area_sq_ft· number- No field description is available.
waste_percent· number- No field description is available.
{
"type": "object",
"properties": {
"tiles_needed": {
"type": "number"
},
"tiles_without_waste": {
"type": "number"
},
"extra_tiles": {
"type": "number"
},
"boxes_needed": {
"type": "number"
},
"room_area_sq_ft": {
"type": "number"
},
"tile_area_sq_ft": {
"type": "number"
},
"coverage_area_sq_ft": {
"type": "number"
},
"waste_percent": {
"type": "number"
}
},
"additionalProperties": false
}
12 × 10 foot room with 12-inch tile
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/tile-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"room_length": 12,
"room_width": 10,
"tile_length": 12,
"tile_width": 12,
"waste_percent": 10,
"tiles_per_box": 10
}'
{
"ok": true,
"data": {
"slug": "tile-calculator",
"result": {
"values": {
"tiles_needed": 132,
"tiles_without_waste": 120,
"extra_tiles": 12,
"boxes_needed": 14,
"room_area_sq_ft": 120,
"tile_area_sq_ft": 1,
"coverage_area_sq_ft": 132,
"waste_percent": 10
},
"display": {
"display": "132"
},
"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.