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/paint-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/paint-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- Enter the room length used in the calculation.
room_width· number · required- Enter the room width used in the calculation.
wall_height· number · required- Enter the wall height used in the calculation.
doors· number · optional- Enter the standard doors used in the calculation.
windows· number · optional- Enter the standard windows used in the calculation.
coats· number · required- Enter the number of coats used in the calculation.
coverage_per_gallon· number · required- Enter the paint coverage used in the calculation.
include_ceiling· boolean · optional- Turn include ceiling on or off.
waste_percent· number · required- Enter the extra paint allowance used in the calculation.
{
"type": "object",
"properties": {
"room_length": {
"type": "number",
"description": "Enter the room length used in the calculation.",
"minimum": 0
},
"room_width": {
"type": "number",
"description": "Enter the room width used in the calculation.",
"minimum": 0
},
"wall_height": {
"type": "number",
"description": "Enter the wall height used in the calculation.",
"minimum": 0
},
"doors": {
"type": "number",
"description": "Enter the standard doors used in the calculation.",
"minimum": 0
},
"windows": {
"type": "number",
"description": "Enter the standard windows used in the calculation.",
"minimum": 0
},
"coats": {
"type": "number",
"description": "Enter the number of coats used in the calculation.",
"minimum": 1,
"maximum": 10
},
"coverage_per_gallon": {
"type": "number",
"description": "Enter the paint coverage used in the calculation.",
"minimum": 1
},
"include_ceiling": {
"type": "boolean",
"description": "Turn include ceiling on or off."
},
"waste_percent": {
"type": "number",
"description": "Enter the extra paint allowance used in the calculation."
}
},
"required": [
"room_length",
"room_width",
"wall_height",
"coats",
"coverage_per_gallon",
"waste_percent"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
paintable_area· number- Paintable area per coat produced by the calculation.
coated_area· number- Total coated area produced by the calculation.
gallons_exact· number- Exact gallons produced by the calculation.
gallons_to_buy· number- Whole gallons to buy produced by the calculation.
{
"type": "object",
"properties": {
"paintable_area": {
"type": "number",
"description": "Paintable area per coat produced by the calculation."
},
"coated_area": {
"type": "number",
"description": "Total coated area produced by the calculation."
},
"gallons_exact": {
"type": "number",
"description": "Exact gallons produced by the calculation."
},
"gallons_to_buy": {
"type": "number",
"description": "Whole gallons to buy produced by the calculation."
}
},
"additionalProperties": false
}
Paint 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/paint-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"room_length": 15,
"room_width": 12,
"wall_height": 9,
"doors": 2,
"windows": 3,
"coats": 2,
"coverage_per_gallon": 350,
"include_ceiling": false,
"waste_percent": 10
}'
{
"ok": true,
"data": {
"slug": "paint-calculator",
"result": {
"values": {
"paintable_area": 399,
"coated_area": 798,
"gallons_exact": 2.50800000000000000710542735760100185871124267578125,
"gallons_to_buy": 3
},
"display": {
"display": "399"
},
"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.