# magent SETscore Calculator (Schönenberger 2016)

> magent SETscore Calculator (Schönenberger 2016) 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 2016 SETscore (0–48) from 15 caller-assigned clinical flags to predict tracheostomy need after stroke, and returns an elevated flag if score ≥ 8.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/setscore
- 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-setscore-calculator-sch-nenberger-2016-78242db4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vMCbK05cphpCVOp6L-nm-

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-setscore-calculator-sch-nenberger-2016-78242db4
```

Example prompt: Calculate the 2016 SETscore for my stroke patient: dysphagia yes, observed aspiration yes, GCS on admission <10 yes, brainstem lesion no, space-occupying cerebellar lesion no, MCA infarct >2/3 no, ICH volume >25 mL no, diffuse lesion no, hydrocephalus yes, neurosurgical intervention no, additional respiratory disease no, PaO2/FiO2 <150 no, APACHE II >20 yes, lung injury score >1 no, sepsis no — tell me the total score and whether it's elevated.

## When to prefer this

Use this endpoint when you need to arithmetically apply the Schönenberger 2016 SETscore model to a stroke patient's pre-assessed clinical flags. Prefer it over manual calculation to avoid arithmetic error, and over NIHSS or APACHE II calculators when the specific goal is tracheostomy-need prediction post-stroke. Do not use it if you need the raw exam, imaging interpretation, or APACHE II computation — those must be done externally before calling this endpoint.

## Known failure modes

- Missing any of the 15 required boolean query parameters returns a 400/422 validation error
- Non-boolean values (e.g. strings other than 'true'/'false') for flag parameters cause parsing errors
- Network or server errors return 5xx; retry with same parameters (idempotent)
- Score is only as valid as caller-assigned flags — garbage-in-garbage-out; magent does not validate clinical plausibility

## How this service works

Schönenberger 2016 SETscore: 15 caller-assigned flags (neurological function, lesion, organ function/procedure). Weights 2–4; max 48. Elevated / setscore_ge_8 iff score ≥ 8 (2016 ROC cut-off). Not a tracheostomy order, not NIHSS, and not SETPOINT2 enrollment >10. magent does not examine the patient, read imaging, or compute APACHE II, LIS, or PaO2/FiO2.

## Output

Returns the integer SETscore (0–48) computed from the 15 weighted flags, plus a boolean 'elevated' field that is true when score ≥ 8 (the 2016 ROC-derived cut-off for tracheostomy risk). May also include per-flag weighted contributions for transparency.

## 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": [
      "dysphagia",
      "observed_aspiration",
      "gcs_lt_10",
      "brainstem_lesion",
      "space_occupying_cerebellar",
      "mca_infarct_gt_two_thirds",
      "ich_volume_gt_25_ml",
      "diffuse_lesion",
      "hydrocephalus",
      "neurosurgical_intervention",
      "additional_respiratory_disease",
      "pao2_fio2_lt_150",
      "apache_ii_gt_20",
      "lung_injury_score_gt_1",
      "sepsis"
     ],
     "properties": {
      "sepsis": {
       "type": "boolean",
       "description": "Sepsis (Schönenberger 2016 Table 1, +3 if true). true or false as assigned by the caller. magent does not diagnose sepsis."
      },
      "dysphagia": {
       "type": "boolean",
       "description": "Dysphagia (Schönenberger 2016 Table 1, +4 if true). true or false as assigned by the caller. magent does not examine swallow."
      },
      "gcs_lt_10": {
       "type": "boolean",
       "description": "GCS on admission <10 (Schönenberger 2016 Table 1, +3 if true). true or false as assigned by the caller. magent does not compute GCS."
      },
      "hydrocephalus": {
       "type": "boolean",
       "description": "Hydrocephalus (Schönenberger 2016 Table 1, +4 if true). true or false as assigned by the caller. magent does not read imaging."
      },
      "diffuse_lesion": {
       "type": "boolean",
       "description": "Diffuse lesion (Schönenberger 2016 Table 1, +3 if true). true or false as assigned by the caller. magent does not read imaging."
      },
      "apache_ii_gt_20": {
       "type": "boolean",
       "description": "APACHE II acute physiology score >20 (Schönenberger 2016 Table 1, +4 if true). true or false as assigned by the caller. magent does not compute APACHE II."
      },
      "brainstem_lesion": {
       "type": "boolean",
       "description": "Brainstem lesion (Schönenberger 2016 Table 1, +4 if true). true or false as assigned by the caller. magent does not read i
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-setscore-calculator-sch-nenberger-2016-78242db4/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)
