# Wexner Constipation Score (Agachan 1996)

> Wexner Constipation Score (Agachan 1996) 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).

Computes the Agachan 1996 Wexner constipation score (0–30) from eight caller-assigned symptom bands and returns whether constipation is present (score > 15).

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/wexner_constipation
- 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/wexner-constipation-score-agachan-1996-76606a44
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_q4nVKqz88qTqXT_od8URi

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 wexner-constipation-score-agachan-1996-76606a44
```

Example prompt: Calculate the Wexner constipation score for a patient who has bowel movements once per week, sometimes has painful evacuation, usually has incomplete evacuation, rarely has abdominal pain, spends 10–20 minutes per attempt, uses stimulative laxatives for assistance, has 1–3 unsuccessful attempts per 24 hours, and has had constipation symptoms for 5–10 years.

## When to prefer this

Use this endpoint when you need to programmatically apply the Agachan 1996 Wexner constipation scoring system to pre-classified symptom bands, such as in clinical decision support pipelines, research data processing, or telehealth intake workflows. Prefer this over general LLM reasoning when reproducibility and exact fidelity to the published scoring table are required. Do not use for fecal incontinence scoring (Jorge 1993) or for ordering treatments.

## Known failure modes

- Missing required query parameters (frequency, painful_evacuation, incomplete_evacuation, abdominal_pain, time_per_attempt, assistance, unsuccessful_attempts, duration) returns a validation error
- Invalid enum value for any parameter returns a 400-level error
- Payment not provided or insufficient USDC balance returns a 402 Payment Required response
- Network or server timeout returns a 5xx error

## How this service works

Agachan 1996 constipation scoring system from eight caller-assigned table bands (frequency, painful evacuation, incomplete evacuation, abdominal pain, time per attempt, assistance 0-2, unsuccessful attempts per 24 hours, duration). Total 0-30. constipation true iff score > 15. magent does not take a bowel history. Not a medical device, not a laxative order, not Jorge 1993 fecal incontinence scoring.

## Output

Returns the total Wexner constipation score (integer, 0–30) computed by summing the eight Agachan 1996 band scores, plus a boolean 'constipation' field that is true when the total exceeds 15. Does not include diagnostic advice, laxative orders, or medical recommendations.

## 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": [
      "frequency",
      "painful_evacuation",
      "incomplete_evacuation",
      "abdominal_pain",
      "time_per_attempt",
      "assistance",
      "unsuccessful_attempts",
      "duration"
     ],
     "properties": {
      "duration": {
       "enum": [
        "0",
        "1_5",
        "5_10",
        "10_20",
        "more_than_20"
       ],
       "type": "string",
       "description": "Caller-assigned Agachan 1996 duration of constipation in years. 0 scores 0; 1_5 scores 1; 5_10 scores 2; 10_20 scores 3; more_than_20 scores 4. Adjacent printed ranges overlap; the caller assigns the published band. magent does not take a bowel history."
      },
      "frequency": {
       "enum": [
        "1_2_times_per_1_2_days",
        "2_times_per_week",
        "once_per_week",
        "less_than_once_per_week",
        "less_than_once_per_month"
       ],
       "type": "string",
       "description": "Caller-assigned Agachan 1996 frequency of bowel movements. 1_2_times_per_1_2_days (1-2 times per 1-2 days) scores 0; 2_times_per_week scores 1; once_per_week scores 2; less_than_once_per_week scores 3; less_than_once_per_month scores 4. magent does not take a bowel history."
      },
      "assistance": {
       "enum": [
        "without_assistance",
        "stimulative_laxatives",
        "digital_assistance_or_enema"
       ],
       "type": "string",
       "description": "Caller-assigned Agachan 1996 type of assistance. without_assistance scores 0; stimulative_laxatives scores 1; digital_assistance_or_enema scores 2. This item is 0-2 in that table, not 0-4. magent does not order laxatives, enemas, or digital assistance."
      },
      "abdominal_pain": {
       "enum": [
        "never",
        "rarely",
        "sometimes",
        "usually",
        "always"
       ],
       "type": "string",
       "description": "Caller-assigned Agachan 1996 abdominal pain. never scores 0; rarel
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wexner-constipation-score-agachan-1996-76606a44/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)
