# magent Rome IV Biliary SOD (Type II / Functional Biliary Sphincter of Oddi Disorder)

> magent Rome IV Biliary SOD (Type II / Functional Biliary Sphincter of Oddi Disorder) 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 Cotton 2016 Rome IV criteria to determine whether a patient meets the definition of functional biliary sphincter of Oddi disorder (formerly SOD type II / E1b), requiring six biliary pain flags plus exactly one of elevated liver enzymes or dilated bile duct, with no stones or structural abnormalities.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/rome_iv_biliary_sod
- 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/magent-rome-iv-biliary-sod-type-ii-functional-biliary-sphincter-of-84db822a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LVgtocBR2Mp7nWekYAlkp

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-biliary-sod-type-ii-functional-biliary-sphincter-of-84db822a
```

Example prompt: My patient has episodic RUQ pain that builds to a steady level lasting over 30 minutes, occurs at irregular intervals (not daily), is severe enough that she visited the ED, is not related to bowel movements, and is not relieved by postural changes or antacids — she has elevated liver enzymes but no dilated bile duct, and imaging shows no stones or structural abnormalities; does she meet Rome IV criteria for functional biliary sphincter of Oddi disorder?

## When to prefer this

Use this endpoint when you have already assigned the Rome IV E1 biliary pain flags and objective findings (enzyme elevation XOR ductal dilation, absence of stones) as booleans and need a structured, rule-based Rome IV E1b (functional biliary SOD) determination. Prefer it over general symptom checkers or LLM reasoning when you need a reproducible, criteria-faithful computation traceable to Cotton 2016. Do not use it for pancreatic SOD, functional gallbladder disorder, or when both or neither objective finding is present.

## Known failure modes

- XOR constraint violated: both elevated_liver_enzymes and dilated_bile_duct are true (this is Type I / organic stenosis, not E1b — endpoint will not return true for SOD)
- XOR constraint violated: neither elevated_liver_enzymes nor dilated_bile_duct is true (Type III, not this box)
- Missing required biliary pain flags: if any of the six E1 pain criteria booleans are absent, the request will fail validation
- Misuse: caller expects the endpoint to read or interpret actual lab values, imaging reports, or manometry tracings — it only accepts pre-assigned booleans
- Misuse: caller attempts to use this endpoint for pancreatic SOD or functional gallbladder disorder — out of scope

## How this service works

Cotton 2016 Rome IV E1b functional biliary SOD (former SOD type II). rome_iv_biliary_sod iff six E1 biliary-pain flags, enzymes XOR dilated bile duct, and no stones or other structural abnormalities. Type I (both findings) is organic stenosis, not this box. Type III (neither) is not this box. Supportive amylase/lipase, manometry, and scintigraphy are reported, not required. magent does not read labs, imaging, manometry, or ERCP. Not a diagnosis, not pancreatic SOD, not functional gallbladder.

## Output

Returns a boolean rome_iv_biliary_sod indicating whether the patient's criteria satisfy Cotton 2016 Rome IV E1b (functional biliary sphincter of Oddi disorder). Also reports supportive findings (normal amylase/lipase, abnormal manometry, hepatobiliary scintigraphy) as informational, not determinative. Does not produce a diagnosis and does not interpret labs, imaging, or manometry directly.

## 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",
      "elevated_liver_enzymes",
      "dilated_bile_duct",
      "absence_of_bile_duct_stones_or_other_structural_abnormalities",
      "normal_amylase_lipase",
      "abnormal_sphincter_of_oddi_manometry",
      "hepatobiliary_scintigraphy"
     ],
     "properties": {
      "dilated_bile_duct": {
       "type": "boolean",
       "description": "Dilated bile duct, as assigned (Cotton 2016 E1b). XOR with elevated_liver_enzymes: exactly one must be true. true or false as assigned by the caller. magent does not read imaging."
      },
      "normal_amylase_lipase": {
       "type": "boolean",
       "description": "Normal amylase/lipase, a supportive criterion that is not required for rome_iv_biliary_sod (Cotton 2016 E1b). true or false as assigned by the caller. magent does not read labs."
      },
      "elevated_liver_enzymes": {
       "type": "boolean",
       "description": "Elevated liver enzymes, as assigned (Cotton 2016 E1b). XOR with dilated_bile_duct: exactly one must be true. true or false as assigned by the caller. magent does not read labs."
      },
      "epigastric_or_ruq_pain": {
       "type": "boolean",
       "description": "Episodes of pain located in the epigastrium and/or right upper quadrant (Cotton 2016 E1 biliary pain). true or false as assigned by the caller. magent does not examine the patient."
      },
      "hepatobiliary_scintigraphy": {
       "type": "boolean",
       "description": "Abnormal hepatobiliary scintigraphy, a supportive criterion that is not required for rome_iv_biliary_sod (Cotton 2016 E1b). true or false as assigned by the ca
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-rome-iv-biliary-sod-type-ii-functional-biliary-sphincter-of-84db822a/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)
