Health
Child-Pugh Score (Cirrhosis Severity)
Calculate the Child-Pugh score to grade chronic liver disease / cirrhosis severity and estimate perioperative mortality. Five parameters scored 1–3 each (total 5–15): Total bilirubin (<2 mg/dL =1, 2–3 =2, >3 =3) — supports mg/dL or µmol/L input (auto ÷17.1); Serum albumin (>3.5 g/dL =1, 2.8–3.5 =2, <2.8 =3); INR (<1.7 =1, 1.7–2.3 =2, >2.3 =3); Ascites (absent =1, slight/controlled =2, moderate–severe =3); Hepatic encephalopathy (none =1, grade I–II =2, grade III–IV =3). Classes: A (5–6) well-compensated (1-y ~100%, 2-y ~85%); B (7–9) significant compromise (1-y ~80%, 2-y ~60%); C (10–15) decompensated (1-y ~45%, 2-y ~35%). Derived from Pugh et al. 1973 (Br J Surg) and the original Child-Turcotte classification. Not medical advice.
Quick start
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/child-pugh-score' \
-H 'Content-Type: application/json' \
-d '{"bilirubin":3.5,"bilirubinUnit":"mgdL","albumin":2.5,"inr":2.5,"ascites":"moderate","encephalopathy":"grade34"}'API reference
Send a POST request with your inputs as JSON. File parameters require a separate upload first.
Endpoint
POST https://api.elysiatools.com/en/api/tools/child-pugh-scoreParameters
| Name | Type | Required | Description |
|---|---|---|---|
| bilirubin | number | Yes | Total serum bilirubin. Select the unit. mg/dL thresholds: <2 (1), 2–3 (2), >3 (3); µmol/L is auto-converted (÷17.1). |
| bilirubinUnit | select | Yes | Unit of the entered bilirubin value. µmol/L is converted to mg/dL (÷17.1) for scoring. |
| albumin | number | Yes | Serum albumin in g/dL. >3.5 (1), 2.8–3.5 (2), <2.8 (3). |
| inr | number | Yes | International normalized ratio (INR) or prothrombin time-derived. <1.7 (1), 1.7–2.3 (2), >2.3 (3). |
| ascites |
MCP integration
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Server configuration
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-child-pugh-score": {
"name": "child-pugh-score",
"description": "Calculate the Child-Pugh score to grade chronic liver disease / cirrhosis severity and estimate perioperative mortality. Five parameters scored 1–3 each (total 5–15): Total bilirubin (<2 mg/dL =1, 2–3 =2, >3 =3) — supports mg/dL or µmol/L input (auto ÷17.1); Serum albumin (>3.5 g/dL =1, 2.8–3.5 =2, <2.8 =3); INR (<1.7 =1, 1.7–2.3 =2, >2.3 =3); Ascites (absent =1, slight/controlled =2, moderate–severe =3); Hepatic encephalopathy (none =1, grade I–II =2, grade III–IV =3). Classes: A (5–6) well-compensated (1-y ~100%, 2-y ~85%); B (7–9) significant compromise (1-y ~80%, 2-y ~60%); C (10–15) decompensated (1-y ~45%, 2-y ~35%). Derived from Pugh et al. 1973 (Br J Surg) and the original Child-Turcotte classification. Not medical advice.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=child-pugh-score",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}List available tools
After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Call this tool
Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "child-pugh-score",
"arguments": {
"bilirubin": 3.5,
"bilirubinUnit": "mgdL",
"albumin": 2.5,
"inr": 2.5,
"ascites": "moderate",
"encephalopathy": "grade34"
}
}
}