Health
Complete ABG analysis: pH, primary disorder, compensation (Winter's formula), anion gap ± albumin correction, delta ratio for mixed disorder detection. Derived from Emmett 2016, Kraut 2007, Rastegar 2007, LITFL, MDCalc, and Adrogué 1998. Not medical advice.
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/blood-gas-anion-gap' \
-H 'Content-Type: application/json' \
-d '{"ph":7.2,"paco2":25,"hco3":10,"sodium":140,"chloride":104,"albumin":4,"decimalPlaces":1}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST http://127.0.0.1:3003/en/api/tools/blood-gas-anion-gap| Name | Type | Required | Description |
|---|---|---|---|
| ph | number | Yes | Arterial blood pH. |
| paco2 | number | Yes | Arterial CO₂ partial pressure (mmHg). |
| hco3 | number | Yes | Bicarbonate (mmol/L) from ABG or serum. |
| sodium | number | Yes | Serum sodium (mmol/L). |
| chloride | number | Yes | Serum chloride (mmol/L). |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-blood-gas-anion-gap": {
"name": "blood-gas-anion-gap",
"description": "Complete ABG analysis: pH, primary disorder, compensation (Winter's formula), anion gap ± albumin correction, delta ratio for mixed disorder detection. Derived from Emmett 2016, Kraut 2007, Rastegar 2007, LITFL, MDCalc, and Adrogué 1998. Not medical advice.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=blood-gas-anion-gap",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "blood-gas-anion-gap",
"arguments": {
"ph": 7.2,
"paco2": 25,
"hco3": 10,
"sodium": 140,
"chloride": 104,
"albumin": 4,
"decimalPlaces": 1
}
}
}Questions or issues? Contact [email protected]
| albumin | number | No | Serum albumin (g/dL) for AG correction. Leave blank if unavailable. |
| decimalPlaces | number | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}