Elysia Tools Docs
EN
Language
ZHESPTRUFRDEEN
Back to site
Browse tools

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.

json· JSON resultOpen tool

Quick start

Call this tool from your code in three languages.

cURL
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

HTTP
POST https://api.elysiatools.com/en/api/tools/child-pugh-score

Parameters

NameTypeRequiredDescription
bilirubinnumberYesTotal serum bilirubin. Select the unit. mg/dL thresholds: <2 (1), 2–3 (2), >3 (3); µmol/L is auto-converted (÷17.1).
bilirubinUnitselectYesUnit of the entered bilirubin value. µmol/L is converted to mg/dL (÷17.1) for scoring.
albuminnumberYesSerum albumin in g/dL. >3.5 (1), 2.8–3.5 (2), <2.8 (3).
inrnumberYesInternational 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:

mcp.json
{
  "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:

tools/list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

Call this tool

Invoke the tool by its id, passing arguments built from its parameters:

tools/call
{
  "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"
}
  }
}
Browse toolsOpen tool

© 2026 Elysia Tools. Developer documentation.

Back to siteBrowse tools
select
Yes
Absent =1; slight / medically controlled =2; moderate to severe / refractory =3.
encephalopathyselectYesNone =1; grade I–II (suppressed with therapy) =2; grade III–IV (refractory) =3.

Response format

JSON result

JSON
{
  "key": {...},
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
Chain multiple tools in one session with a comma-separated toolId list, e.g. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max 20).

Questions or issues? Contact [email protected]