Health
Calculate the APACHE II (Acute Physiology and Chronic Health Evaluation II) ICU severity score. APACHE II = Acute Physiology Score (12 variables, each 0–4 using the worst value in the first 24 h) + Age points (0–6) + Chronic Health points (0/2/5). Range 0–71; higher scores indicate worse prognosis. Oxygenation uses the A-a gradient when FiO₂ ≥ 0.5, otherwise PaO₂. Creatinine points are doubled when acute renal failure is indicated. GCS contributes 15 − GCS. Also reports the base-model predicted mortality: R = 1/(1 + e^(−logit)), logit = −3.517 + 0.146 × score (diagnostic-category weight not included). Thresholds cross-verified against Knaus 1985 (Crit Care Med) and the SFAR scoring table. Not a substitute for clinical judgement. Not medical advice.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/apache-ii-score' \
-H 'Content-Type: application/json' \
-d '{"temperature":38.9,"map":65,"heartRate":130,"respiratoryRate":30,"fio2":0.8,"pao2":0,"aaGradient":350,"ph":7.25,"sodium":138,"potassium":5.6,"creatinine":2.5,"arf":true,"hematocrit":32,"wbc":18,"gcs":10,"age":70,"chronicHealth":"nonelective"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/apache-ii-score| Name | Type | Required | Description |
|---|---|---|---|
| temperature | number | Yes | Core/rectal temperature °C. |
| map | number | Yes | Mean arterial pressure mmHg. |
| heartRate | number | Yes | Heart rate beats/min. |
| respiratoryRate | number | Yes | Respiratory rate breaths/min (vented or spontaneous). |
| fio2 | number | Yes | Fraction of inspired oxygen (0.21–1.0). If ≥0.5, A-a gradient is used. |
| pao2 | number | No | Arterial PaO₂ mmHg. Used when FiO₂ < 0.5. |
| aaGradient | number | No | Alveolar-arterial gradient mmHg. Used when FiO₂ ≥ 0.5. |
| ph | number | Yes | Arterial pH. |
| sodium | number | Yes | Serum sodium mmol/L. |
| potassium | number | Yes | Serum potassium mmol/L. |
| creatinine | number | Yes | Serum creatinine mg/dL. |
| arf | checkbox | No | Acute renal failure doubles the creatinine points. |
| hematocrit | number | Yes | Hematocrit %. |
| wbc | number | Yes | White blood cell count ×10³/µL. |
| gcs | number | Yes | Glasgow Coma Scale total (3–15). Contributes 15 − GCS. |
| age | number | Yes | Age in years. |
| chronicHealth | select | Yes | Severe organ insufficiency or immunocompromise: none = 0, elective postoperative = 2, non-operative or emergency postoperative = 5. |
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-apache-ii-score": {
"name": "apache-ii-score",
"description": "Calculate the APACHE II (Acute Physiology and Chronic Health Evaluation II) ICU severity score. APACHE II = Acute Physiology Score (12 variables, each 0–4 using the worst value in the first 24 h) + Age points (0–6) + Chronic Health points (0/2/5). Range 0–71; higher scores indicate worse prognosis. Oxygenation uses the A-a gradient when FiO₂ ≥ 0.5, otherwise PaO₂. Creatinine points are doubled when acute renal failure is indicated. GCS contributes 15 − GCS. Also reports the base-model predicted mortality: R = 1/(1 + e^(−logit)), logit = −3.517 + 0.146 × score (diagnostic-category weight not included). Thresholds cross-verified against Knaus 1985 (Crit Care Med) and the SFAR scoring table. Not a substitute for clinical judgement. Not medical advice.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=apache-ii-score",
"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": "apache-ii-score",
"arguments": {
"temperature": 38.9,
"map": 65,
"heartRate": 130,
"respiratoryRate": 30,
"fio2": 0.8,
"pao2": 0,
"aaGradient": 350,
"ph": 7.25,
"sodium": 138,
"potassium": 5.6,
"creatinine": 2.5,
"arf": true,
"hematocrit": 32,
"wbc": 18,
"gcs": 10,
"age": 70,
"chronicHealth": "nonelective"
}
}
}Questions or issues? Contact [email protected]