Skip to main content
Glama

PoolPro: pool chemical calculator

Pool chemical doses from a water test

plan_pool_chemical_doses
Read-onlyIdempotent

How much pool chemical to add after a water test: liquid chlorine, bleach, cal-hypo, dichlor or trichlor to raise free chlorine (FC); muriatic acid or dry acid to lower pH; soda ash or borax to raise pH; baking soda to raise total alkalinity (TA); calcium chloride for calcium hardness (CH); stabilizer for cyanuric acid (CYA); and salt for a salt water chlorine generator (SWG). Doses come in the order to add them, each worked out on the water the one before it leaves (baking soda nudges pH up, acid lowers TA), for the strength on the user's own label. ppm × litres ÷ 1000 = grams of pure chemical; pH doses from a carbonate model that counts TA, CYA and borates; chlorine targets from TFP's FC/CYA chart (or pool-store levels); CSI and LSI before and after. Checked against TFP Pool Math.

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": {
      "pool_volume": "<pool_volume>"
    },
    "name": "plan_pool_chemical_doses"
  }
}

Input Schema

NameRequiredDescriptionDefault
phNo
saltNoppm, salt water pools
slamNoSLAM (shock) mode: chlorine to TFP's SLAM level for the CYA
unitsNous: gallons, °F, fl oz and oz; metric: litres, °C, mL and gus
boratesNoppm as boron
surfaceNoplaster
approachNotfp: Trouble Free Pool levels, chlorine tied to CYA; store: pool-store / health-code levels, FC 1.5–3 ppm at any CYAtfp
productsNoThe user's own products, one per job; any job not listed uses liquid chlorine 10 %, muriatic acid 31.45 %, borax, baking soda, calcium chloride 77 % flake, granular stabilizer, pool salt
sanitizerNoliquid: liquid chlorine or bleach; swg: salt water chlorine generator; tablets: trichlorliquid
target_chNoDefault 350 plaster (store 300), 0 vinyl (never dosed)
target_fcNoEmpty = top of the FC/CYA chart range (bottom for SWG)
target_phNoDefault 7.5
target_taNoDefault 70 (store 100)
target_cyaNoDefault 40, salt pool 70
pool_volumeYesPool volume in US gallons (units=us) or litres (units=metric)
target_saltNoDefault 3,200 ppm
cyanuric_acidNoCYA (stabilizer, conditioner), ppm
free_chlorineNoFC, ppm
calcium_hardnessNoCH, ppm
total_alkalinityNoTA, ppm
combined_chlorineNoCC, ppm
water_temperatureNo°F (units=us) or °C (metric); 80 °F when not given
fill_water_calciumNoCH of the fill water, ppm, for the drain-and-refill share
chlorine_stored_hotNoJug kept somewhere hot (about 35 °C / 95 °F)
liquid_chlorine_age_daysNoDays since the liquid chlorine jug was bought

Output Schema

NameRequiredDescriptionDefault
moreYes
dosesYesIn the order to add them, each worked out on the water the one before it leaves
unitsYes
adviceYes
levelsYesEach reading against the chosen standard: very_low, low, ok, high, very_high
methodYes
safetyYes
csi_nowYes
lsi_nowYes
csi_afterYes
lsi_afterYes
pool_litresYes
cya_used_ppmYes
pool_gallonsYes
fc_target_ppmYes
free_chlorine_levelsYes

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 establish this is a read-only, idempotent, closed-world computation, and the description goes well beyond that by disclosing the dose ordering rule ('each worked out on the water the one before it leaves'), the carbonate pH model, the FC/CYA chart source, and the strength-from-label behavior. It stops short of stating accuracy limits or what happens when inputs conflict, which keeps it off a 5.

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 purpose and chemical-to-parameter mapping are front-loaded in the first two sentences, with model detail following. It is dense but nearly every clause carries information; the formula snippet 'ppm × litres ÷ 1000 = grams' is the one line that could be trimmed without losing selection guidance.

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?

For a 25-parameter, single-required-parameter tool with a full output schema and complete annotations, the description supplies the modeling context an agent needs to trust the result and to know it must gather a water test first. The main residual gap is that it never explains how the two dosing approaches (tfp vs store) change recommendations, which is a significant user-facing branch.

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 description coverage is 92%, so the baseline is 3 and the schema already documents nearly every field including defaults. The description adds a little genuine meaning — that doses are computed for the strength on the user's own label (mapping to products[].strength_percent) and that the carbonate model counts TA, CYA and borates — but does not explain the approach=store vs tfp switch or the units conventions beyond what the schema states.

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 names a specific verb and resource (plan doses of pool chemicals after a water test) and enumerates the exact jobs covered, down to which product treats which parameter. It never explicitly contrasts itself with the sibling calculators (calculate_pool_water_balance, get_pool_chlorine_targets) whose outputs it partially subsumes, so an agent must infer the boundary rather than read it.

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 by the opening clause 'after a water test', which does establish the triggering context but not when to prefer this over calculate_pool_water_balance or get_pool_chlorine_targets. There are no exclusions, no prerequisites about which test values are mandatory, and no note on what happens with partial test data.

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.