Skip to main content
Glama

Simple House Planner

Pool volume calculator

calculate_pool_volume
Read-only

Use this when someone asks how many gallons or liters of water a swimming pool holds. Calculates the water in a swimming pool: the water surface in square meters, the average depth, liters and US gallons. Shapes: rectangle (length, width), round (diameter), oval with straight sides and half-circle ends (length, width), ellipse (length, width), and kidney (length, width across the larger round end, narrowWidth across the smaller one; area 0.45 × (A + B) × length, an approximation used in the pool trade). Give depth for a flat floor, or shallow and deep for a floor that slopes from one end to the other; the average depth is their mean.

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>"
    },
    "name": "calculate_pool_volume"
  }
}

Input Schema

NameRequiredDescriptionDefault
deepNoWater depth at the deep end of a pool whose floor slopes, in millimeters.
depthNoWater depth of a pool with a flat floor, in millimeters.
shapeYesThe pool's shape.
widthNoWidth of a rectangle, oval or ellipse pool, or of a kidney pool across its larger round end, in millimeters.
lengthNoOverall length of a rectangle, oval, ellipse or kidney pool, in millimeters.
shallowNoWater depth at the shallow end of a pool whose floor slopes, in millimeters.
diameterNoDiameter of a round pool, in millimeters.
narrowWidthNoWidth of a kidney pool across its smaller round end, in millimeters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish this is a read-only, closed-world, non-destructive computation, so the bar is lower. The description still adds real value: it discloses the kidney-shape area formula and explicitly flags it as 'an approximation used in the pool trade', and explains that sloped floors are handled by averaging shallow and deep. It does not state units for the returned values' precision or rounding, which is the only notable omission.

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 when-to-use condition is front-loaded and the shape/parameter mapping follows logically. It is dense but nearly every clause carries information; the kidney formula and its approximation caveat are the only portion that could be trimmed for a casual caller, though they are genuinely useful for correctness.

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

Completeness5/5

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

There is no output schema, and the description compensates by naming all returned quantities and their units. Inputs are all in millimeters per the schema, the shape-specific parameter requirements are spelled out, and the flat-vs-sloped depth choice is explained, leaving nothing an agent needs missing.

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 100%, so the baseline is 3, but the description earns more by documenting conditional parameter relationships the schema cannot express: which dimensions each shape needs (length/width for rectangle/oval/ellipse, diameter for round, and the A/B widths for kidney) and that depth is for flat floors while shallow+deep are for sloped ones. The kidney formula further clarifies how length, width and narrowWidth combine.

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?

States a specific verb and resource ('Calculates the water in a swimming pool') and enumerates exactly what is returned: surface area in square meters, average depth, liters and US gallons. The five supported shapes are listed, so an agent can tell immediately this is not one of the other calculate_* tools such as calculate_floor_area or calculate_concrete.

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?

The opening sentence gives an explicit trigger: 'Use this when someone asks how many gallons or liters of water a swimming pool holds.' That is a clear use condition, but there are no exclusions and no named alternatives for adjacent cases (e.g. hot tubs, partial fills), so it stops 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.

Resources