Health
Calculate Qs/Qt = (CcO₂ − CaO₂)/(CcO₂ − CvO₂). PAO₂ from alveolar gas equation. Normal <5%; >20% severe shunt refractory to O₂. Defaults SvO₂=0.75, PvO₂=40 when mixed-venous values unavailable. Derived from Berggren 1942, StatPearls, LITFL, West. Not medical advice.
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/shunt-equation' \
-H 'Content-Type: application/json' \
-d '{"hemoglobin":13.5,"pao2":100,"sao2":0.97,"pvo2":0,"svo2":0,"paco2":40,"fio2":0.21,"patm":0,"decimalPlaces":2}'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/shunt-equation| Name | Type | Required | Description |
|---|---|---|---|
| hemoglobin | number | Yes | Hemoglobin concentration (g/dL). |
| pao2 | number | Yes | Arterial PO₂ (mmHg) from ABG. |
| sao2 | number | Yes | Arterial oxygen saturation as a fraction (0–1, e.g. 0.92 = 92%). |
| pvo2 | number | No | Mixed venous PO₂ (mmHg) from PA catheter. Default 40 if not measured. |
| svo2 | number | No |
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-shunt-equation": {
"name": "shunt-equation",
"description": "Calculate Qs/Qt = (CcO₂ − CaO₂)/(CcO₂ − CvO₂). PAO₂ from alveolar gas equation. Normal <5%; >20% severe shunt refractory to O₂. Defaults SvO₂=0.75, PvO₂=40 when mixed-venous values unavailable. Derived from Berggren 1942, StatPearls, LITFL, West. Not medical advice.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=shunt-equation",
"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": "shunt-equation",
"arguments": {
"hemoglobin": 13.5,
"pao2": 100,
"sao2": 0.97,
"pvo2": 0,
"svo2": 0,
"paco2": 40,
"fio2": 0.21,
"patm": 0,
"decimalPlaces": 2
}
}
}Questions or issues? Contact [email protected]
| Mixed venous oxygen saturation as a fraction (0–1). Default 0.75 if not measured. |
| paco2 | number | Yes | Arterial PCO₂ (mmHg) from ABG, used to derive PAO₂. |
| fio2 | number | Yes | Inspired oxygen fraction. Use 1.0 for the 100%-O₂ shunt test; 0.21 for room-air estimate. |
| patm | number | No | Atmospheric pressure (mmHg). Default 760 at sea level. |
| decimalPlaces | number | No | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}