# MELD Score Calculator (Kamath 2001)

> MELD Score Calculator (Kamath 2001) is a paid API for AI agents from api.magentlab.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Calculates the original Kamath 2001 MELD score for end-stage liver disease severity from creatinine, bilirubin, INR, and disease etiology.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/meld
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/meld-score-calculator-kamath-2001-b39a19e3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aZ4sSE9GcbKd1iwYrU-6z

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability meld-score-calculator-kamath-2001-b39a19e3
```

Example prompt: Calculate the Kamath 2001 MELD score for a patient with INR 1.8, total bilirubin 3.2 mg/dL, creatinine 1.6 mg/dL, and the etiology is not cholestatic or alcoholic.

## When to prefer this

Use this endpoint when you need the original Kamath 2001 MELD score exactly as published, without the UNOS/OPTN lab-flooring rules, dialysis adjustment, or sodium correction. Prefer this over MELD-Na calculators when replicating original study results or when sodium data is unavailable. Choose this over manual computation to avoid unit-conversion errors (µmol/L inputs are accepted natively).

## Known failure modes

- Missing required parameters (inr or cholestatic_or_alcoholic) returns a validation error
- Providing both creatinine_mg_dl and creatinine_umol_l simultaneously may cause an error or unexpected behavior
- Lab values outside the stated ranges (e.g. INR <0.8 or >10) may return an error or inaccurate result
- Logarithm of zero or negative lab values is mathematically undefined and will cause a computation error
- Providing bilirubin in neither accepted unit will result in a missing-parameter error

## How this service works

Kamath 2001 model for end-stage liver disease (MELD) from creatinine, bilirubin, INR, and etiology. meld = round(3.8*ln(bilirubin_mg_dL) + 11.2*ln(INR) + 9.6*ln(creatinine_mg_dL) + 6.4*etiology). etiology is 0 if cholestatic or alcoholic, else 1. Does not floor labs at 1.0 and does not include dialysis (later UNOS/OPTN). Not MELD-Na. Not a transplant listing or allocation order.

## Output

Returns a rounded integer MELD score computed using the exact Kamath 2001 formula: round(3.8×ln(bilirubin) + 11.2×ln(INR) + 9.6×ln(creatinine) + 6.4×etiology), where etiology is 0 for cholestatic/alcoholic and 1 otherwise. Does not floor labs at 1.0, does not account for dialysis, and is not MELD-Na.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "inr",
      "cholestatic_or_alcoholic"
     ],
     "properties": {
      "inr": {
       "type": "number",
       "description": "International normalized ratio (0.8-10). Kamath 2001 does not floor INR at 1.0."
      },
      "bilirubin_mg_dl": {
       "type": "number",
       "description": "Total bilirubin in mg/dL (0.1-40). Provide this or bilirubin_umol_l. Kamath 2001 tables include bilirubin 0.8; magent does not floor at 1.0."
      },
      "bilirubin_umol_l": {
       "type": "number",
       "description": "Total bilirubin in µmol/L (2-684). Converted as mg/dL = µmol/L / 17.1."
      },
      "creatinine_mg_dl": {
       "type": "number",
       "description": "Serum creatinine in mg/dL (0.1-20). Provide this or creatinine_umol_l, not both. Kamath 2001 does not floor creatinine at 1.0 and does not include dialysis."
      },
      "creatinine_umol_l": {
       "type": "number",
       "description": "Serum creatinine in µmol/L (9-1768). Converted as mg/dL = µmol/L / 88.42."
      },
      "cholestatic_or_alcoholic": {
       "type": "boolean",
       "description": "true if the liver disease is cholestatic or alcoholic (etiology 0); false otherwise (etiology 1)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "path": "/api/calc/meld",
  "count": 2,
  "items": [
   {
    "inr": 1.2,
    "meld": 14,
    "formula": "kamath_meld_2001",
    "citation": {
     "id": "kamath-2001",
     "doi": "10.1053/jhep.2001.22172",
     "pmid": "11172350",
     "title": "A model to predict survival in patients with end-stage liver disease",
     "source": "Hepatology. 2001;33(2):464-470",
     "authors": "Kamath PS, Wiesner RH, Malinchoc M, Kremers W, Therneau TM, Kosberg CL, D'Amico G, Dickson ER, Kim WR"
    },
    "etiology": 0,
    "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
    "bilirubin_mg_dl": 4.2,
    "creatinine_mg_dl": 1.9,
    "formula_expression": "meld = round(3.8 * ln(bilirubin_mg_dL) + 11.2 * ln(INR) + 9.6 * ln(creatinine_mg_dL) + 6.4 * etiology)",
    "cholestatic_or_alcoholic": true
   },
   {
    "inr": 1.2,
    "meld": 14,
    "formula": "kamath_meld_2001",
    "citation": {
     "id": "kamath-2001",
     "doi": "10.1053/jhep.2001.22172",
     "pmid": "11172350",
     "title": "A model to predict survival in patients with end-stage liver disease",
     "source": "Hepatology. 2001;33(2):464-470",
     "authors": "Kamath PS, Wiesner RH, Malinchoc M, Kremers W, Therneau TM, Kosberg CL, D'Amico G, Dickson ER, Kim WR"
    },
    "etiology": 0,
    "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
    "bilirubin_mg_dl": 4.2,
    "creatinine_mg_dl": 1.9,
    "formula_expression": "meld = round(3.8 * ln(bilirubin_mg_dL) + 11.2 * ln(INR) + 9.6 * ln(creatinine_mg_dL) + 6.4 * etiology)",
    "cholestatic_or_alcoholic": true
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/meld-score-calculator-kamath-2001-b39a19e3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.magentlab.com](https://www.zero.xyz/host/api.magentlab.com/llms.txt)
