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/pool-volume-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/pool-volume-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.
shape· string · required-
Enter the pool shape used by this tool. Accepted values:
rectangle, round, oval. length· number · required- Enter the length or oval long axis used by this tool.
width· number · required- Enter the width or diameter used by this tool.
shallow_depth· number · required- Enter the shallow depth used by this tool.
deep_depth· number · required- Enter the deep depth used by this tool.
{
"type": "object",
"properties": {
"shape": {
"type": "string",
"description": "Enter the pool shape used by this tool.",
"enum": [
"rectangle",
"round",
"oval"
]
},
"length": {
"type": "number",
"description": "Enter the length or oval long axis used by this tool.",
"minimum": 0
},
"width": {
"type": "number",
"description": "Enter the width or diameter used by this tool.",
"minimum": 0
},
"shallow_depth": {
"type": "number",
"description": "Enter the shallow depth used by this tool.",
"minimum": 0
},
"deep_depth": {
"type": "number",
"description": "Enter the deep depth used by this tool.",
"minimum": 0
}
},
"required": [
"shape",
"length",
"width",
"shallow_depth",
"deep_depth"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
gallons· number- Pool volume produced by the tool.
liters· number- Volume in liters produced by the tool.
cubic_feet· number- Volume in cubic feet produced by the tool.
average_depth· number- Average depth produced by the tool.
surface_area· number- Water surface area produced by the tool.
{
"type": "object",
"properties": {
"gallons": {
"type": "number",
"description": "Pool volume produced by the tool."
},
"liters": {
"type": "number",
"description": "Volume in liters produced by the tool."
},
"cubic_feet": {
"type": "number",
"description": "Volume in cubic feet produced by the tool."
},
"average_depth": {
"type": "number",
"description": "Average depth produced by the tool."
},
"surface_area": {
"type": "number",
"description": "Water surface area produced by the tool."
}
},
"additionalProperties": false
}
Pool Volume 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/pool-volume-calculator/execute" \
-H "Content-Type: application/json" \
-d '{
"shape": "rectangle",
"length": 30,
"width": 15,
"shallow_depth": 3.5,
"deep_depth": 7
}'
{
"ok": true,
"data": {
"slug": "pool-volume-calculator",
"result": {
"values": {
"gallons": 17672.72999999999956344254314899444580078125,
"liters": 66898.550000000002910383045673370361328125,
"cubic_feet": 2362.5,
"average_depth": 5.25,
"surface_area": 450
},
"display": {
"display": "17672.73"
},
"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.