# magent SCORTEN Calculator

> magent SCORTEN 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-14).

Computes the Bastuji-Garin 2000 SCORTEN severity-of-illness score for toxic epidermal necrolysis and returns the corresponding predicted in-hospital mortality percentage.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/scorten
- 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/magent-scorten-calculator-b127afd3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EKOuiB0Ko5pTtTX3hofAR

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-scorten-calculator-b127afd3
```

Example prompt: Calculate the SCORTEN score for a TEN patient who is over 40, has an underlying malignancy, heart rate above 120, epidermal detachment over 10% BSA, serum urea above 10 mmol/L, glucose above 14 mmol/L, but bicarbonate is normal — and tell me the predicted in-hospital mortality.

## When to prefer this

Choose this endpoint when an AI agent needs to rapidly compute the validated Bastuji-Garin 2000 SCORTEN score and associated mortality prediction from pre-assessed clinical flags for a TEN or SJS/TEN patient, without needing laboratory measurement or BSA calculation capabilities. It is ideal when clinical values have already been interpreted and the agent only needs the arithmetic aggregation and published mortality lookup. It is not a diagnostic tool for TEN/SJS and should not be used to order treatments.

## Known failure modes

- Missing any of the seven required Boolean query parameters returns a validation error
- Non-boolean values (e.g. strings other than true/false) for flags cause a bad request error
- Network or service unavailability returns a 5xx error
- Payment failure (x402 protocol) blocks the request before scoring occurs

## How this service works

Bastuji-Garin 2000 SCORTEN from seven caller-assigned flags (age >40, malignancy, HR >120, detachment >10% BSA, urea >10 mmol/L, glucose >14 mmol/L, bicarbonate <20 mmol/L); 1 each, max 7. Predicted in-hospital mortality 0–1 3.2%, 2 12.1%, 3 35.3%, 4 58.3%, ≥5 90%. Not a TEN/SJS diagnosis and not an ICU or IVIG order. magent does not measure labs or BSA.

## Output

Returns the integer SCORTEN score (0–7) summed from the seven Boolean risk flags, along with the corresponding Bastuji-Garin 2000 predicted in-hospital mortality band: 0–1 → 3.2%, 2 → 12.1%, 3 → 35.3%, 4 → 58.3%, ≥5 → 90%.

## 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": [
      "age_gt_40",
      "malignancy",
      "heart_rate_gt_120",
      "epidermal_detachment_gt_10_percent",
      "urea_gt_10_mmol_l",
      "glucose_gt_14_mmol_l",
      "bicarbonate_lt_20_mmol_l"
     ],
     "properties": {
      "age_gt_40": {
       "type": "boolean",
       "description": "Age >40 years (Bastuji-Garin 2000). true or false as assigned by the caller. magent does not compute age."
      },
      "malignancy": {
       "type": "boolean",
       "description": "Presence of malignancy (Bastuji-Garin 2000). true or false as assigned by the caller. magent does not diagnose cancer."
      },
      "heart_rate_gt_120": {
       "type": "boolean",
       "description": "Heart rate >120 beats/min (Bastuji-Garin 2000). true or false as assigned by the caller. magent does not measure heart rate."
      },
      "urea_gt_10_mmol_l": {
       "type": "boolean",
       "description": "Serum urea >10 mmol/L (Bastuji-Garin 2000; equivalent BUN >28 mg/dL). true or false as assigned by the caller. magent does not assay urea or convert BUN."
      },
      "glucose_gt_14_mmol_l": {
       "type": "boolean",
       "description": "Serum glucose >14 mmol/L (Bastuji-Garin 2000). true or false as assigned by the caller. magent does not assay glucose."
      },
      "bicarbonate_lt_20_mmol_l": {
       "type": "boolean",
       "description": "Serum bicarbonate <20 mmol/L (Bastuji-Garin 2000). true or false as assigned by the caller. magent does not assay bicarbonate."
      },
      "epidermal_detachment_gt_10_percent": {
       "type": "boolean",
       "description": "Epidermal detachment >10% of body surface area (Bastuji-Garin 2000). true or false as assigned by the caller. magent does not measure BSA."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"

… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-scorten-calculator-b127afd3/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)
