# magent Montreal IBD Phenotype Classifier

> magent Montreal IBD Phenotype Classifier 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-15).

Encodes clinician-assigned IBD disease parameters into a compact Montreal classification string (Satsangi 2006) for Crohn's disease or ulcerative colitis

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/montreal_ibd
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/magent-montreal-ibd-phenotype-classifier-44fdc43a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ey9XKOEHJLxWEl4cnbZLP

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-montreal-ibd-phenotype-classifier-44fdc43a
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## 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": [
      "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 whe
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-montreal-ibd-phenotype-classifier-44fdc43a/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)
