# Rome III IBS Criteria Calculator (Longstreth 2006)

> Rome III IBS Criteria Calculator (Longstreth 2006) 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 whether a patient meets the Rome III criteria for irritable bowel syndrome (IBS) based on five caller-assigned boolean flags

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/rome_iii_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/rome-iii-ibs-criteria-calculator-longstreth-2006-4c4ce058
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FukqYbVOhCLqb-WGqN-Rd

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 rome-iii-ibs-criteria-calculator-longstreth-2006-4c4ce058
```

Example prompt: Check if this patient meets Rome III IBS criteria: they have had recurrent abdominal pain or discomfort at least 3 days per month for the past 3 months, symptoms started more than 6 months ago, pain improves with defecation, and they have noticed a change in stool frequency but no change in stool form.

## When to prefer this

Use this endpoint when you need a programmatic, rule-based check of the Longstreth 2006 Rome III IBS definition and you have already obtained the five required clinical boolean flags from a clinician or structured EHR data. Prefer this over manual lookup when building clinical decision support tools, research screening pipelines, or EHR automation that must apply the Rome III standard consistently. Note: this does not apply Rome IV criteria and does not determine IBS subtype — if either of those is needed, a different endpoint or tool is required.

## Known failure modes

- Missing required boolean flags returns a validation error
- Invalid parameter types (non-boolean) cause a 400 Bad Request
- All five flags must be provided; partial input is rejected
- Payment not attached or insufficient USDC results in 402 Payment Required

## How this service works

Longstreth 2006 Rome III IBS. rome_iii_ibs is true iff pain or discomfort at least 3 days per month in the last 3 months, onset at least 6 months prior, and at least two of: improvement with 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 IV, not IBS subtype.

## Output

Returns a boolean rome_iii_ibs indicating whether all Rome III criteria are satisfied, and an integer supporting_features_met (0–3) counting how many of the three supporting features (improvement with defecation, change in stool frequency, change in stool form) were flagged true. Does not return an IBS subtype and is not a Rome IV evaluation.

## 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_or_discomfort_3_days_per_month_last_3_months",
      "symptom_onset_at_least_6_months_prior",
      "improvement_with_defecation",
      "onset_change_stool_frequency",
      "onset_change_stool_form"
     ],
     "properties": {
      "onset_change_stool_form": {
       "type": "boolean",
       "description": "Onset 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."
      },
      "improvement_with_defecation": {
       "type": "boolean",
       "description": "Improvement with defecation (one of three supporting features; at least two required). true or false as assigned by the caller."
      },
      "onset_change_stool_frequency": {
       "type": "boolean",
       "description": "Onset 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."
      },
      "symptom_onset_at_least_6_months_prior": {
       "type": "boolean",
       "description": "Symptom onset at least 6 months prior to diagnosis, as assigned (Longstreth 2006). true or false as assigned by the caller. magent does not take a history."
      },
      "pain_or_discomfort_3_days_per_month_last_3_months": {
       "type": "boolean",
       "description": "Recurrent abdominal pain or discomfort at least 3 days per month in the last 3 months (Longstreth 2006). true or false as assigned by the caller. 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/rome-iii-ibs-criteria-calculator-longstreth-2006-4c4ce058/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)
