← All tools / Clinical Calculators
calc_anion_gapdeterministicGeneral
Anion Gap
Serum anion gap (with optional albumin correction).
How to use
Call with the inputs below. Boolean inputs are optional (absent = false). Returns the value, an interpretation, and a breakdown. Deterministic — no network call.
Parameters
| Name | Type | Description | |
|---|---|---|---|
| sodium | number | required | Serum sodium — unit: mEq/L |
| chloride | number | required | Serum chloride — unit: mEq/L |
| bicarbonate | number | required | Serum bicarbonate (HCO3) — unit: mEq/L |
| albumin_g_dl | number | optional | Albumin (optional, for correction) — unit: g/dL |
Example input
{
"sodium": 140,
"chloride": 100,
"bicarbonate": 14,
"albumin_g_dl": 3
}Example output
{
"calculator": "Anion Gap",
"category": "General",
"value": "26 mEq/L",
"interpretation": "Elevated (consider HAGMA: MUDPILES/GOLDMARK)",
"severity": "high",
"detail": {
"Anion gap": "26 mEq/L",
"Albumin-corrected": "28.5 mEq/L"
}
}Call it (MCP tools/call)
{
"method": "tools/call",
"params": {
"name": "calc_anion_gap",
"arguments": {
"sodium": 140,
"chloride": 100,
"bicarbonate": 14,
"albumin_g_dl": 3
}
}
}
- Endpoint:
POST https://clinical-mcp.mcharge.in/mcp(Streamable HTTP).