# magent SES-CD Calculator (Daperno 2004)

> magent SES-CD Calculator (Daperno 2004) 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).

Computes the Simple Endoscopic Score for Crohn's Disease (SES-CD) by summing caller-assigned integer scores (0–3) across five bowel segments and four lesion variables

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/ses_cd
- 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-ses-cd-calculator-daperno-2004-4f828fa8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1iDGMpXw3UBbZEQnU89vt

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-ses-cd-calculator-daperno-2004-4f828fa8
```

Example prompt: Calculate the SES-CD score for a patient with ileum findings: ulcers 2, ulcerated surface 1, affected surface 2, narrowings 0; right colon: ulcers 1, ulcerated surface 1, affected surface 1, narrowings 0; transverse colon: all 0; left colon: ulcers 1, ulcerated surface 0, affected surface 1, narrowings 0; rectum: ulcers 0, ulcerated surface 0, affected surface 1, narrowings 0.

## When to prefer this

Use this endpoint when you need a fast, automated computation of the Daperno 2004 SES-CD score from already-coded endoscopic segment findings. Prefer it over manual calculation to avoid arithmetic errors across 20 variables. Note: this is NOT a CDEIS calculator (Crohn's Disease Endoscopic Index of Severity) and NOT the Best 1976 CDAI (Crohn's Disease Activity Index) — use only when specifically the SES-CD total is required. Remission or response band thresholds are not returned and must be applied by the caller using external clinical references.

## Known failure modes

- Missing any of the 20 required query parameters returns an error
- Non-integer or out-of-range values (outside 0–3) for any parameter may return a validation error
- Network timeout or service unavailability returns a 5xx error
- Incorrect segment naming in query params returns a 400 or parameter error

## How this service works

Daperno 2004 simplified endoscopic activity score for Crohn's disease (SES-CD): caller-assigned integers 0-3 for ulcers, ulcerated_surface, affected_surface, and narrowings in ileum, right_colon, transverse_colon, left_colon, and rectum (20 params). magent sums only (max 60). Unexamined segments are 0 as assigned by the caller. Daperno 2004 did not publish remission or response bands; magent returns score and max_score only. magent does not perform endoscopy. Not CDEIS and not Best 1976 CDAI.

## Output

Returns the computed SES-CD integer total score (sum of all 20 caller-supplied segment-variable integers, maximum 60) and the max_score value of 60. Does not return remission thresholds, response bands, or endoscopic interpretations — only the numeric score and ceiling.

## 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": [
      "ileum_ulcers",
      "ileum_ulcerated_surface",
      "ileum_affected_surface",
      "ileum_narrowings",
      "right_colon_ulcers",
      "right_colon_ulcerated_surface",
      "right_colon_affected_surface",
      "right_colon_narrowings",
      "transverse_colon_ulcers",
      "transverse_colon_ulcerated_surface",
      "transverse_colon_affected_surface",
      "transverse_colon_narrowings",
      "left_colon_ulcers",
      "left_colon_ulcerated_surface",
      "left_colon_affected_surface",
      "left_colon_narrowings",
      "rectum_ulcers",
      "rectum_ulcerated_surface",
      "rectum_affected_surface",
      "rectum_narrowings"
     ],
     "properties": {
      "ileum_ulcers": {
       "type": "integer",
       "description": "Caller-assigned Daperno 2004 SES-CD ulcers for the ileum (integer 0-3; Table 1: 0 none / 1 aphthous 0.1–0.5 cm / 2 large 0.5–2 cm / 3 very large >2 cm). Unexamined segments are 0 as assigned by the caller. magent does not perform endoscopy."
      },
      "rectum_ulcers": {
       "type": "integer",
       "description": "Caller-assigned Daperno 2004 SES-CD ulcers for the rectum (integer 0-3; Table 1: 0 none / 1 aphthous 0.1–0.5 cm / 2 large 0.5–2 cm / 3 very large >2 cm). Unexamined segments are 0 as assigned by the caller. magent does not perform endoscopy."
      },
      "ileum_narrowings": {
       "type": "integer",
       "description": "Caller-assigned Daperno 2004 SES-CD narrowings for the ileum (integer 0-3; Table 1: 0 none / 1 single passable / 2 multiple passable / 3 cannot be passed). Unexamined segments are 0 as assigned by the caller. magent does not perform endoscopy."
      },
      "left_colon_ulcers": {
       "type": "integer",
       "description": "Caller-assigned Daperno 2004 SES-CD ulcers for the left colon (integer 0-3; Table 1: 0 none / 1 aphthous 0.1–0.5 cm / 2 large 0.5–2 cm / 3 very large >2 cm). Unexamined segments are 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-ses-cd-calculator-daperno-2004-4f828fa8/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)
