# Rome IV Proctalgia Fugax Calculator (magent)

> Rome IV Proctalgia Fugax Calculator (magent) 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 Rome IV (Rao 2016) diagnostic criteria for proctalgia fugax (F2c) based on six caller-assigned boolean inputs.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/rome_iv_proctalgia_fugax
- 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-proctalgia-fugax-calculator-magent-4c226463
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y-2946B3bhmsreOE9BPJE

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-proctalgia-fugax-calculator-magent-4c226463
```

Example prompt: Check if this patient meets the Rome IV proctalgia fugax criteria: they have recurrent rectal pain unrelated to defecation, episodes lasting seconds to a couple of minutes (well under 30 minutes), no anorectal pain between episodes, other causes of rectal pain have been excluded, criteria have been present for the last 3 months, and symptoms started at least 6 months ago.

## When to prefer this

Use this endpoint when you need a fast, structured Rome IV F2c proctalgia fugax determination and have already gathered the six required clinical criteria from a clinician or structured record. Prefer this over manual lookup when building clinical decision support workflows, automated chart coding, or gastroenterology triage tools. Not appropriate for diagnosing levator ani syndrome (episodes ≥30 min) or unspecified functional anorectal pain.

## Known failure modes

- Missing any of the six required boolean query parameters returns an error
- Passing non-boolean values for boolean fields causes a validation error
- Misclassifying episode duration (e.g. episodes >30 min) will return false, distinguishing from levator ani syndrome
- Service does not validate clinical accuracy of caller-assigned inputs — garbage in, garbage out

## How this service works

Rao 2016 Rome IV proctalgia fugax (F2c). rome_iv_proctalgia_fugax is true iff recurrent rectal pain unrelated to defecation, episodes seconds to minutes (max 30 min), no anorectal pain between episodes, other causes excluded, last-3-months criteria, and 6-month onset. magent does not examine the rectum. Not a diagnosis, not levator ani, not unspecified functional anorectal pain.

## Output

Returns a boolean field (rome_iv_proctalgia_fugax) indicating whether all six Rome IV F2c criteria for proctalgia fugax are satisfied based on the caller-supplied inputs. No physical examination or history-taking is performed by the service.

## 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": [
      "recurrent_rectal_pain_unrelated_to_defecation",
      "episodes_seconds_to_minutes_max_30_minutes",
      "no_anorectal_pain_between_episodes",
      "other_causes_of_rectal_pain_excluded",
      "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 (Rao 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 (Rao 2016). true or false as assigned by the caller. magent does not take a history."
      },
      "no_anorectal_pain_between_episodes": {
       "type": "boolean",
       "description": "Absence of anorectal pain between episodes, as assigned (Rao 2016). true or false as assigned by the caller. magent does not examine the rectum."
      },
      "other_causes_of_rectal_pain_excluded": {
       "type": "boolean",
       "description": "Other causes of rectal pain excluded as assigned: inflammatory bowel disease, intramuscular abscess, anal fissure, thrombosed hemorrhoids, prostatitis, coccygodynia, and major structural alterations of the pelvic floor (Rao 2016). true or false as assigned by the caller. magent does not examine the rectum."
      },
      "episodes_seconds_to_minutes_max_30_minutes": {
       "type": "boolean",
       "description": "Episodes last from seconds to minutes, with a maximum duration of 30 minutes, as assigned (Rao 2016 F2c). Distinguishes proctalgia fugax from levator ani syndrome (pain lasting 30 minutes or longer). true or false as assigned by the caller. magent does not examine the rectum."
      },
      "recurrent_rectal_pain_unrelated_to_defecation": {
       "type": "boolean",
       "description":
… (truncated)
```

## More

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