{
  "x402Version": 2,
  "id": 39147,
  "slug": "39147",
  "resource": "https://api.magentlab.com/api/calc/mayo_uc",
  "description": "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.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "body": {
            "items": [
              {
                "endoscopy": 0,
                "physician_global": 0,
                "rectal_bleeding": 0,
                "stool_frequency": 0
              },
              {
                "endoscopy": 0,
                "physician_global": 0,
                "rectal_bleeding": 0,
                "stool_frequency": 0
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "citation": {
                  "authors": "Schroeder KW, Tremaine WJ, Ilstrup DM",
                  "doi": "10.1056/NEJM198712243172603",
                  "id": "schroeder-1987",
                  "pmid": "3317057",
                  "source": "N Engl J Med. 1987;317(26):1625-1629",
                  "title": "Coated oral 5-aminosalicylic acid therapy for mildly to moderately active ulcerative colitis. A randomized study"
                },
                "components": [
                  {
                    "factor": "stool_frequency",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "rectal_bleeding",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "endoscopy",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "physician_global",
                    "points": 0,
                    "present": true,
                    "value": 0
                  }
                ],
                "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                "endoscopy": 0,
                "formula": "mayo_uc",
                "formula_expression": "Mayo DAI = stool_frequency + rectal_bleeding + endoscopy + physician_global; Schroeder 1987 caller-assigned integers 0-3 each; max 12; no published total-score activity bands",
                "max_score": 12,
                "physician_global": 0,
                "rectal_bleeding": 0,
                "score": 0,
                "stool_frequency": 0
              },
              {
                "citation": {
                  "authors": "Schroeder KW, Tremaine WJ, Ilstrup DM",
                  "doi": "10.1056/NEJM198712243172603",
                  "id": "schroeder-1987",
                  "pmid": "3317057",
                  "source": "N Engl J Med. 1987;317(26):1625-1629",
                  "title": "Coated oral 5-aminosalicylic acid therapy for mildly to moderately active ulcerative colitis. A randomized study"
                },
                "components": [
                  {
                    "factor": "stool_frequency",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "rectal_bleeding",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "endoscopy",
                    "points": 0,
                    "present": true,
                    "value": 0
                  },
                  {
                    "factor": "physician_global",
                    "points": 0,
                    "present": true,
                    "value": 0
                  }
                ],
                "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                "endoscopy": 0,
                "formula": "mayo_uc",
                "formula_expression": "Mayo DAI = stool_frequency + rectal_bleeding + endoscopy + physician_global; Schroeder 1987 caller-assigned integers 0-3 each; max 12; no published total-score activity bands",
                "max_score": 12,
                "physician_global": 0,
                "rectal_bleeding": 0,
                "score": 0,
                "stool_frequency": 0
              }
            ],
            "path": "/api/calc/mayo_uc"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "endoscopy": {
                          "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.",
                          "type": "integer"
                        },
                        "physician_global": {
                          "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.",
                          "type": "integer"
                        },
                        "rectal_bleeding": {
                          "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.",
                          "type": "integer"
                        },
                        "stool_frequency": {
                          "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.",
                          "type": "integer"
                        }
                      },
                      "required": [
                        "stool_frequency",
                        "rectal_bleeding",
                        "endoscopy",
                        "physician_global"
                      ],
                      "type": "object"
                    },
                    "maxItems": 25,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "const": "POST",
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "mayo-uc",
    "ulcerative-colitis",
    "dai",
    "gi",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T04:56:28.336Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T04:56:28.218Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "endoscopy": 0,
                  "physician_global": 0,
                  "rectal_bleeding": 0,
                  "stool_frequency": 0
                },
                {
                  "endoscopy": 0,
                  "physician_global": 0,
                  "rectal_bleeding": 0,
                  "stool_frequency": 0
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "citation": {
                    "authors": "Schroeder KW, Tremaine WJ, Ilstrup DM",
                    "doi": "10.1056/NEJM198712243172603",
                    "id": "schroeder-1987",
                    "pmid": "3317057",
                    "source": "N Engl J Med. 1987;317(26):1625-1629",
                    "title": "Coated oral 5-aminosalicylic acid therapy for mildly to moderately active ulcerative colitis. A randomized study"
                  },
                  "components": [
                    {
                      "factor": "stool_frequency",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "rectal_bleeding",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "endoscopy",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "physician_global",
                      "points": 0,
                      "present": true,
                      "value": 0
                    }
                  ],
                  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                  "endoscopy": 0,
                  "formula": "mayo_uc",
                  "formula_expression": "Mayo DAI = stool_frequency + rectal_bleeding + endoscopy + physician_global; Schroeder 1987 caller-assigned integers 0-3 each; max 12; no published total-score activity bands",
                  "max_score": 12,
                  "physician_global": 0,
                  "rectal_bleeding": 0,
                  "score": 0,
                  "stool_frequency": 0
                },
                {
                  "citation": {
                    "authors": "Schroeder KW, Tremaine WJ, Ilstrup DM",
                    "doi": "10.1056/NEJM198712243172603",
                    "id": "schroeder-1987",
                    "pmid": "3317057",
                    "source": "N Engl J Med. 1987;317(26):1625-1629",
                    "title": "Coated oral 5-aminosalicylic acid therapy for mildly to moderately active ulcerative colitis. A randomized study"
                  },
                  "components": [
                    {
                      "factor": "stool_frequency",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "rectal_bleeding",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "endoscopy",
                      "points": 0,
                      "present": true,
                      "value": 0
                    },
                    {
                      "factor": "physician_global",
                      "points": 0,
                      "present": true,
                      "value": 0
                    }
                  ],
                  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
                  "endoscopy": 0,
                  "formula": "mayo_uc",
                  "formula_expression": "Mayo DAI = stool_frequency + rectal_bleeding + endoscopy + physician_global; Schroeder 1987 caller-assigned integers 0-3 each; max 12; no published total-score activity bands",
                  "max_score": 12,
                  "physician_global": 0,
                  "rectal_bleeding": 0,
                  "score": 0,
                  "stool_frequency": 0
                }
              ],
              "path": "/api/calc/mayo_uc"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "endoscopy": {
                            "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.",
                            "type": "integer"
                          },
                          "physician_global": {
                            "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.",
                            "type": "integer"
                          },
                          "rectal_bleeding": {
                            "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.",
                            "type": "integer"
                          },
                          "stool_frequency": {
                            "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.",
                            "type": "integer"
                          }
                        },
                        "required": [
                          "stool_frequency",
                          "rectal_bleeding",
                          "endoscopy",
                          "physician_global"
                        ],
                        "type": "object"
                      },
                      "maxItems": 25,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "const": "POST",
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}