# magent Rome IV IBS Criteria Calculator

> magent Rome IV IBS Criteria 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-13).

Evaluates Rome IV IBS diagnostic criteria (Mearin 2016) from five caller-supplied clinical flags and returns a boolean result plus count of supporting features met

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/rome_iv_ibs
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/magent-rome-iv-ibs-criteria-calculator-df420e09
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I2bzrc6ycCAasLHiDGLXY

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-rome-iv-ibs-criteria-calculator-df420e09
```

Example prompt: Check whether this patient meets Rome IV IBS criteria: they have recurrent abdominal pain at least 1 day per week over the last 3 months, symptoms started more than 6 months ago, and the pain is related to defecation and accompanied by a change in stool frequency but not a change in stool form.

## When to prefer this

Use this endpoint when you need a fast, deterministic, auditable computation of Rome IV IBS criteria (Mearin 2016) from already-assessed clinical flags. Prefer it over manual rule-checking when integrating IBS screening into EHR workflows, research pipelines, or clinical decision support tools. It is not a substitute for clinical examination and does not produce Rome III results or IBS subtype classification.

## Known failure modes

- Missing required query parameter causes validation error
- Non-boolean value for a flag causes schema rejection
- All five flags required; partial input returns error
- Payment failure (x402) if USDC not provided
- API returns result based solely on caller-supplied flags — incorrect flag assignment yields incorrect output

## How this service works

Mearin 2016 Rome IV IBS. rome_iv_ibs is true iff recurrent abdominal pain at least 1 day per week in the last 3 months, onset at least 6 months prior, and at least two of: related to defecation, change in stool frequency, and change in stool form. supporting_features_met is 0-3. Caller assigns five flags. magent does not examine the patient. Not a diagnosis, not Rome III, not IBS subtype.

## Output

Returns a JSON object indicating whether rome_iv_ibs is true or false (criteria met or not) and supporting_features_met as an integer 0–3 reflecting how many of the three supporting feature flags were true. Not a clinical diagnosis and does not classify IBS subtype.

## 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": [
      "pain_1_day_per_week_last_3_months",
      "symptom_onset_at_least_6_months_prior",
      "related_to_defecation",
      "associated_change_stool_frequency",
      "associated_change_stool_form"
     ],
     "properties": {
      "related_to_defecation": {
       "type": "boolean",
       "description": "Pain related to defecation (one of three supporting features; at least two required). true or false as assigned by the caller."
      },
      "associated_change_stool_form": {
       "type": "boolean",
       "description": "Pain associated with a change in form (appearance) of stool (one of three supporting features; at least two required). true or false as assigned by the caller."
      },
      "associated_change_stool_frequency": {
       "type": "boolean",
       "description": "Pain associated with a change in frequency of stool (one of three supporting features; at least two required). true or false as assigned by the caller."
      },
      "pain_1_day_per_week_last_3_months": {
       "type": "boolean",
       "description": "Recurrent abdominal pain on average at least 1 day per week in the last 3 months (Mearin 2016). Pain only, not discomfort. true or false as assigned by the caller. magent does not examine the patient."
      },
      "symptom_onset_at_least_6_months_prior": {
       "type": "boolean",
       "description": "Criteria fulfilled for the last 3 months with symptom onset at least 6 months before diagnosis, as assigned (Mearin 2016). true or false as assigned by the caller. magent does not take a history."
      }
     }
    }
   },
   "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-rome-iv-ibs-criteria-calculator-df420e09/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)
