# Callery 2013 Fistula Risk Score Calculator (Pancreatoduodenectomy)

> Callery 2013 Fistula Risk Score Calculator (Pancreatoduodenectomy) 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 Callery 2013 Fistula Risk Score after pancreatoduodenectomy from four caller-supplied clinical factors: gland texture, pathology type, pancreatic duct diameter, and estimated blood loss.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/fistula_risk
- 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/callery-2013-fistula-risk-score-calculator-pancreatoduodenectomy-9dbefd31
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ri76rfBE6V0k-Ouw3K-67

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 callery-2013-fistula-risk-score-calculator-pancreatoduodenectomy-9dbefd31
```

Example prompt: Can you calculate the Callery 2013 Fistula Risk Score for a patient who had a Whipple — soft gland texture, pathology was ampullary (so 'other'), pancreatic duct is 3mm, and estimated blood loss was 550mL?

## When to prefer this

Use this endpoint when you need a validated, reproducible implementation of the Callery 2013 Fistula Risk Score for post-pancreatoduodenectomy patients — particularly when integrating the score into surgical decision-support workflows or clinical documentation. Prefer this over manual calculation to avoid arithmetic errors in the scoring table. Not appropriate for diagnosing CR-POPF, assigning ISGPS grades, or for pancreatitis severity scoring (use Ranson or BISAP endpoints instead).

## Known failure modes

- Missing required query parameters (gland_texture, pathology, duct_mm, ebl_ml) return a validation error
- duct_mm outside the accepted range (0.5–20) may cause a scoring error
- Invalid enum values for gland_texture or pathology return a 400-level error
- Payment failure (x402 protocol) prevents the call from completing
- Values at edge boundaries (e.g. duct_mm exactly 4.0) must be interpreted per Callery scoring table

## How this service works

Callery 2013 Fistula Risk Score after pancreatoduodenectomy: gland texture firm 0 / soft 2; pathology PDAC or pancreatitis 0 / other (ampullary, duodenal, cystic, islet cell) 1; duct mm ≥5 0, ≥4 1, ≥3 2, ≥2 3, else 4; EBL mL ≤400 0, 401–700 1, 701–1000 2, >1000 3. Max 10. Bands negligible 0, low 1–2, intermediate 3–6, high 7–10. magent does not palpate the gland or measure EBL. Not a CR-POPF diagnosis, not an ISGPS grade, not Ranson or BISAP. Not a medical device.

## Output

Returns a numeric Fistula Risk Score from 0 to 10 and a corresponding risk band label (negligible, low, intermediate, or high), computed from the four Callery 2013 criteria: gland texture, pathology, duct diameter, and estimated blood loss.

## 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": [
      "gland_texture",
      "pathology",
      "duct_mm",
      "ebl_ml"
     ],
     "properties": {
      "ebl_ml": {
       "type": "number",
       "description": "Caller-assigned estimated blood loss in mL, number 0–10000 (Callery 2013). ≤400 scores 0; 401–700 scores 1; 701–1000 scores 2; >1000 scores 3. magent does not measure EBL."
      },
      "duct_mm": {
       "type": "number",
       "description": "Caller-assigned pancreatic duct diameter in mm, number 0.5–20 (Callery 2013 integer-mm table). ≥5 scores 0; ≥4 scores 1; ≥3 scores 2; ≥2 scores 3; else 4 (so 4.0–4.999 scores 1; 1.5 and ≤1 score 4). magent does not measure the duct."
      },
      "pathology": {
       "enum": [
        "pdac_or_pancreatitis",
        "other"
       ],
       "type": "string",
       "description": "Caller-assigned pathology (Callery 2013). pdac_or_pancreatitis (pancreatic ductal adenocarcinoma or pancreatitis) scores 0. other (ampullary, duodenal, cystic, or islet cell) scores 1."
      },
      "gland_texture": {
       "enum": [
        "firm",
        "soft"
       ],
       "type": "string",
       "description": "Caller-assigned pancreatic gland texture at pancreatoduodenectomy (Callery 2013). firm or soft. firm scores 0; soft scores 2. magent does not palpate the gland."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/callery-2013-fistula-risk-score-calculator-pancreatoduodenectomy-9dbefd31/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)
