# Kruis 1984 IBS Score Calculator

> Kruis 1984 IBS Score 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-13).

Computes the Kruis 1984 weighted IBS-vs-organic score from caller-assigned symptom and lab flags, returning a numeric score and IBS classification (score ≥ 44 = IBS).

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/kruis
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kruis-1984-ibs-score-calculator-9b8ce442
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tQl4vgEmnuR1F92BQJMgH

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 kruis-1984-ibs-score-calculator-9b8ce442
```

Example prompt: Run the Kruis 1984 IBS score for a patient who has the pain/flatulence/irregularity triad, symptoms lasting more than 2 years, characteristic pain descriptors, no alternating constipation/diarrhea, no abnormal physical or pathognomonic history, ESR not elevated, no leukocytosis, no anemia, and no blood in stool — tell me the score and whether it meets the IBS threshold.

## When to prefer this

Use this endpoint when you need to programmatically apply the Kruis 1984 weighted scoring model to distinguish IBS from organic bowel disease and the caller has already determined the boolean status of all 9 required clinical and lab flags. Prefer this over Manning or Rome criteria endpoints when the Kruis 1984 model specifically is required (e.g., for historical comparability, research, or institutional protocol). Do not use this as a substitute for clinical examination, laboratory testing, or formal diagnosis.

## Known failure modes

- Missing required query parameters (any of the 9 boolean flags omitted) returns a 400 or validation error
- Non-boolean values for flag parameters cause a parse or validation error
- Network or payment (x402) failure results in no score being returned
- Miscoded flags by the caller (e.g. marking anemia=true when labs are normal) produce a mathematically valid but clinically incorrect score — the API cannot validate clinical accuracy

## How this service works

Kruis 1984 weighted IBS versus organic score. History: pain/flatulence/irregularity triad +34, duration >2 years +16, characteristic pain descriptors +23, alternating constipation/diarrhea +14. Organic flags: abnormal physical or pathognomonic history -47, ESR >10 mm/h -13, leukocytosis -50, anemia -98, blood in stool -98. IBS iff score >= 44. Caller assigns flags. magent does not examine the patient or run labs. Not a diagnosis, not Manning, not Rome.

## Output

Returns the computed Kruis 1984 weighted score (sum of positive and negative weighted flags) and a binary IBS classification indicating whether the score meets or exceeds the 44-point IBS threshold. Does not provide a clinical diagnosis.

## 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": [
      "symptom_triad",
      "duration_gt_2_years",
      "characteristic_pain_descriptors",
      "alternating_constipation_diarrhea",
      "abnormal_physical_or_pathognomonic_history",
      "esr_gt_10_mm_h",
      "leukocytosis",
      "anemia",
      "blood_in_stool"
     ],
     "properties": {
      "anemia": {
       "type": "boolean",
       "description": "Anemia: hemoglobin <12 g/dL in females or <14 g/dL in males as assigned by the caller (Kruis 1984). true scores -98. magent does not run labs."
      },
      "leukocytosis": {
       "type": "boolean",
       "description": "Leukocytosis, white-cell count >10,000/µL, as assigned by the caller (Kruis 1984). true scores -50. magent does not run labs."
      },
      "symptom_triad": {
       "type": "boolean",
       "description": "Abdominal pain, flatulence, and irregularities of bowel movement in the same patient (Kruis 1984 Table 4 A+B+C triad). true scores +34. true or false as assigned by the caller. magent does not examine the patient."
      },
      "blood_in_stool": {
       "type": "boolean",
       "description": "History of blood in stool as assigned by the caller (Kruis 1984; retained at -98 though not independently significant in the logistic model). magent does not examine stool."
      },
      "esr_gt_10_mm_h": {
       "type": "boolean",
       "description": "Erythrocyte sedimentation rate >10 mm/h (>20 mm/2 h on the 1984 Westergren form) as assigned by the caller (Kruis 1984). true scores -13. magent does not run labs."
      },
      "duration_gt_2_years": {
       "type": "boolean",
       "description": "Those symptoms for more than 2 years as assigned by the caller (Kruis 1984). true scores +16. magent does not take a history."
      },
      "characteristic_pain_descriptors": {
       "type": "boolean",
       "description": "Abdominal pain described as burning, cutting, very strong, terrible, feeling of pr
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/kruis-1984-ibs-score-calculator-9b8ce442/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)
