# magent Rome IV Functional Dysphagia Calculator

> magent Rome IV Functional Dysphagia 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 six clinician-assigned boolean flags to determine whether a patient meets the Rome IV criteria for functional dysphagia (Aziz 2016).

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/rome_iv_functional_dysphagia
- 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-functional-dysphagia-calculator-ec9bca49
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JuKF4PpfOn2FJzT6mAok4

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-functional-dysphagia-calculator-ec9bca49
```

Example prompt: Check if this patient meets Rome IV functional dysphagia criteria — they report a sense of food sticking in the esophagus, no mucosal or structural abnormality found, symptoms not explained by GERD or eosinophilic esophagitis, no major esophageal motor disorder, criteria met for the last 3 months, and symptom onset was at least 6 months ago.

## When to prefer this

Use this endpoint when a clinician or clinical AI agent has already gathered the necessary history, endoscopy, and manometry information and needs to quickly and reproducibly apply the Rome IV functional dysphagia decision rule per Aziz 2016. Prefer this over manual lookup when automating clinical documentation, building GI diagnostic pipelines, or auditing whether Rome IV criteria are consistently applied across a patient cohort. Not suitable for raw symptom input that hasn't been pre-adjudicated by a clinician.

## Known failure modes

- Missing required boolean parameters returns a validation error
- Passing non-boolean values for flag fields causes a schema error
- Misassigning clinical flags (e.g. not actually ruling out GERD) leads to incorrect result — garbage in, garbage out
- Cannot distinguish borderline vs clear-cut criteria — caller must pre-adjudicate
- Does not handle globus or oropharyngeal dysphagia — caller must ensure correct symptom type

## How this service works

Aziz 2016 Rome IV functional dysphagia. rome_iv_functional_dysphagia is true iff sense of food sticking or passing abnormally, no mucosal or structural abnormality, not explained by GERD or eosinophilic esophagitis, no major esophageal motor disorder, last-3-months criteria, and 6-month onset. Caller assigns six flags. magent does not read barium, endoscopy, or manometry. Not a diagnosis, not globus, not oropharyngeal dysphagia. Minor or borderline motor disorders remain compatible.

## Output

Returns a boolean field rome_iv_functional_dysphagia indicating whether all six Rome IV criteria for functional dysphagia (Aziz 2016) are simultaneously satisfied. True means all flags are met; false means at least one criterion is unmet. Does not provide a clinical diagnosis, does not interpret imaging, endoscopy, or manometry — criteria assignment is the caller's responsibility.

## 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": [
      "sense_of_food_sticking_or_passing_abnormally",
      "no_mucosal_or_structural_abnormality",
      "not_explained_by_gerd_or_eoe",
      "no_major_esophageal_motor_disorder",
      "fulfilled_last_3_months",
      "onset_at_least_6_months"
     ],
     "properties": {
      "fulfilled_last_3_months": {
       "type": "boolean",
       "description": "Criteria fulfilled for the last 3 months, as assigned (Aziz 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 (Aziz 2016). true or false as assigned by the caller. magent does not take a history."
      },
      "not_explained_by_gerd_or_eoe": {
       "type": "boolean",
       "description": "Symptoms not explained by GERD or eosinophilic esophagitis, as assigned (Aziz 2016). true or false as assigned by the caller. magent does not read endoscopy."
      },
      "no_major_esophageal_motor_disorder": {
       "type": "boolean",
       "description": "Absence of a major esophageal motor disorder, as assigned (Aziz 2016). true or false as assigned by the caller. magent does not interpret manometry. Minor or borderline motor disorders remain compatible."
      },
      "no_mucosal_or_structural_abnormality": {
       "type": "boolean",
       "description": "Absence of evidence that esophageal mucosal or structural abnormality is the cause, as assigned (Aziz 2016). true or false as assigned by the caller. magent does not read endoscopy or barium."
      },
      "sense_of_food_sticking_or_passing_abnormally": {
       "type": "boolean",
       "description": "Sense of solid and/or liquid foods sticking, lodging, or passing abnormally through the esophagus, as assigned (Aziz 2016). true or false as assigned by the caller. magent does not examine the patient."
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-rome-iv-functional-dysphagia-calculator-ec9bca49/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)
