# MELD 3.0 Calculator (Kim 2021)

> MELD 3.0 Calculator (Kim 2021) 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-14).

Calculates the MELD 3.0 score using the Kim 2021 formula from sex, bilirubin, INR, creatinine, sodium, and albumin

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/meld_3
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/meld-3-0-calculator-kim-2021-f47a8f6d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Dx8rbE0ViX-KvxZWNDbj4

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-3-0-calculator-kim-2021-f47a8f6d
```

Example prompt: Calculate the MELD 3.0 score for a female patient with a bilirubin of 3.2 mg/dL, INR of 1.8, creatinine of 1.5 mg/dL, sodium of 132 mmol/L, and albumin of 2.8 g/dL — she is not on dialysis.

## When to prefer this

Use this endpoint when you specifically need the Kim 2021 MELD 3.0 score — the version that incorporates serum albumin and a sex-specific female term — as distinct from the original MELD or MELD-Na formulas. Prefer it for clinical research, EHR integration, or decision-support tools that require the most current validated MELD variant. Do not use for transplant listing or organ allocation order decisions.

## Known failure modes

- Missing required parameters (sex, INR, sodium, dialysis) return a validation error
- Out-of-range numeric values may be rejected or silently clamped depending on server behavior
- Providing neither albumin_g_dl nor albumin_g_l when albumin is needed may cause an error
- Providing neither bilirubin_mg_dl nor bilirubin_umol_l or neither creatinine unit variant may cause missing-field errors
- Network or payment (x402) failures return 402 or 5xx status codes

## How this service works

Kim 2021 MELD 3.0 from sex, bilirubin, INR, creatinine, sodium, albumin, and dialysis. meld_3 = round(1.33*(female) + 4.56*ln(bilirubin) + 0.82*(137-Na) - 0.24*(137-Na)*ln(bilirubin) + 9.09*ln(INR) + 11.14*ln(creatinine) + 1.85*(3.5-albumin) - 1.83*(3.5-albumin)*ln(creatinine) + 6). Creatinine 1.0-3.0 (dialysis 3.0); bilirubin and INR floor 1.0; sodium 125-137; albumin 1.5-3.5. Not original MELD or MELD-Na. Not a transplant listing or allocation order.

## Output

Returns a rounded MELD 3.0 integer score computed per the Kim 2021 formula, with input clamping applied: creatinine floored at 1.0 and capped at 3.0 (forced to 3.0 if on dialysis), bilirubin and INR floored at 1.0, sodium clamped 125–137, albumin clamped 1.5–3.5. Female sex adds 1.33 points. The score quantifies liver disease severity but is not a transplant listing or allocation order.

## 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": [
      "sex",
      "inr",
      "sodium_mmol_l",
      "dialysis"
     ],
     "properties": {
      "inr": {
       "type": "number",
       "description": "INR (0.8-10). Kim 2021 floors at 1.0."
      },
      "sex": {
       "enum": [
        "female",
        "male"
       ],
       "type": "string",
       "description": "Sex used in the Kim 2021 female term (female adds 1.33)."
      },
      "dialysis": {
       "type": "boolean",
       "description": "Dialysis twice in the prior week. true sets creatinine used to 3.0 (Kim 2021 ceiling)."
      },
      "albumin_g_l": {
       "type": "number",
       "description": "Serum albumin in g/L (10-60). Converted as g/dL = g/L / 10."
      },
      "albumin_g_dl": {
       "type": "number",
       "description": "Serum albumin in g/dL (1.0-6.0). Provide this or albumin_g_l. Kim 2021 clamps 1.5-3.5."
      },
      "sodium_mmol_l": {
       "type": "number",
       "description": "Serum sodium in mmol/L (110-160). Kim 2021 clamps 125-137."
      },
      "bilirubin_mg_dl": {
       "type": "number",
       "description": "Total bilirubin in mg/dL (0.1-40). Provide this or bilirubin_umol_l. Kim 2021 floors 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. Kim 2021 floors at 1.0 and caps at 3.0."
      },
      "creatinine_umol_l": {
       "type": "number",
       "description": "Serum creatinine in µmol/L (9-1768). Converted as mg/dL = µmol/L / 88.42."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "o
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/meld-3-0-calculator-kim-2021-f47a8f6d/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)
