{"uid":"cap_ey9XKOEHJLxWEl4cnbZLP","slug":"magent-montreal-ibd-phenotype-classifier-44fdc43a","name":"magent Montreal IBD Phenotype Classifier","description":"Satsangi 2006 Montreal IBD phenotype (Vienna revision). Crohn: A1-A3, L1-L4, B1-B3, optional +L4 (not when isolated L4) and p. UC: E1-E3 plus S0-S3 as assigned. Compact string, no spaces. Not an activity index (not CDAI/Mayo), not Paris, not IBDU. magent does not perform endoscopy. Not a diagnosis. Not a medical device.","url":"https://api.magentlab.com/api/calc/montreal_ibd","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":["disease"],"properties":{"extent":{"enum":["E1","E2","E3"],"type":"string","description":"Montreal UC extent as assigned (Satsangi 2006): E1 ulcerative proctitis (distal to the rectosigmoid junction), E2 left-sided (distal to the splenic flexure), E3 extensive (proximal to the splenic flexure). Required when disease=uc. Omit when disease=crohn. magent does not perform endoscopy."},"disease":{"enum":["crohn","uc"],"type":"string","description":"Satsangi 2006 Montreal disease as assigned: crohn or uc. IBDU and indeterminate colitis are not encoded. magent does not diagnose IBD."},"location":{"enum":["L1","L2","L3","L4"],"type":"string","description":"Montreal Crohn location as assigned (Satsangi 2006): L1 ileal, L2 colonic, L3 ileocolonic, L4 isolated upper GI. Required when disease=crohn. Omit when disease=uc. magent does not perform endoscopy."},"perianal":{"type":"boolean","description":"Concomitant perianal disease as assigned (Satsangi 2006 p modifier). true appends p after B1, B2, or B3. Required when disease=crohn. Omit when disease=uc. magent does not examine the patient."},"severity":{"enum":["S0","S1","S2","S3"],"type":"string","description":"Montreal UC severity as assigned (Satsangi 2006): S0 clinical remission; S1 mild (≤4 stools/day with or without blood, no systemic illness, normal ESR); S2 moderate (>4 stools/day, minimal systemic toxicity); S3 severe (≥6 bloody stools/day AND pulse ≥90 AND temperature ≥37.5°C AND haemoglobin <10.5 g/100 ml AND ESR ≥30 mm/h). The caller assigns the S token. Required when disease=uc. Omit when disease=crohn. magent does not take vitals."},"upper_gi":{"type":"boolean","description":"Concomitant upper GI disease as assigned (Satsangi 2006 L4 modifier). true adds +L4 after L1, L2, or L3. Must be false when location is isolated L4. Required when disease=crohn. Omit when disease=uc. magent does not perform endoscopy."},"behaviour":{"enum":["B1","B2","B3"],"type":"string","description":"Montreal Crohn behaviour as assigned (Satsangi 2006): B1 non-stricturing non-penetrating, B2 stricturing, B3 penetrating. Required when disease=crohn. Omit when disease=uc. magent does not perform endoscopy."},"age_at_diagnosis":{"enum":["A1","A2","A3"],"type":"string","description":"Montreal Crohn age at diagnosis as assigned (Satsangi 2006): A1 ≤16 years, A2 17-40 years, A3 >40 years. Required when disease=crohn. Omit when disease=uc. magent does not assign the A token from a chart."}}}},"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_D-mOjXCBwhPu03lJEmUpj","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":"Encodes clinician-assigned IBD disease parameters into a compact Montreal classification string (Satsangi 2006) for Crohn's disease or ulcerative colitis","exampleAgentPrompt":"Encode a Crohn's disease phenotype using Montreal classification: age of onset A2, ileal location L1, inflammatory behaviour B1, with perianal disease — give me the compact Montreal string.","exampleUseCases":[{"title":"Clinical registry IBD phenotype encoding","prompt":"I need to record a patient's Crohn's disease phenotype for our IBD registry — they have ileocolonic disease (L3), stricturing behaviour (B2), age of onset A2, and no perianal involvement. Can you encode that as a Montreal classification string?"},{"title":"UC phenotype string for research dataset","prompt":"Encode this UC patient's phenotype in Montreal format: extensive disease (E3) with moderate severity (S2)."},{"title":"Perianal Crohn phenotype for audit tool","prompt":"What's the Montreal classification for a Crohn's patient with colonic disease (L2), penetrating behaviour (B3), age of onset A3, and concomitant perianal disease?"}],"resultDescription":"A compact, space-free Montreal IBD classification string (e.g. 'A2L1B1p' for Crohn or 'E3S2' for UC) encoding the caller-assigned clinical parameters per Satsangi 2006. Not an activity index, not a diagnosis, not a medical device output.","failureModes":["Missing required 'disease' parameter returns validation error","Supplying UC-only fields (extent, severity) when disease=crohn returns error","Supplying Crohn-only fields (location, behaviour, perianal) when disease=uc returns error","Invalid enum value for any field (e.g. unsupported location code) returns validation error","IBDU or indeterminate colitis inputs are not supported and will error","Isolated L4 with +L4 modifier is explicitly excluded and may return error"],"whenToPreferThis":"Use this endpoint when you need to produce a standardised, compact Montreal IBD phenotype string from clinician-assigned parameters for Crohn's disease or ulcerative colitis per the Satsangi 2006 Vienna revision. Prefer this over manual string construction to ensure correct formatting, valid combinations, and consistent notation. Do not use for activity indices (CDAI, Mayo), Paris classification, IBDU, or when a diagnosis is needed — this is a formatting/encoding tool only.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:53:57.280Z","isFirstParty":false}