Skip to main content
Glama

PoolPro: pool chemical calculator

Free chlorine level for your CYA and ideal pool levels

get_pool_chlorine_targets
Read-onlyIdempotent

What free chlorine (FC) a pool needs at its cyanuric acid (CYA, stabilizer) level: minimum, target range and SLAM / shock level from TFP's "Free Chlorine and Cyanuric Acid Relationship" chart (CYA rounded up to the next 10; above 100 ppm the 100 row is scaled and flagged), separate rows for salt water generators. Also the ideal and acceptable pH, total alkalinity, calcium hardness and CYA ranges: TFP Recommended Levels, or pool-store / health-code levels (Maryland Department of Health, ANSI/APSP/ICC-11).

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": {
      "cyanuric_acid": "<cyanuric_acid>"
    },
    "name": "get_pool_chlorine_targets"
  }
}

Input Schema

NameRequiredDescriptionDefault
surfaceNoplaster
approachNotfp
sanitizerNoliquid
cyanuric_acidYesCYA (stabilizer), ppm

Output Schema

NameRequiredDescriptionDefault
phYes
moreYes
sourceYes
chart_row_cyaYesThe CYA row read: the reading rounded up to the next 10, 20 to 100
free_chlorineYes
salt_target_ppmYes
cyanuric_acid_ppmYes
daily_fc_target_ppmYesWhat a chlorine dose tops up to: top of the range, or the bottom for a salt water generator that keeps making chlorine
calcium_hardness_ppmYes
total_alkalinity_ppmYes
cyanuric_acid_range_ppmYes
combined_chlorine_max_ppmYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/closed-world, so the bar is lower, and the description still adds real behavioral detail: CYA is rounded up to the next 10, values above 100 ppm use a scaled and flagged 100 row, and salt-water-generator pools get separate rows. It does not say how the two standards (TFP vs. store/health-code) differ in output shape, but the computation caveats are well disclosed.

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?

Two dense sentences, front-loaded with the primary answer (FC targets from CYA) before the secondary ideal-range content. The parentheticals earn their place by explaining rounding and scaling, though the second sentence is long and packs two distinct standards together.

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 present, return values need not be described, and the description covers the non-obvious computation rules and the two reference standards. The main gap is that the surface parameter's effect on results is never addressed, which matters for a 4-parameter tool with low schema coverage.

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

Parameters3/5

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

Schema coverage is only 25%, with just cyanuric_acid documented, so the description must compensate. It does explain the CYA input and implies the sanitizer=swg case via 'separate rows for salt water generators', and the approach choice via the two named standards, but the 'surface' parameter (plaster/vinyl/fiberglass) is never mentioned, leaving one enum unexplained in both schema and description.

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

Purpose4/5

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

The description gives a specific verb-and-resource statement: it returns free chlorine minimum, target range and SLAM level for a given CYA, plus ideal pH/TA/CH/CYA ranges. That is clearly a reference-lookup tool, distinguishable in kind from calculate_pool_volume, calculate_pool_water_balance and plan_pool_chemical_doses, though no sibling is named explicitly.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer it should call this when it needs target chemistry values rather than doses. There is no explicit when-to-use, when-not-to-use, or pointer to plan_pool_chemical_doses for the dosing step that naturally follows.

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.