{"uid":"cap_XZZ3RZ92C8oZF6p22iheF","slug":"magent-irae-diabetes-ctcae-grade-calculator-brahmer-2018-table-4-4-216f2863","name":"magent irAE Diabetes CTCAE Grade Calculator (Brahmer 2018 Table 4.4)","description":"Brahmer 2018 ASCO Table 4.4 irAE diabetes from glucose_mg_dl (50-1000, mg/dL only) plus caller ketosis, t1dm, severe_unable_adl, and life_threatening. First-match: G4 if life_threatening or glucose >500; else G3 if severe_unable_adl or glucose >250; else G2 if ketosis or t1dm or glucose >160; else G1 if glucose >99; else G0. ICI continue (0-1), hold_until_control (2), hold_admit (3-4). Not DKA diagnostic criteria. magent does not assay glucose. Not a diagnosis. Not an insulin dose.","url":"https://api.magentlab.com/api/calc/irae_diabetes","method":"GET","headers":{},"bodySchema":{"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":["glucose_mg_dl","ketosis","t1dm","life_threatening","severe_unable_adl"],"properties":{"t1dm":{"type":"boolean","description":"Evidence of type 1 diabetes as assigned by the caller (Brahmer 2018 Table 4.4 grade 2; T1DM at any glucose). true or false. When true and grade 4/3 criteria are not met, grade is 2. magent does not diagnose diabetes."},"ketosis":{"type":"boolean","description":"Ketosis as assigned by the caller (Brahmer 2018 Table 4.4 grade 2; ketosis at any glucose). true or false. When true and grade 4/3 criteria are not met, grade is 2. magent does not assay ketones."},"glucose_mg_dl":{"type":"number","description":"Fasting glucose in mg/dL (50-1000). Brahmer 2018 Table 4.4 bands: >500 grade 4; >250 grade 3; >160 grade 2; >99 grade 1; else grade 0 unless a flag upgrades. mmol/L is not accepted. magent does not assay glucose."},"life_threatening":{"type":"boolean","description":"Life-threatening consequences as assigned by the caller (Brahmer 2018 Table 4.4 grade 4). true or false. When true, grade is 4 regardless of glucose. magent does not examine the patient."},"severe_unable_adl":{"type":"boolean","description":"Severe symptoms limiting self-care ADL as assigned by the caller (Brahmer 2018 Table 4.4 grade 3). true or false. When true and life_threatening is false and glucose is not >500, grade is 3. magent does not assess ADL."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_a-iYbKoWwxU1wJvRSTbES","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Grades immune checkpoint inhibitor (ICI)-related adverse event (irAE) diabetes severity (G0–G4) per Brahmer 2018 ASCO Table 4.4, and returns ICI management recommendation (continue, hold, admit).","exampleAgentPrompt":"Grade the irAE diabetes severity using the Brahmer 2018 Table 4.4 first-match algorithm: the patient's fasting glucose is 310 mg/dL, they have confirmed ketosis, no evidence of type 1 diabetes, symptoms are severe and limiting self-care ADL, but the situation is not immediately life-threatening — what grade and ICI management recommendation does the calculator return?","exampleUseCases":[{"title":"Oncology nurse grading irAE hyperglycemia","prompt":"My immunotherapy patient has a fasting glucose of 420 mg/dL, no ketosis, no known type 1 diabetes, their symptoms are severe and limiting daily self-care, but it's not life-threatening — can you run the Brahmer 2018 Table 4.4 irAE diabetes grader and tell me the grade and whether to hold the ICI?"},{"title":"Life-threatening irAE diabetes urgent triage","prompt":"Patient on checkpoint inhibitor came in with fasting glucose of 530 mg/dL, life-threatening consequences, ketosis present, type 1 diabetes suspected, severe ADL limitation — use the Brahmer irAE diabetes calculator to get the CTCAE grade and ICI management guidance."},{"title":"Mild hyperglycemia, continue ICI decision","prompt":"My oncology patient's fasting glucose is 155 mg/dL, no ketosis, no type 1 diabetes diagnosis, no severe symptoms, not life-threatening — what's the Brahmer 2018 irAE diabetes grade and should we continue the immune checkpoint inhibitor?"}],"resultDescription":"Returns a numeric irAE diabetes grade (G0–G4) derived by the Brahmer 2018 Table 4.4 first-match algorithm, plus an ICI management recommendation: continue (G0–G1), hold_until_control (G2), or hold_admit (G3–G4). Does not diagnose DKA, does not assay glucose or ketones, and does not prescribe insulin doses.","failureModes":["glucose_mg_dl out of accepted range (50–1000 mg/dL) returns an error","glucose_mg_dl provided in mmol/L instead of mg/dL yields incorrect grade (unit conversion not performed)","Missing required boolean flags (ketosis, t1dm, severe_unable_adl, life_threatening) causes request failure","Caller misassigns clinical flags (e.g. life_threatening=true incorrectly) leading to over- or under-grading","Payment not included or insufficient USDC results in HTTP 402 rejection"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic, rule-based Brahmer 2018 Table 4.4 irAE diabetes grade and ICI management recommendation for an oncology patient on immune checkpoint inhibitors. Prefer it over general CTCAE calculators when the specific Brahmer first-match logic (G4 if life_threatening or glucose >500; G3 if severe_unable_adl or glucose >250; G2 if ketosis or T1DM or glucose >160; G1 if glucose >99; else G0) and integrated ICI hold/continue output are required. Not appropriate for DKA diagnosis, insulin dosing, or non-ICI hyperglycemia grading.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:19:54.650Z","isFirstParty":false}