# magent irAE Hypothyroidism Grader (Brahmer 2018 Table 4.1.1)

> magent irAE Hypothyroidism Grader (Brahmer 2018 Table 4.1.1) 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).

Grades immune checkpoint inhibitor-related adverse event (irAE) primary hypothyroidism (grade 1–3) per Brahmer 2018 ASCO Table 4.1.1 using TSH level and three clinical flags, returning a grade and icpi_action.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/irae_hypothyroidism
- 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-hypothyroidism-grader-brahmer-2018-table-4-1-1-c55f9e4d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rzduzGi_86n7Z5cllA2ec

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-hypothyroidism-grader-brahmer-2018-table-4-1-1-c55f9e4d
```

Example prompt: My patient on immunotherapy has a TSH of 14.5 mIU/L, has moderate symptoms but can still perform ADLs, and no severe or life-threatening findings — can you grade the irAE hypothyroidism using the Brahmer 2018 Table 4.1.1 criteria and tell me whether to continue or hold the checkpoint inhibitor?

## When to prefer this

Use this endpoint when you need to programmatically apply the Brahmer 2018 ASCO irAE grading criteria specifically for primary hypothyroidism (Table 4.1.1) during checkpoint inhibitor therapy and need a structured grade plus icpi_action. Do not use for hyperthyroidism (Table 4.1.2), thyroiditis, or any condition outside the Brahmer 2018 primary hypothyroidism rubric. Prefer this over manual lookup when embedding irAE grading into automated oncology workflows or clinical decision pipelines.

## Known failure modes

- TSH value outside 0.01–150 mIU/L range may produce unexpected results or errors
- Missing required Boolean flags (moderate_symptoms, severe_or_life_threatening, unable_to_perform_adl) cause request failure
- Endpoint does not handle hyperthyroidism — wrong table if TSH is suppressed in a hyperthyroid context
- Payment not included or insufficient USDC triggers 402 error
- Caller-assigned flags are subjective; garbage-in produces clinically meaningless grades

## How this service works

Brahmer 2018 ASCO Table 4.1.1 irAE primary hypothyroidism grade from tsh_miu_l (0.01-150 mIU/L) and three caller-assigned flags. First-match: grade 3 if severe_or_life_threatening or unable_to_perform_adl (paper G3-4 as grade 3); else 2 if moderate_symptoms or TSH >= 10; else 1 if TSH < 10. Returns icpi_action continue (grade 1) or hold_until_baseline (grade 2 or 3). Not hyperthyroidism (Table 4.1.2). magent does not assay TSH/FT4. Not a medical device, not a diagnosis, not a levothyroxine dose.

## Output

Returns the Brahmer 2018 irAE hypothyroidism grade (1, 2, or 3) based on first-match logic from the TSH value and three Boolean clinical flags, plus an icpi_action of 'continue' (grade 1) or 'hold_until_baseline' (grade 2 or 3). Does not diagnose, assay TSH/FT4, or recommend levothyroxine dosing.

## 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": [
      "tsh_miu_l",
      "moderate_symptoms",
      "severe_or_life_threatening",
      "unable_to_perform_adl"
     ],
     "properties": {
      "tsh_miu_l": {
       "type": "number",
       "description": "TSH in mIU/L (0.01-150; Brahmer 2018 Table 4.1.1 primary hypothyroidism). Persistently TSH >10 mIU/L is grade 2 unless a grade 3 flag is true; TSH 10 is this band. TSH <10 mIU/L with no moderate or severe flags is grade 1. magent does not assay TSH."
      },
      "moderate_symptoms": {
       "type": "boolean",
       "description": "Moderate symptoms with ability to perform ADL as assigned by the caller (Brahmer 2018 Table 4.1.1 grade 2). true or false. When true and no grade 3 flag is true, grade is 2. magent does not examine the patient."
      },
      "unable_to_perform_adl": {
       "type": "boolean",
       "description": "Unable to perform ADL as assigned by the caller (Brahmer 2018 Table 4.1.1 grade 3-4, returned as grade 3). true or false. When true, grade is 3. magent does not assess ADL."
      },
      "severe_or_life_threatening": {
       "type": "boolean",
       "description": "Severe symptoms, medically significant or life-threatening consequences as assigned by the caller (Brahmer 2018 Table 4.1.1 grade 3-4, returned as grade 3). true or false. When true, grade is 3. magent does not examine 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-hypothyroidism-grader-brahmer-2018-table-4-1-1-c55f9e4d/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)
