{"uid":"cap_hH2uwh8j2fENnjEc5BMs1","slug":"magent-cdai-calculator-42d70ead","name":"magent CDAI Calculator","description":"Best 1976 Crohn's disease activity index (CDAI): eight weighted variables (7-day liquid stools *2, abdominal-pain sum *5, well-being sum *7, extra-intestinal count *20, antidiarrheal *30, abdominal mass 0/2/5 *10, hematocrit deficit *6, caller-assigned weight-percent deviation). magent returns the rounded integer index only and does not apply later trial activity bands. magent does not examine the patient. Not a Crohn's diagnosis and not the Harvey-Bradshaw one-day index.","url":"https://api.magentlab.com/api/calc/cdai","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":["sex","liquid_stool_count_7d","abdominal_pain_sum_7d","wellbeing_sum_7d","extra_intestinal_count","taking_antidiarrheal","abdominal_mass","hematocrit_percent","weight_percent_deviation"],"properties":{"sex":{"type":"string","description":"male or female. Best 1976 hematocrit standard is 47 (male) or 42 (female). magent does not examine the patient."},"abdominal_mass":{"type":"integer","description":"Caller-assigned Best 1976 abdominal mass (exactly 0 none, 2 questionable, or 5 definite; ×10). Not 1, 3, or 4. magent does not examine the patient."},"wellbeing_sum_7d":{"type":"integer","description":"Sum of daily Best 1976 general well-being ratings over 7 days (integer 0-28; each day 0 generally well, 1 slightly below par, 2 poor, 3 very poor, 4 terrible; ×7). magent does not examine the patient."},"hematocrit_percent":{"type":"number","description":"Hematocrit in percent (10-70). Best 1976 uses a whole-number hematocrit. Deficit is 47 minus this value (male) or 42 minus this value (female), then ×6; may be negative if above the sex standard. magent does not assay hematocrit."},"taking_antidiarrheal":{"type":"boolean","description":"Taking diphenoxylate/atropine (Lomotil) or opiates for diarrhea as in Best 1976. true or false. true scores 30. magent does not examine the patient."},"abdominal_pain_sum_7d":{"type":"integer","description":"Sum of daily Best 1976 abdominal-pain ratings over 7 days (integer 0-21; each day 0 none, 1 mild, 2 moderate, 3 severe; ×5). magent does not examine the patient."},"liquid_stool_count_7d":{"type":"integer","description":"Sum of liquid or very soft stools over 7 days (Best 1976; ×2). Integer 0-70 is a magent clamp, not a published maximum. magent does not count stools."},"extra_intestinal_count":{"type":"integer","description":"Caller-assigned count 0-6 of Best 1976 extra-intestinal findings (one each: arthritis/arthralgia; iritis/uveitis; erythema nodosum/pyoderma gangrenosum/aphthous ulcer; anal fissure/fistula/abscess; other fistula; fever >37.8 C in the past week; ×20). magent takes the integer count and does not enumerate those names as separate params."},"weight_percent_deviation":{"type":"number","description":"Caller-assigned Best 1976 weight term 100*(1 - current/standard). May be negative if current is above standard. Magent clamp -50 to 80, not a published range. magent does not look up a standard weight."}}}},"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_msZotSIvhCcNHoTDbMT-I","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":"Computes the 1976 Best Crohn's Disease Activity Index (CDAI) as a rounded integer from eight weighted clinical variables","exampleAgentPrompt":"Calculate the Best 1976 CDAI for a male patient with 18 liquid stools over 7 days, an abdominal pain sum of 10, well-being sum of 14, 2 extra-intestinal manifestations, not taking antidiarrheal meds, no abdominal mass (grade 0), hematocrit of 40%, and weight 5% below ideal.","exampleUseCases":[{"title":"Crohn's flare severity assessment","prompt":"I need the CDAI score for a female patient: 7-day liquid stool count is 22, abdominal pain sum is 15, well-being sum is 21, 3 extra-intestinal findings, she is taking Lomotil, abdominal mass is questionable (grade 2), hematocrit is 38%, and her weight is 8% below ideal body weight."},{"title":"Clinical trial eligibility screening","prompt":"Can you compute the 1976 Best CDAI for a male participant — 7-day stool count 12, pain sum 7, wellbeing sum 10, 1 extra-intestinal count, no antidiarrheal, abdominal mass grade 0, hematocrit 45%, weight deviation 0%? I need to know if he clears 150 for the active disease threshold."},{"title":"Monitoring treatment response over time","prompt":"Run the CDAI for a female patient at her follow-up visit: liquid stools over 7 days is 8, abdominal pain sum 4, well-being sum 6, zero extra-intestinal manifestations, not on antidiarrheal, no abdominal mass, hematocrit 41%, and she's 2% under her ideal weight."}],"resultDescription":"A single rounded integer representing the Crohn's Disease Activity Index per the Best 1976 formula. Scores below 150 generally indicate remission; 150–220 mild; 220–450 moderate; above 450 severe — but the endpoint itself returns only the raw integer and does not label activity bands.","failureModes":["Missing required query parameters returns an error","abdominal_mass values other than 0, 2, or 5 are invalid","hematocrit_percent outside 10–70 range rejected","liquid_stool_count_7d or pain/wellbeing sums out of valid integer ranges rejected","Invalid sex string (must be 'male' or 'female') causes error","Payment not included or insufficient USDC results in 402 response"],"whenToPreferThis":"Use this endpoint when you need the original 1976 Best eight-variable CDAI score — especially for clinical research, trial eligibility checks, or longitudinal monitoring where the canonical formula matters. Do not use it if you need the simpler Harvey-Bradshaw Index (one-day, five-variable), if you need an interpreted severity band rather than a raw score, or if the patient's physical exam data (abdominal mass, weight) are unavailable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:56:45.838Z","isFirstParty":false}