Pool volume in gallons or litres from its shape
calculate_pool_volumeHow many gallons or litres a swimming pool holds, the way TFP Pool Math works it out: rectangle length × width, round π/4 × diameter², oval length × width − (1 − π/4) × width²; times the average of the shallow and deep end depths. 1 ft³ = 7.48 US gal; 1 m³ = 1,000 L. Dose calculators need this volume.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"shape": "<shape>",
"length": "<length>",
"shallow_depth": "<shallow_depth>"
},
"name": "calculate_pool_volume"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shape | Yes | Freeform or kidney: use the closest shape | |
| width | No | Not for round pools | |
| length | Yes | Length, or the diameter of a round pool | |
| deep_depth | No | Empty for a pool of even depth | |
| shallow_depth | Yes | ||
| dimension_unit | No | ft |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| more | Yes | ||
| litres | Yes | ||
| formula | Yes | ||
| rounded | Yes | As people say a pool's size: to 100 above 1,000, else to 10 | |
| us_gallons | Yes | ||
| average_depth | Yes | ||
| dimension_unit | Yes |