Skip to main content
Glama

PoolPro: pool chemical calculator

Pool water balance: CSI and LSI

calculate_pool_water_balance
Read-onlyIdempotent

Calcium saturation of pool water: the Calcite Saturation Index (CSI) as TFP Pool Math computes it (Chem Geek's formula with carbonate alkalinity corrected for CYA and borates, ionic strength from CH, TA and salt) and the Langelier Saturation Index (LSI, Carrier's formula, pHs = (9.3 + A + B) − (C + D)). −0.3 to +0.3 is balanced; below is corrosive (etches plaster and grout), above is scaling (scale, cloudy water).

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": {
      "ph": "<ph>",
      "total_alkalinity": "<total_alkalinity>",
      "calcium_hardness": "<calcium_hardness>"
    },
    "name": "calculate_pool_water_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
phYes
saltNoppm (0 when not a salt pool)
unitsNous
boratesNoppm as boron
cyanuric_acidNoCYA, ppm
calcium_hardnessYesCH, ppm
total_alkalinityYesTA, ppm
water_temperatureNo°F (units=us) or °C (metric); 80 °F when not given

Output Schema

NameRequiredDescriptionDefault
csiYesCalcite Saturation Index, TFP / Chem Geek
lsiYesLangelier Saturation Index, Carrier's formula
moreYes
adviceYes
methodYes
temperature_cYes
carbonate_alkalinity_ppmYesTA minus the CYA and borate share at this pH

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true/destructiveHint=false/idempotentHint=true, so the safety profile is covered. The description adds genuine behavioral context beyond that: it discloses the computational model (CYA/borate-corrected carbonate alkalinity, ionic strength from CH/TA/salt) so an agent knows the result is a derived estimate, and it explains how to read the output bands (-0.3 to +0.3 balanced, below corrosive, above scaling).

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

Conciseness5/5

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

Two sentences, both dense with useful content: the first establishes what is computed and how, the second gives the interpretation thresholds. Nothing is redundant with the schema or annotations, and the key result bands are placed last where they are easy to find.

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, the description need not explain return values, and it covers the domain reasoning, formula, and interpretation. An agent still lacks explicit routing guidance against the dosing/chlorine siblings, which is the only meaningful gap for an 8-parameter analytical tool.

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 75%, so the baseline would be 3. The description earns higher by explaining why the optional parameters matter: salt feeds ionic strength, and cyanuric acid and borates require carbonate alkalinity correction. That adds causal meaning to parameters whose schema entries are otherwise bare numbers (e.g., salt, borates, cyanuric_acid).

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 names the specific resource (calcium saturation of pool water) and both computed indices (CSI via TFP Pool Math and LSI via Carrier's formula), with the exact underlying formulas. This is clearly distinguishable from siblings like calculate_pool_volume and get_pool_chlorine_targets, which address different quantities.

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 implied rather than stated: the corrosion/scaling interpretation bands tell an agent what the result means, which hints at when to call it (assessing water balance). However, it never explicitly says when to prefer this over plan_pool_chemical_doses or how to act on an out-of-range result, so the agent must infer the workflow.

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.