# Kim 2008 MELD-Na Calculator

> Kim 2008 MELD-Na Calculator 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-13).

Computes the Kim 2008 NEJM MELD-Na score from creatinine, bilirubin, INR, sodium, and dialysis status using then-current UNOS MELD rules

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/kim_meldna
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kim-2008-meld-na-calculator-179bd27d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_w1nI3Kh-klgDwOiGJZbn-

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 kim-2008-meld-na-calculator-179bd27d
```

Example prompt: Calculate the Kim 2008 MELD-Na score for a patient with creatinine 2.1 mg/dL, bilirubin 3.5 mg/dL, INR 1.8, serum sodium 132 mmol/L, and no dialysis in the past week.

## When to prefer this

Use this endpoint when you specifically need the Kim 2008 NEJM MELD-Na formula with then-current UNOS clamping rules (creatinine 1.0–4.0, dialysis→4.0, bilirubin/INR floored at 1.0, sodium bounded 125–140 applied at all MELD values). Choose the sibling OPTN 2016 MELD-Na endpoint if you need the official 2016 OPTN/UNOS formula (sodium adjustment only when MELD>11, sodium bound 125–137). Do not use either for the Kim 2021 MELD 3.0 calculation.

## Known failure modes

- Missing required parameters (inr, sodium_mmol_l, dialysis) returns a validation error
- Neither bilirubin_mg_dl nor bilirubin_umol_l provided causes an error
- Values outside accepted ranges (e.g. sodium outside 110–160) may be rejected or clamped
- Payment failure (x402) if USDC not provided or insufficient
- Network timeout for the API call

## How this service works

Kim 2008 NEJM MELD-Na from creatinine, bilirubin, INR, sodium, and dialysis. Then-current UNOS MELD: dialysis sets creatinine 4.0 else clamp 1.0-4.0; bilirubin and INR floor 1.0. Sodium bound 125-140. MELDNa = MELD - Na - 0.025*MELD*(140-Na) + 140. Not OPTN 2016 MELD-Na (Na 125-137 only if MELD>11). Not Kim 2021 MELD 3.0. Not a transplant listing or allocation order.

## Output

Returns the computed MELD-Na score (and likely intermediate MELD) using Kim 2008 rules: dialysis sets creatinine to 4.0; otherwise creatinine clamped 1.0–4.0; bilirubin and INR floored at 1.0; sodium bounded 125–140 for the sodium correction term; MELDNa = MELD − Na − 0.025×MELD×(140−Na) + 140.

## 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",
      "sodium_mmol_l",
      "dialysis"
     ],
     "properties": {
      "inr": {
       "type": "number",
       "description": "INR (0.8-10). Floored at 1.0."
      },
      "dialysis": {
       "type": "boolean",
       "description": "Dialysis twice in the last week. true sets creatinine used to 4.0."
      },
      "sodium_mmol_l": {
       "type": "number",
       "description": "Serum sodium in mmol/L (110-160). Kim 2008 bounds the sodium term at 125-140. Applied at every MELD (not only MELD>11)."
      },
      "bilirubin_mg_dl": {
       "type": "number",
       "description": "Total bilirubin in mg/dL (0.1-40). Provide this or bilirubin_umol_l. Floored at 1.0."
      },
      "bilirubin_umol_l": {
       "type": "number",
       "description": "Total bilirubin in µmol/L. 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. Dialysis sets used creatinine to 4.0; otherwise clamp 1.0-4.0 (then-current UNOS, Kim 2008)."
      },
      "creatinine_umol_l": {
       "type": "number",
       "description": "Serum creatinine in µmol/L. Converted as mg/dL = µmol/L / 88.42."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/kim-2008-meld-na-calculator-179bd27d/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)
