# magent irAE Nephritis Grader (ASCO 2018 Brahmer)

> magent irAE Nephritis Grader (ASCO 2018 Brahmer) 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 ASCO 2018 Brahmer irAE nephritis grade (0–4) from creatinine vs baseline and clinical flags, and returns ICI management action (continue, consider_hold, hold, or permanently_discontinue).

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/irae_nephritis
- 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-irae-nephritis-grader-asco-2018-brahmer-0ca10e30
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_elgoxLvmoG6sJPKDnxxYY

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-irae-nephritis-grader-asco-2018-brahmer-0ca10e30
```

Example prompt: My patient on anti-PD-1 therapy has a current creatinine of 3.2 mg/dL and a baseline of 0.9 mg/dL; hospitalization is indicated but no dialysis and no life-threatening consequences — what is the irAE nephritis grade and should we hold the immunotherapy?

## When to prefer this

Use this endpoint when you need a fast, rule-based ASCO 2018 Brahmer irAE nephritis grade and matching ICI management action derived from creatinine measurements. It is not KDIGO/AKIN staging and does not suggest steroid doses. Prefer it over manual calculation when integrating irAE nephritis grading into automated oncology workflows or clinical decision-support pipelines that already have creatinine values and caller-assessed clinical flags.

## Known failure modes

- Missing required query parameters (creatinine_mg_dl, baseline_creatinine_mg_dl, or boolean flags) returns a 400/422 validation error
- Creatinine values outside accepted range (0.1–20 mg/dL) may be rejected or produce undefined behavior
- Units other than mg/dL (e.g. µmol/L) are not accepted and will silently produce wrong grades
- Boolean flags incorrectly set by caller lead to incorrect grading since the endpoint trusts caller-assigned clinical observations
- Network or payment (x402) authentication failures prevent any response

## How this service works

ASCO 2018 (Brahmer) irAE nephritis grade from creatinine vs baseline (mg/dL). First-match: 4 if dialysis or life-threatening; 3 if fold >3, creatinine >=4.0, or hospitalization; 2 if fold >2; 1 if fold >=1.5 or delta >=0.3; else 0. ICI action continue (0), consider_hold (1), hold (2), permanently_discontinue (3-4). Not a medical device, not a diagnosis, not KDIGO/AKIN, not a steroid dose; magent does not assay creatinine.

## Output

Returns an irAE nephritis grade integer (0–4) computed by first-match rules from the Brahmer 2018 ASCO Table 6.1 criteria (dialysis/life-threatening → 4; fold >3 or creatinine ≥4.0 or hospitalization → 3; fold >2 → 2; fold ≥1.5 or delta ≥0.3 → 1; else 0), plus a recommended ICI management action string (continue for grade 0, consider_hold for grade 1, hold for grade 2, permanently_discontinue for grades 3–4).

## 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": [
      "creatinine_mg_dl",
      "baseline_creatinine_mg_dl",
      "hospitalization_indicated",
      "dialysis_indicated",
      "life_threatening"
     ],
     "properties": {
      "creatinine_mg_dl": {
       "type": "number",
       "description": "Current serum creatinine in mg/dL (0.1-20). Used with baseline_creatinine_mg_dl for fold and delta (Brahmer 2018 Table 6.1). magent does not assay creatinine."
      },
      "life_threatening": {
       "type": "boolean",
       "description": "Life-threatening consequences as assigned by the caller (Brahmer 2018 Table 6.1 grade 4). true or false. When true, grade is 4 regardless of fold. magent does not examine the patient."
      },
      "dialysis_indicated": {
       "type": "boolean",
       "description": "Dialysis indicated as assigned by the caller (Brahmer 2018 Table 6.1 grade 4). true or false. When true, grade is 4 regardless of fold. magent does not start dialysis."
      },
      "baseline_creatinine_mg_dl": {
       "type": "number",
       "description": "Baseline serum creatinine in mg/dL (0.1-20). µmol/L is not accepted. magent does not assay creatinine."
      },
      "hospitalization_indicated": {
       "type": "boolean",
       "description": "Hospitalization indicated as assigned by the caller (Brahmer 2018 Table 6.1 grade 3). true or false. When true and neither dialysis_indicated nor life_threatening is true, grade is 3. magent does not admit the patient."
      }
     }
    }
   },
   "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/magent-irae-nephritis-grader-asco-2018-brahmer-0ca10e30/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)
