Skip to main content
Glama

PoolPro: pool chemical calculator

Pool volume in gallons or litres from its shape

calculate_pool_volume
Read-onlyIdempotent

How 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

NameRequiredDescriptionDefault
shapeYesFreeform or kidney: use the closest shape
widthNoNot for round pools
lengthYesLength, or the diameter of a round pool
deep_depthNoEmpty for a pool of even depth
shallow_depthYes
dimension_unitNoft

Output Schema

NameRequiredDescriptionDefault
moreYes
litresYes
formulaYes
roundedYesAs people say a pool's size: to 100 above 1,000, else to 10
us_gallonsYes
average_depthYes
dimension_unitYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare read-only, idempotent, non-destructive behavior. The description adds meaningful behavioral context beyond annotations: the exact TFP Pool Math formulas by shape, depth averaging, and unit conversion constants. It does not discuss limitations or edge cases, but the annotations and output schema carry much of that burden.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core question and then supplies compact formulas and conversion facts. It is dense but appropriate for a calculation tool; the phrase 'the way TFP Pool Math works it out' is minor framing rather than wasted space.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema and annotations present, the definition is largely complete for a read-only calculation tool. It covers the computational model and units, though it could more explicitly connect its output to the sibling dose-planning workflow.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67%, so some parameter meaning is already structured, especially enum and null guidance. The description adds substantial meaning by mapping shapes to formula terms (rectangle, round, oval), explaining depth averaging, and giving unit conversions for ft and m.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb-like computation and resource: calculating pool volume in gallons or litres from shape and depth measurements. It clearly distinguishes this from sibling dose/chlorine/water-balance tools by focusing only on volume derivation via formulas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives useful context by saying 'Dose calculators need this volume,' implying this tool should be used before dosing calculations. It does not explicitly name a sibling or state when not to use it, so it falls short of full when/when-not guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.