Health
Calculate expected respiratory compensation PaCO₂ for metabolic acidosis: 1.5×HCO₃⁻ + 8 ± 2 mmHg. Classifies compensation as appropriate or flags mixed disorders. Derived from Albert 1967, Emmett 2016, LITFL, MDCalc. Not medical advice.
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/winters-formula' \
-H 'Content-Type: application/json' \
-d '{"hco3":10,"actualPaco2":24,"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/winters-formula| Name | Type | Required | Description |
|---|---|---|---|
| hco3 | number | Yes | Serum/ABG bicarbonate (mmol/L). |
| actualPaco2 | number | No | Measured arterial PaCO₂ (mmHg). If provided, the tool judges whether compensation is appropriate. |
| decimalPlaces | number | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}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-winters-formula": {
"name": "winters-formula",
"description": "Calculate expected respiratory compensation PaCO₂ for metabolic acidosis: 1.5×HCO₃⁻ + 8 ± 2 mmHg. Classifies compensation as appropriate or flags mixed disorders. Derived from Albert 1967, Emmett 2016, LITFL, MDCalc. Not medical advice.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=winters-formula",
"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": "winters-formula",
"arguments": {
"hco3": 10,
"actualPaco2": 24,
"decimalPlaces": 1
}
}
}Questions or issues? Contact [email protected]