# Magent D:A:D CKD Risk Score (Mocroft 2015 Table 2)

> Magent D:A:D CKD Risk Score (Mocroft 2015 Table 2) 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).

Computes the Mocroft 2015 D:A:D full CKD risk score using integer point assignments from Table 2, returning a total score and low/medium/high risk band for HIV-positive patients with eGFR >60.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/dad_ckd
- 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/magent-d-a-d-ckd-risk-score-mocroft-2015-table-2-8b62c755
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DiJcA4PLFTClMjw1ug6lI

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 magent-d-a-d-ckd-risk-score-mocroft-2015-table-2-8b62c755
```

Example prompt: Calculate the D:A:D full CKD risk score (Mocroft 2015 Table 2) for a 52-year-old male HIV patient: no IVDU, no hepatitis C, eGFR 75 mL/min, nadir CD4 of 180 cells/mm³, hypertension present, no prior CVD, and no diabetes.

## When to prefer this

Use this endpoint when you need the Mocroft 2015 D:A:D full CKD risk score (Table 2 integer points) specifically — not the short score variant, not a Poisson probability model, and not a general eGFR calculator. Appropriate for HIV-positive patients with eGFR >60 mL/min where race is not an input. Choose this over generic kidney risk calculators when the clinical context is HIV-associated CKD risk stratification using the D:A:D cohort derivation.

## Known failure modes

- eGFR ≤60 provided — endpoint requires eGFR >60 (outside derivation population)
- age_years outside 16–120 integer range — validation error
- nadir_cd4_cells_mm3 outside 0–3000 integer range — validation error
- egfr_ml_min outside 0.1–250 range — validation error
- Missing required query parameters (any of the nine) — 400 bad request
- sex enum value not 'male' or 'female' — validation error
- Payment not provided or insufficient (x402) — 402 Payment Required

## How this service works

Mocroft 2015 D:A:D full CKD risk score (Table 2 integer points only): IDU, hepatitis C, age, caller-assigned eGFR >60, sex, nadir CD4, hypertension, prior CVD, and diabetes. Bands low <0, medium 0–4, high ≥5. Not the short score, not the Poisson probability model, not NNTH, and not an ART start order. Race is not an input.

## Output

Returns the summed integer point total from Mocroft 2015 Table 2 across all nine risk factors, plus a categorical risk band: low (score <0), medium (score 0–4), or high (score ≥5). Does not return a Poisson probability, NNTH, short score variant, or ART recommendation.

## 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": [
      "ivdu",
      "hepatitis_c",
      "age_years",
      "egfr_ml_min",
      "sex",
      "nadir_cd4_cells_mm3",
      "hypertension",
      "prior_cvd",
      "diabetes"
     ],
     "properties": {
      "sex": {
       "enum": [
        "female",
        "male"
       ],
       "type": "string",
       "description": "Sex (Mocroft 2015 Table 2). female scores 1; male scores 0."
      },
      "ivdu": {
       "type": "boolean",
       "description": "Caller-assigned injecting drug use (Mocroft 2015 Table 2). true scores 2. magent does not diagnose injecting drug use."
      },
      "diabetes": {
       "type": "boolean",
       "description": "Caller-assigned diabetes (Mocroft 2015 Table 2). true scores 2. magent does not diagnose diabetes."
      },
      "age_years": {
       "type": "integer",
       "description": "Age in years (integer 16-120). Mocroft 2015 Table 2: ≤35 scores 0; >35 and ≤50 scores 4; >50 and ≤60 scores 7; >60 scores 10."
      },
      "prior_cvd": {
       "type": "boolean",
       "description": "Caller-assigned prior cardiovascular disease (Mocroft 2015 Table 2). true scores 1. magent does not diagnose CVD."
      },
      "egfr_ml_min": {
       "type": "number",
       "description": "Caller-assigned eGFR in mL/min (0.1-250, must be >60). Mocroft 2015 Table 2: >90 scores −6; >70 and ≤90 scores 0; >60 and ≤70 scores 6. eGFR ≤60 is outside the derivation population. magent does not compute eGFR."
      },
      "hepatitis_c": {
       "type": "boolean",
       "description": "Caller-assigned hepatitis C co-infection (Mocroft 2015 Table 2). true scores 1. magent does not diagnose hepatitis C."
      },
      "hypertension": {
       "type": "boolean",
       "description": "Caller-assigned hypertension (Mocroft 2015 Table 2). true scores 1. magent does not diagnose hypertension."
      },
      "nadir_cd4_cells_mm3": {
       "type": "integer",
       "descript
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-d-a-d-ckd-risk-score-mocroft-2015-table-2-8b62c755/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)
