# magent Mayo UC (Schroeder 1987) Disease Activity Index Calculator

> magent Mayo UC (Schroeder 1987) Disease Activity Index Calculator 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).

Computes the Schroeder 1987 Mayo ulcerative colitis disease-activity index (DAI) score by summing four caller-provided integer subscores (stool frequency, rectal bleeding, endoscopy, physician global), returning a total out of 12.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/mayo_uc
- 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-mayo-uc-schroeder-1987-disease-activity-index-calculator-1ec5226b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wyMkz7GoP_Ds1DHa5wTnm

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-mayo-uc-schroeder-1987-disease-activity-index-calculator-1ec5226b
```

Example prompt: Calculate the Mayo ulcerative colitis disease activity index for a patient with stool frequency score 2, rectal bleeding score 1, endoscopy score 2, and physician global assessment score 2.

## When to prefer this

Use this endpoint when you need a fast, reliable arithmetic summation of the four Schroeder 1987 Mayo UC subscores and already have those values clinically assigned. It is appropriate for EHR automation, clinical trial data pipelines, or decision-support workflows where the subscores are known inputs. Do not use it if you need remission band thresholds, partial Mayo scoring, or any diagnostic interpretation beyond the raw sum.

## Known failure modes

- Missing required parameter (stool_frequency, rectal_bleeding, endoscopy, or physician_global) — request fails with a validation error
- Integer out of range (value not in 0–3) — likely a validation error or undefined behavior
- Non-integer value supplied for a subscore — schema validation failure
- Network or payment (x402) failure — endpoint unreachable or payment not accepted

## How this service works

Schroeder 1987 ulcerative colitis disease-activity index (Mayo DAI): four caller-assigned integers 0-3 (stool frequency, rectal bleeding, endoscopy, physician global). magent sums only (max 12) and does not return later remission or activity-band cutoffs. magent does not count stools, examine the patient, or perform endoscopy. Not a diagnosis and not the Mayo SPN pulmonary-nodule model.

## Output

Returns the summed Schroeder 1987 Mayo Disease Activity Index total score as an integer between 0 and 12, derived from the four caller-supplied subscores. Does not provide remission cutoffs, activity band classifications, or diagnostic interpretation.

## 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": [
      "stool_frequency",
      "rectal_bleeding",
      "endoscopy",
      "physician_global"
     ],
     "properties": {
      "endoscopy": {
       "type": "integer",
       "description": "Caller-assigned Schroeder 1987 endoscopy / flexible proctosigmoidoscopy (integer 0-3): 0 normal or inactive; 1 mild (erythema, decreased vascular pattern, mild friability); 2 moderate (marked erythema, absent vascular pattern, friability, erosions); 3 severe (spontaneous bleeding, ulceration). magent does not perform endoscopy."
      },
      "rectal_bleeding": {
       "type": "integer",
       "description": "Caller-assigned Schroeder 1987 rectal bleeding (integer 0-3): 0 none; 1 streaks of blood with stool less than half the time; 2 obvious blood with stool most of the time; 3 blood alone passed. magent does not examine the patient."
      },
      "stool_frequency": {
       "type": "integer",
       "description": "Caller-assigned Schroeder 1987 stool frequency (integer 0-3): 0 normal number of stools for this patient; 1 = 1-2 stools/day more than normal; 2 = 3-4 more; 3 = 5 or more more than normal. magent does not count stools."
      },
      "physician_global": {
       "type": "integer",
       "description": "Caller-assigned Schroeder 1987 physician's global assessment (integer 0-3): 0 normal; 1 mild; 2 moderate; 3 severe. 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-mayo-uc-schroeder-1987-disease-activity-index-calculator-1ec5226b/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)
