# Rome IV Functional Gallbladder Disorder Calculator (Cotton 2016)

> Rome IV Functional Gallbladder Disorder Calculator (Cotton 2016) 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 nine caller-assigned clinical flags to determine whether a patient meets the Rome IV E1a criteria for functional gallbladder disorder, with supportive scintigraphy and lab flags.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/rome_iv_functional_gallbladder
- 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-functional-gallbladder-disorder-calculator-cotton-2016-cc94bce4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q0_I4WY4YLtQ0dz04q2BQ

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-functional-gallbladder-disorder-calculator-cotton-2016-cc94bce4
```

Example prompt: Can you check if this patient meets Rome IV functional gallbladder disorder criteria? They have epigastric pain, it builds to a steady level and lasts over 30 minutes, occurs at different intervals (not daily), is severe enough to interrupt activities, is not related to bowel movements, is not relieved by posture or acid suppression, there are no gallstones or structural pathology found, ejection fraction on scintigraphy is low, and liver enzymes, bilirubin, amylase, and lipase are all normal.

## When to prefer this

Use this endpoint when you need a deterministic, codified evaluation of Cotton 2016 Rome IV E1a functional gallbladder disorder criteria from pre-assigned clinical boolean flags. It is not a diagnostic tool, does not interpret imaging or labs directly, and does not cover biliary sphincter of Oddi dysfunction or pancreatic SOD — use sibling endpoints for those disorders or other Rome IV subtypes. Prefer this over manual criteria lookup when automating clinical documentation, EHR integration, or decision support pipelines that require a structured, auditable Rome IV E1a result.

## Known failure modes

- Missing any of the nine required boolean query parameters returns a validation error
- Non-boolean values for flag parameters cause schema rejection
- Network or payment (x402) failures prevent the call from completing
- Misclassification risk if caller assigns flags incorrectly — the endpoint trusts caller input entirely

## How this service works

Cotton 2016 Rome IV E1a functional gallbladder disorder. rome_iv_functional_gallbladder is true iff nested E1 biliary pain and absence of gallstones or other structural pathology. low_ef_on_gallbladder_scintigraphy and normal_liver_enzymes_conjugated_bilirubin_amylase_lipase are supportive and not required. Caller assigns nine flags. magent does not read ultrasound, EUS, or HIDA or decide cholecystectomy. Not a diagnosis, not biliary SOD, not pancreatic SOD.

## Output

Returns a boolean field rome_iv_functional_gallbladder indicating whether the patient satisfies Rome IV E1a functional gallbladder disorder criteria (Cotton 2016), based on the caller-assigned flags for biliary pain characteristics and absence of structural pathology, plus supportive scintigraphy and lab flags which are informational but not required.

## 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": [
      "epigastric_or_ruq_pain",
      "builds_to_steady_level_lasts_30_min_or_longer",
      "occurring_at_different_intervals_not_daily",
      "severe_enough_to_interrupt_activities_or_ed_visit",
      "not_significantly_related_to_bowel_movements",
      "not_significantly_relieved_by_postural_change_or_acid_suppression",
      "absence_of_gallstones_or_other_structural_pathology",
      "low_ef_on_gallbladder_scintigraphy",
      "normal_liver_enzymes_conjugated_bilirubin_amylase_lipase"
     ],
     "properties": {
      "epigastric_or_ruq_pain": {
       "type": "boolean",
       "description": "Epigastric or right upper quadrant pain, as assigned (Cotton 2016 Rome IV E1 biliary pain). true or false as assigned by the caller. magent does not examine the patient."
      },
      "low_ef_on_gallbladder_scintigraphy": {
       "type": "boolean",
       "description": "Low ejection fraction on gallbladder scintigraphy, a supportive criterion that is not required for rome_iv_functional_gallbladder (Cotton 2016). true or false as assigned by the caller. magent does not read HIDA or decide cholecystectomy."
      },
      "occurring_at_different_intervals_not_daily": {
       "type": "boolean",
       "description": "Pain occurring at different intervals (not daily), as assigned (Cotton 2016 E1). true or false as assigned by the caller. magent does not take a history."
      },
      "not_significantly_related_to_bowel_movements": {
       "type": "boolean",
       "description": "Pain not significantly related to bowel movements, as assigned (Cotton 2016 E1). true or false as assigned by the caller. magent does not take a history."
      },
      "builds_to_steady_level_lasts_30_min_or_longer": {
       "type": "boolean",
       "description": "Pain builds to a steady level and lasts 30 minutes or longer, as assigned (Cotton 2016 E1). true or false as assigned by the caller. magent does not ta
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rome-iv-functional-gallbladder-disorder-calculator-cotton-2016-cc94bce4/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)
