MAGENT

GI · LIVE

Manning 1978 IBS symptoms

Manning

Count the six Manning 1978 IBS symptoms and return the integer score (0-6). Manning 1978 does not publish a diagnostic cutoff.

LIVE $0.005 USDC GET /api/calc/manning

Markdown: /docs/manning.md · Canonical: https://magentlab.com/docs/manning

Not a medical device. Not a diagnosis, dose, or listing recommendation.

What it computes

Count the six Manning 1978 IBS symptoms and return the integer score (0-6). Manning 1978 does not publish a diagnostic cutoff.

When to use

When an agent already has the six caller-assigned Manning 1978 symptom flags and needs the published symptom count. magent does not examine the patient.

When not to use

  • Not a medical device.
  • Not a diagnosis. magent does not diagnose irritable bowel syndrome.
  • The caller assigns the six flags. magent does not examine the patient.
  • Manning 1978 reports that the more of these symptoms that were present, the more likely IBS. It does not publish a diagnostic cutoff. This tool returns the symptom count only.
  • This tool is Manning 1978 symptom count only. Not Rome III and not Rome IV.

Formula

manning = visible_abdominal_distension + pain_relief_with_bowel_movement + more_frequent_stools_with_pain_onset + looser_stools_with_pain_onset + rectal_mucus + incomplete_evacuation; each 1 if true; max 6

Citation

Title
Towards positive diagnosis of the irritable bowel
Authors
Manning AP, Thompson WG, Heaton KW, Morris AF
Source
Br Med J. 1978;2(6138):653-654
DOI
10.1136/bmj.2.6138.653

Worked example

No symptoms

Given: incomplete_evacuation=falselooser_stools_with_pain_onset=falsemore_frequent_stools_with_pain_onset=falsepain_relief_with_bowel_movement=falserectal_mucus=falsevisible_abdominal_distension=false

  1. All six flags false
  2. score = 0

Four BMJ-significant symptoms

Given: incomplete_evacuation=falselooser_stools_with_pain_onset=truemore_frequent_stools_with_pain_onset=truepain_relief_with_bowel_movement=truerectal_mucus=falsevisible_abdominal_distension=true

  1. Visible distension, pain relief with bowel movement, more frequent stools at pain onset, and looser stools at pain onset are true
  2. Rectal mucus and incomplete evacuation are false
  3. score = 4

Also searched as

  • Manning criteria
  • Manning IBS
  • Manning 1978
  • irritable bowel Manning
  • Manning symptoms
  • positive diagnosis irritable bowel
  • Manning abdominal pain stools

Try

Opens the live endpoint. Unpaid browser requests show the paywall; agents should send Accept: application/json.

/api/calc/manning?visible_abdominal_distension=false&pain_relief_with_bowel_movement=false&more_frequent_stools_with_pain_onset=false&looser_stools_with_pain_onset=false&rectal_mucus=false&incomplete_evacuation=false

Full URL: https://api.magentlab.com/api/calc/manning?visible_abdominal_distension=false&pain_relief_with_bowel_movement=false&more_frequent_stools_with_pain_onset=false&looser_stools_with_pain_onset=false&rectal_mucus=false&incomplete_evacuation=false

Call

Expect HTTP 402 until you retry with PAYMENT-SIGNATURE. Incomplete query params return HTTP 400 before any quote or charge.

curl -i -H "Accept: application/json" "https://api.magentlab.com/api/calc/manning?visible_abdominal_distension=false&pain_relief_with_bowel_movement=false&more_frequent_stools_with_pain_onset=false&looser_stools_with_pain_onset=false&rectal_mucus=false&incomplete_evacuation=false"

Parameters

Name Type Required Description
visible_abdominal_distension boolean required Visible abdominal distension (Manning 1978; one of four symptoms significantly more common in IBS). true or false as assigned by the caller. magent does not examine the patient.
pain_relief_with_bowel_movement boolean required Pain eased after bowel action (Manning 1978; one of four symptoms significantly more common in IBS). true or false as assigned by the caller.
more_frequent_stools_with_pain_onset boolean required More frequent stools at onset of pain (Manning 1978; one of four symptoms significantly more common in IBS). true or false as assigned by the caller.
looser_stools_with_pain_onset boolean required Looser stools at onset of pain (Manning 1978; one of four symptoms significantly more common in IBS). true or false as assigned by the caller.
rectal_mucus boolean required Passage of mucus per rectum (Manning 1978; more common in IBS, not statistically significant in that table). true or false as assigned by the caller.
incomplete_evacuation boolean required Feeling of incomplete evacuation (Manning 1978; more common in IBS, not statistically significant in that table). true or false as assigned by the caller.

Bulk (POST)

POST the same path with a JSON items array. The first item is the GET unit; each additional item is $0.002. Invalid items return HTTP 400 before settlement.

POST /api/calc/manning Max 25 unit_amount + extra_item_amount * (n - 1) extra $0.002 PREVIEW

  • 1 to 25 items. Each item uses the same keys as the GET query parameters.
  • POST of 1 item costs the same as GET. Lists longer than 25: chunk into multiple POSTs. Extra items still execute; do not pad dummy rows.
  • The first invalid item fails the whole request (index in the 400 JSON). You are not charged.
  • HTTP 200 is {count, path, items}. Each items[i] is the GET 200 body for that row.
  • Catalog misses (empty matches, found=false) stay paid 200s inside that slot.
  • x402 resource URL is this path plus n and body_sha256. Browsers that prefer text/html get the same paywall as GET; Pay retries POST with the same items.

Example request (fixture)

{
  "items": [
    {
      "incomplete_evacuation": "false",
      "looser_stools_with_pain_onset": "false",
      "more_frequent_stools_with_pain_onset": "false",
      "pain_relief_with_bowel_movement": "false",
      "rectal_mucus": "false",
      "visible_abdominal_distension": "false"
    },
    {
      "incomplete_evacuation": "false",
      "looser_stools_with_pain_onset": "false",
      "more_frequent_stools_with_pain_onset": "false",
      "pain_relief_with_bowel_movement": "false",
      "rectal_mucus": "false",
      "visible_abdominal_distension": "false"
    }
  ]
}

Open bulk paywall →

Opens a two-item fixture on the API host. Unpaid browsers get the same MetaMask paywall as GET; Pay retries POST with those items.

Example 200 (fixture)

{
  "count": 2,
  "path": "/api/calc/manning",
  "items": [
    {
      "components": [
        {
          "factor": "visible_abdominal_distension",
          "points": 0,
          "present": false
        },
        {
          "factor": "pain_relief_with_bowel_movement",
          "points": 0,
          "present": false
        },
        {
          "factor": "more_frequent_stools_with_pain_onset",
          "points": 0,
          "present": false
        },
        {
          "factor": "looser_stools_with_pain_onset",
          "points": 0,
          "present": false
        },
        {
          "factor": "rectal_mucus",
          "points": 0,
          "present": false
        },
        {
          "factor": "incomplete_evacuation",
          "points": 0,
          "present": false
        }
      ],
      "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
      "citation": {
        "authors": "Manning AP, Thompson WG, Heaton KW, Morris AF",
        "doi": "10.1136/bmj.2.6138.653",
        "id": "manning-1978",
        "pmid": "698649",
        "source": "Br Med J. 1978;2(6138):653-654",
        "title": "Towards positive diagnosis of the irritable bowel"
      },
      "formula": "manning",
      "formula_expression": "manning = visible_abdominal_distension + pain_relief_with_bowel_movement + more_frequent_stools_with_pain_onset + looser_stools_with_pain_onset + rectal_mucus + incomplete_evacuation; each 1 if true; max 6",
      "max_score": 6,
      "score": 0
    },
    {
      "components": [
        {
          "factor": "visible_abdominal_distension",
          "points": 0,
          "present": false
        },
        {
          "factor": "pain_relief_with_bowel_movement",
          "points": 0,
          "present": false
        },
        {
          "factor": "more_frequent_stools_with_pain_onset",
          "points": 0,
          "present": false
        },
        {
          "factor": "looser_stools_with_pain_onset",
          "points": 0,
          "present": false
        },
        {
          "factor": "rectal_mucus",
          "points": 0,
          "present": false
        },
        {
          "factor": "incomplete_evacuation",
          "points": 0,
          "present": false
        }
      ],
      "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
      "citation": {
        "authors": "Manning AP, Thompson WG, Heaton KW, Morris AF",
        "doi": "10.1136/bmj.2.6138.653",
        "id": "manning-1978",
        "pmid": "698649",
        "source": "Br Med J. 1978;2(6138):653-654",
        "title": "Towards positive diagnosis of the irritable bowel"
      },
      "formula": "manning",
      "formula_expression": "manning = visible_abdominal_distension + pain_relief_with_bowel_movement + more_frequent_stools_with_pain_onset + looser_stools_with_pain_onset + rectal_mucus + incomplete_evacuation; each 1 if true; max 6",
      "max_score": 6,
      "score": 0
    }
  ]
}

Response

Field Type Description
formula string manning
formula_expression string Exact expression used
score integer Count of true Manning 1978 symptoms (0-6). Not a diagnosis and not a published cutoff.
max_score integer 6
components array Per-symptom points
citation object Manning et al. Br Med J 1978 citation
disclaimer string Not-a-device notice

Example JSON

Machine form of the same example. Frozen fixture. Not a live lookup.

{
  "components": [
    {
      "factor": "visible_abdominal_distension",
      "points": 0,
      "present": false
    },
    {
      "factor": "pain_relief_with_bowel_movement",
      "points": 0,
      "present": false
    },
    {
      "factor": "more_frequent_stools_with_pain_onset",
      "points": 0,
      "present": false
    },
    {
      "factor": "looser_stools_with_pain_onset",
      "points": 0,
      "present": false
    },
    {
      "factor": "rectal_mucus",
      "points": 0,
      "present": false
    },
    {
      "factor": "incomplete_evacuation",
      "points": 0,
      "present": false
    }
  ],
  "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
  "citation": {
    "authors": "Manning AP, Thompson WG, Heaton KW, Morris AF",
    "doi": "10.1136/bmj.2.6138.653",
    "id": "manning-1978",
    "pmid": "698649",
    "source": "Br Med J. 1978;2(6138):653-654",
    "title": "Towards positive diagnosis of the irritable bowel"
  },
  "formula": "manning",
  "formula_expression": "manning = visible_abdominal_distension + pain_relief_with_bowel_movement + more_frequent_stools_with_pain_onset + looser_stools_with_pain_onset + rectal_mucus + incomplete_evacuation; each 1 if true; max 6",
  "max_score": 6,
  "score": 0
}

Client errors (HTTP 400)

Invalid params return 400 without charge. Shared HTTP 402 and 503 meanings: Payments.

HTTP Code When
400 invalid_flag boolean clinical flags must be true or false Returned before settlement; you are not charged.
400 invalid_items POST body must be a JSON object with only an items array Returned before settlement; you are not charged.
400 invalid_item_count items must be an array of 1 to 25 objects Returned before settlement; you are not charged.
400 invalid_item each items entry must be a JSON object Returned before settlement; you are not charged.

Related tools

  • Rome III IBS — Apply the Longstreth 2006 Rome III IBS diagnostic criteria and return supporting_features_met (0-3) and whether the published IBS box holds (rome_iii_ibs).
  • Rome IV IBS — Apply the Mearin 2016 Rome IV IBS diagnostic criteria and return supporting_features_met (0-3) and whether the published IBS box holds (rome_iv_ibs).

Payment

Unpaid requests return HTTP 402 even if query parameters or POST items are missing or invalid, so CDP and agents can index the path. After a PAYMENT-SIGNATURE, invalid params return HTTP 400 JSON before settlement. magent does not charge. Fix the params, then request a new 402 quote for that complete URL. Catalog misses (empty matches, found=false) are valid paid 200s. Unpaid valid requests return HTTP 402 with a base64 PAYMENT-REQUIRED header. HTTP 503 is not a new quote: retry the same PAYMENT-SIGNATURE. Full handshake and shared payment errors: Payments. Stdio MCP: /docs/mcp.

Guarantees

  • HTTP 402 is unpaid, including a missing query. After PAYMENT-SIGNATURE, invalid parameters return HTTP 400 before settlement. You are not charged. HTTP 402 never includes the tool JSON.
  • exact: settlement finishes before the tool (paymentFlow upfront). batch-settlement: verify/deposit before the tool; chargedCumulativeAmount commits after HTTP 2xx. Uncertain or failed settlement fails closed (HTTP 503). Retry the same PAYMENT-SIGNATURE.
  • HTTP 402 is unpaid only. Do not sign a second authorization because of a 503.
  • Execution is timeout-bounded and concurrency-capped.
  • Calculator inputs are stored encrypted for allowlisted operators (Magent Console). They are not in public logs, SSH lookups, catalog, or rollups. Request logs store path without query.