Health
Calculate the current UNOS/OPTN base MELD(i) score for end-stage liver disease and transplant allocation: MELD(i) = (0.957·ln(creatinine) + 0.378·ln(bilirubin) + 1.120·ln(INR) + 0.643) × 10, rounded and clamped to 6–40. Creatinine is floored at 1.0, capped at 4.0 mg/dL, and forced to 4.0 if dialyzed ≥2× or on CVVHD ≥24 h in the past week; bilirubin and INR are floored at 1.0. NOTE: in the US, MELD-Na (2016) and then MELD 3.0 (Jul 2023, adds sex and albumin) have superseded this base MELD for adult allocation — this tool implements the classic base MELD(i) for education / non-US use. Derived from Kamath 2001 (Hepatology) and UNOS/OPTN policy. Not medical advice.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/meld-score' \
-H 'Content-Type: application/json' \
-d '{"creatinine":1.5,"bilirubin":3,"inr":1.8,"dialysis":false,"decimalPlaces":4}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/meld-score| Name | Type | Required | Description |
|---|---|---|---|
| creatinine | number | Yes | Serum creatinine in mg/dL. Floored at 1.0, capped at 4.0 (4.0 if dialyzed). Must be positive. |
| bilirubin | number | Yes | Total bilirubin in mg/dL. Floored at 1.0. Must be positive. |
| inr | number | Yes | International Normalized Ratio (INR). Floored at 1.0. Must be positive. |
| dialysis | checkbox | No | If dialyzed at least twice or on CVVHD for ≥ 24 hours in the past week, creatinine is set to 4.0 mg/dL. |
| decimalPlaces | number |
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-meld-score": {
"name": "meld-score",
"description": "Calculate the current UNOS/OPTN base MELD(i) score for end-stage liver disease and transplant allocation: MELD(i) = (0.957·ln(creatinine) + 0.378·ln(bilirubin) + 1.120·ln(INR) + 0.643) × 10, rounded and clamped to 6–40. Creatinine is floored at 1.0, capped at 4.0 mg/dL, and forced to 4.0 if dialyzed ≥2× or on CVVHD ≥24 h in the past week; bilirubin and INR are floored at 1.0. NOTE: in the US, MELD-Na (2016) and then MELD 3.0 (Jul 2023, adds sex and albumin) have superseded this base MELD for adult allocation — this tool implements the classic base MELD(i) for education / non-US use. Derived from Kamath 2001 (Hepatology) and UNOS/OPTN policy. Not medical advice.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=meld-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": "meld-score",
"arguments": {
"creatinine": 1.5,
"bilirubin": 3,
"inr": 1.8,
"dialysis": false,
"decimalPlaces": 4
}
}
}| No |
| — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Questions or issues? Contact [email protected]