# PELD Score Calculator (McDiarmid 2002)

> PELD Score Calculator (McDiarmid 2002) 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 Pediatric End-Stage Liver Disease (PELD) score from bilirubin, INR, albumin, age under 1 year, and growth failure using the McDiarmid 2002 formula.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/peld
- 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/peld-score-calculator-mcdiarmid-2002-64268262
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nKcTfYttNh-CAKIJbDHXZ

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 peld-score-calculator-mcdiarmid-2002-64268262
```

Example prompt: Calculate the PELD score for a 9-month-old patient with a bilirubin of 8.2 mg/dL, INR of 1.9, albumin of 2.4 g/dL, and confirmed growth failure.

## When to prefer this

Use this endpoint when you need to deterministically compute the PELD score for a pediatric patient (under 12 years old) using the published McDiarmid 2002 formula. Prefer this over MELD calculators when the patient is a child. Choose this when you need a citable, formula-exact result rather than a clinical recommendation.

## Known failure modes

- Missing required parameters (age_years, inr, growth_failure) returns a validation error
- Providing both bilirubin_mg_dl and bilirubin_umol_l simultaneously returns an error
- Providing both albumin_g_dl and albumin_g_l simultaneously returns an error
- Age outside 0–11 years (PELD is only for children under 12) may return an out-of-range error
- INR or bilirubin values at extreme ranges may be floored per formula rules without warning

## How this service works

McDiarmid 2002 PELD from bilirubin, INR, albumin, age under 1 year, and growth failure. Deterministic published listing arithmetic with citation; not a transplant listing recommendation.

## Output

Returns the numeric PELD score computed from the McDiarmid 2002 formula, along with the formula citation and intermediate calculation values. Does not provide transplant listing recommendations.

## 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": [
      "age_years",
      "inr",
      "growth_failure"
     ],
     "properties": {
      "inr": {
       "type": "number",
       "description": "INR (0.8-10). Floored at 1.0 before ln."
      },
      "age_years": {
       "type": "number",
       "description": "Age in years (0-11 inclusive). PELD is for children under 12. Age under 1 adds 0.436 before scaling."
      },
      "albumin_g_l": {
       "type": "number",
       "description": "Albumin in g/L. Converted as g/dL = g/L / 10."
      },
      "albumin_g_dl": {
       "type": "number",
       "description": "Albumin in g/dL (1-6). Provide this or albumin_g_l, not both. Floored at 1.0 before ln."
      },
      "growth_failure": {
       "type": "boolean",
       "description": "Growth failure as assigned by the caller. true adds 0.667 before scaling."
      },
      "bilirubin_mg_dl": {
       "type": "number",
       "description": "Total bilirubin in mg/dL (0.1-40). Provide this or bilirubin_umol_l, not both. Floored at 1.0 before ln."
      },
      "bilirubin_umol_l": {
       "type": "number",
       "description": "Total bilirubin in µmol/L. Converted as mg/dL = µmol/L / 17.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/peld",
  "count": 2,
  "items": [
   {
    "inr": 1.5,
    "peld": 8,
    "formula": "peld",
    "age_lt_1": false,
    "citation": {
     "id": "mcdiarmid-2002",
     "doi": "10.1097/00007890-200207270-00006",
     "title": "Development of a pediatric end-stage liver disease score to predict poor outcome in children awaiting liver transplantation",
     "source": "Transplantation. 2002;74(2):173-181",
     "authors": "McDiarmid SV, Anand R, Lindblad AS; SPLIT Research Group"
    },
    "inr_used": 1.5,
    "age_years": 2,
    "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.",
    "albumin_g_dl": 2.5,
    "growth_failure": false,
    "bilirubin_mg_dl": 4,
    "albumin_used_g_dl": 2.5,
    "formula_expression": "raw = 0.480*ln(bili) + 1.857*ln(INR) - 0.687*ln(albumin) + 0.436*[age<1] + 0.667*[growth_failure]; PELD = round(10 * raw); bili, INR, and albumin floored at 1.0",
    "bilirubin_used_mg_dl": 4
   },
   {
    "inr": 1.5,
    "peld": 8,
    "formula": "peld",
    "age_lt_1": false,
    "citation": {
     "id": "mcdiarmid-2002",
     "doi": "10.1097/00007890-200207270-00006",
     "title": "Development of a pediatric end-stage liver disease score to predict poor outcome in children awaiting liver transplantation",
     "source": "Transplantation. 2002;74(2):173-181",
     "authors": "McDiarmid SV, Anand R, Lindblad AS; SPLIT Research Group"
    },
    "inr_used": 1.5,
    "age_years": 2,
    "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.",
    "albumin_g_dl": 2.5,
    "growth_failure": false,
    "bilirubin_mg_dl": 4,
    "albumin_used_g_dl": 2.5,
    "formula_expression": "raw = 0.480*ln(bili) + 1.857*ln(INR) - 0.687*ln(albumin) + 0.436*[age<1] + 0.667*[growth_failure]; PELD = round(10 * raw); bili, INR, and albumin floored at 1.0",
    "bilirubin_used_mg_dl": 4
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/peld-score-calculator-mcdiarmid-2002-64268262/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)
