Pool water balance: CSI and LSI
calculate_pool_water_balanceCalcium 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
| Name | Required | Description | Default |
|---|---|---|---|
| ph | Yes | ||
| salt | No | ppm (0 when not a salt pool) | |
| units | No | us | |
| borates | No | ppm as boron | |
| cyanuric_acid | No | CYA, ppm | |
| calcium_hardness | Yes | CH, ppm | |
| total_alkalinity | Yes | TA, ppm | |
| water_temperature | No | °F (units=us) or °C (metric); 80 °F when not given |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csi | Yes | Calcite Saturation Index, TFP / Chem Geek | |
| lsi | Yes | Langelier Saturation Index, Carrier's formula | |
| more | Yes | ||
| advice | Yes | ||
| method | Yes | ||
| temperature_c | Yes | ||
| carbonate_alkalinity_ppm | Yes | TA minus the CYA and borate share at this pH |