# Rome IV CAPS (Centrally Mediated Abdominal Pain Syndrome) Calculator

> Rome IV CAPS (Centrally Mediated Abdominal Pain Syndrome) 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-14).

Evaluates whether a patient meets the Keefer 2016 Rome IV CAPS diagnostic criteria based on seven caller-assigned boolean flags

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/rome_iv_caps
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rome-iv-caps-centrally-mediated-abdominal-pain-syndrome-calculator-450371fd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_H-mnPIhOGx_kUKQNHY6Xd

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-iv-caps-centrally-mediated-abdominal-pain-syndrome-calculator-450371fd
```

Example prompt: Check if my patient meets Rome IV CAPS criteria: they have continuous abdominal pain, no clear relationship with eating or defecation, the pain significantly limits their daily functioning, they are not feigning, no other GI or medical condition explains it, criteria have been fulfilled for the last 3 months, and symptom onset was at least 6 months ago.

## When to prefer this

Use this endpoint when you need a deterministic, rule-based evaluation of whether a patient satisfies the Rome IV CAPS (Keefer 2016) criteria specifically — not IBS, not narcotic bowel syndrome, not functional dyspepsia. Prefer this over general LLM reasoning when you need a reproducible, auditable boolean classification based on pre-assessed clinical flags, especially in automated clinical decision support pipelines.

## Known failure modes

- Missing any of the seven required boolean query parameters returns an error
- All seven flags must be true for rome_iv_caps to be true; any false flag yields false
- Feigning assessment is entirely caller-assigned; the API does not validate clinical plausibility
- Psychosocial comorbidity is pass-through only; the API does not assess it independently

## How this service works

Keefer 2016 Rome IV CAPS (formerly FAPS). rome_iv_caps is true iff continuous or nearly continuous abdominal pain, no or only occasional relationship with eating, defecation, or menses, pain limits daily functioning, pain is not feigned, not explained by another GI or medical condition, last-3-months criteria, and 6-month onset. Psychosocial comorbidity is copy-only. magent does not examine or judge feigning beyond the caller flag. Not a diagnosis, not IBS, not narcotic bowel syndrome.

## Output

Returns a boolean rome_iv_caps field indicating whether all seven Rome IV CAPS criteria are simultaneously satisfied, plus a psychosocial_comorbidity field that is copied through from caller input. The result is not a clinical diagnosis and explicitly excludes IBS and narcotic bowel syndrome.

## 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": [
      "continuous_or_nearly_continuous_abdominal_pain",
      "no_or_only_occasional_relationship_with_physiological_events",
      "pain_limits_daily_functioning",
      "pain_not_feigned",
      "not_explained_by_another_gi_or_medical_condition",
      "fulfilled_last_3_months",
      "onset_at_least_6_months"
     ],
     "properties": {
      "pain_not_feigned": {
       "type": "boolean",
       "description": "The pain is not feigned, as assigned by the caller (Keefer 2016). true or false as assigned by the caller. magent does not judge feigning beyond this flag."
      },
      "fulfilled_last_3_months": {
       "type": "boolean",
       "description": "Criteria fulfilled for the last 3 months, as assigned (Keefer 2016). true or false as assigned by the caller. magent does not take a history."
      },
      "onset_at_least_6_months": {
       "type": "boolean",
       "description": "Symptom onset at least 6 months prior to diagnosis, as assigned (Keefer 2016). true or false as assigned by the caller. magent does not take a history."
      },
      "pain_limits_daily_functioning": {
       "type": "boolean",
       "description": "Pain limits some aspect of daily functioning, as assigned (Keefer 2016). true or false as assigned by the caller. magent does not examine the patient."
      },
      "continuous_or_nearly_continuous_abdominal_pain": {
       "type": "boolean",
       "description": "Continuous or nearly continuous abdominal pain, as assigned (Keefer 2016 Rome IV CAPS / D1). true or false as assigned by the caller. magent does not examine the patient."
      },
      "not_explained_by_another_gi_or_medical_condition": {
       "type": "boolean",
       "description": "Pain is not explained by another structural or functional gastrointestinal disorder or other medical condition, as assigned (Keefer 2016). true or false as assigned by the caller. magent does not examine the pa
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rome-iv-caps-centrally-mediated-abdominal-pain-syndrome-calculator-450371fd/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)
