# magent Rome IV Child IBS Calculator (H2b)

> magent Rome IV Child IBS Calculator (H2b) 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-15).

Evaluates Hyams 2016 Rome IV H2b criteria for childhood irritable bowel syndrome using seven caller-assigned boolean flags

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/rome_iv_child_ibs
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/magent-rome-iv-child-ibs-calculator-h2b-d35bb436
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hru5DUEQYDUe0i2Ob9yn3

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-child-ibs-calculator-h2b-d35bb436
```

Example prompt: Check the Rome IV H2b criteria for a child who has abdominal pain at least 4 days per month, pain related to defecation, a change in stool frequency, no change in stool form, pain that does not resolve with constipation treatment, symptoms not explained by another condition, and criteria met for at least 2 months — does this child meet Rome IV IBS?

## When to prefer this

Use this endpoint when you need to programmatically apply the Hyams 2016 Rome IV H2b criteria for pediatric IBS specifically — not adult Rome IV IBS, not child functional constipation, and not IBS subtype (C/D/M/U) classification. It is the right choice when a caller has already clinically assessed all seven criteria flags and needs arithmetic validation of the Rome IV algorithm. Prefer this over manual calculation to ensure consistent, reproducible scoring.

## Known failure modes

- Missing required boolean flags return a validation error
- Non-boolean values for flag parameters cause schema rejection
- All seven required queryParams must be present; partial submission fails
- Network or payment authorization failures return 402 or 5xx errors

## How this service works

Hyams 2016 Rome IV H2b. rome_iv_child_ibs is true iff pain at least 4 days per month, stool_features_met >= 1, pain_does_not_resolve_with_constipation_treatment, not another condition, and 2-month duration. stool_features_met (0-3) counts related_to_defecation, change_in_stool_frequency, and change_in_stool_form. Caller assigns seven flags. magent does not examine the patient. Not a diagnosis. Not adult Rome IV IBS, not child functional constipation, not IBS-C/D/M/U subtype.

## Output

Returns a boolean rome_iv_child_ibs indicating whether all Rome IV H2b criteria for childhood IBS are met, plus stool_features_met (integer 0–3) counting how many of the three stool-feature flags (related_to_defecation, change_in_stool_frequency, change_in_stool_form) are true. The result is not a diagnosis and does not imply medical evaluation by the API.

## 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": [
      "abdominal_pain_at_least_4_days_per_month",
      "related_to_defecation",
      "change_in_stool_frequency",
      "change_in_stool_form",
      "pain_does_not_resolve_with_constipation_treatment",
      "not_explained_by_another_condition",
      "fulfilled_at_least_2_months"
     ],
     "properties": {
      "change_in_stool_form": {
       "type": "boolean",
       "description": "Pain associated with a change in form (appearance) of stool (one of three stool features; at least one required). true or false as assigned by the caller. magent does not examine the patient."
      },
      "related_to_defecation": {
       "type": "boolean",
       "description": "Pain related to defecation (one of three stool features; at least one required). true or false as assigned by the caller. magent does not examine the patient."
      },
      "change_in_stool_frequency": {
       "type": "boolean",
       "description": "Pain associated with a change in frequency of stool (one of three stool features; at least one required). true or false as assigned by the caller. magent does not examine the patient."
      },
      "fulfilled_at_least_2_months": {
       "type": "boolean",
       "description": "Criteria fulfilled for at least 2 months, as assigned (Hyams 2016 Rome IV H2b). true or false as assigned by the caller. magent does not take a history."
      },
      "not_explained_by_another_condition": {
       "type": "boolean",
       "description": "After appropriate evaluation, the symptoms cannot be fully explained by another medical condition, as assigned (Hyams 2016 Rome IV H2b). true or false as assigned by the caller. magent does not examine the patient."
      },
      "abdominal_pain_at_least_4_days_per_month": {
       "type": "boolean",
       "description": "Abdominal pain at least 4 days per month, as assigned (Hyams 2016 Rome IV H2b). true or false as assigned by the caller. magen
… (truncated)
```

## More

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