# magent mSOFA Calculator

> magent mSOFA 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-15).

Computes the modified SOFA (mSOFA) score from Grissom 2010 Table 2 across five organ systems using SpO2/FiO2 respiration, jaundice, MAP, adrenergic agents, GCS, and creatinine

## Facts

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

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-msofa-calculator-90672020
```

Example prompt: Calculate the mSOFA score for my ICU patient: SpO2 is 91%, FiO2 is 0.40, no scleral icterus, MAP is 62 mmHg, dopamine at 8 µg/kg/min, GCS is 11, and creatinine is 2.3 mg/dL.

## When to prefer this

Use this endpoint when you need a validated, deterministic mSOFA score per Grissom 2010 Table 2 — especially when arterial blood gas PaO2 is unavailable and SpO2 is used instead. Prefer over standard SOFA when coagulation data is missing or unreliable. Do not use this endpoint for qSOFA, Sepsis-3 diagnosis, or the original Vincent 1996 SOFA.

## Known failure modes

- Missing required parameters (spo2_percent, fio2, scleral_icterus_or_jaundice, map_mm_hg, gcs) returns validation error
- Out-of-range values (e.g. SpO2 >100, FiO2 <0.21, GCS outside 3-15) may return error or be clamped
- Neither creatinine_mg_dl nor creatinine_umol_l provided — renal subscore may default to 0 or return error
- FiO2 supplied as percent (e.g. 40) instead of fraction (0.40) will produce incorrect SpO2/FiO2 ratio and wrong score
- Payment failure (x402) blocks computation if USDC balance is insufficient

## How this service works

Modified SOFA (mSOFA) from Grissom 2010 Table 2: SpO2/FiO2 respiration, caller-assigned scleral icterus or jaundice (0 or 3), MAP and adrenergic agents, caller-assigned GCS, and creatinine; five organs, coagulation not scored, max 19. Deterministic published score with citation; not Vincent 1996 SOFA, not qSOFA, and not a Sepsis-3 diagnosis.

## Output

Returns the total mSOFA integer score (0–19) and individual subscores for each of the five scored organ systems: respiration (SpO2/FiO2), hepatic (jaundice), cardiovascular (MAP + adrenergic agents), neurological (GCS), and renal (creatinine). Coagulation is explicitly not scored per Grissom 2010.

## 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": [
      "spo2_percent",
      "fio2",
      "scleral_icterus_or_jaundice",
      "map_mm_hg",
      "gcs"
     ],
     "properties": {
      "gcs": {
       "type": "integer",
       "description": "Glasgow Coma Scale total as assigned by the caller (integer 3-15). 15 scores 0; 13-14 scores 1; 10-12 scores 2; 6-9 scores 3; <6 scores 4."
      },
      "fio2": {
       "type": "number",
       "description": "Inspired oxygen as a fraction (0.21-1.0), not a percent. For nasal cannula, Grissom 2010 estimated FiO2 as 0.21 + 0.03 × L/min; the caller supplies the fraction."
      },
      "map_mm_hg": {
       "type": "number",
       "description": "Mean arterial pressure in mm Hg (30-180). MAP <70 scores 1 unless a higher cardiovascular band applies."
      },
      "dobutamine": {
       "type": "boolean",
       "description": "Any dobutamine. true or false when provided; absent is false. true scores cardiovascular 2 unless a higher band applies."
      },
      "spo2_percent": {
       "type": "number",
       "description": "Pulse-oximeter SpO2 in percent (50-100), not a fraction. Respiration uses SpO2/FiO2: >400 scores 0; ≤400 scores 1; ≤315 scores 2; ≤235 scores 3; ≤150 scores 4 (Grissom 2010 Table 2). magent does not read a probe."
      },
      "creatinine_mg_dl": {
       "type": "number",
       "description": "Creatinine in mg/dL (0.1-20). Provide this or creatinine_umol_l. <1.2 scores 0; 1.2-1.9 scores 1; 2.0-3.4 scores 2; 3.5-4.9 scores 3; ≥5.0 scores 4. Table 2 lists creatinine only (not urine output)."
      },
      "creatinine_umol_l": {
       "type": "number",
       "description": "Creatinine in µmol/L. Converted as mg/dL = µmol/L / 88.42."
      },
      "dopamine_ug_kg_min": {
       "type": "number",
       "description": "Dopamine in µg/kg·min (0-50) when provided. Absent is 0. 0 < dose ≤5 scores 2; >5 scores 3; >15 scores 4."
      },
      "epinephrine_ug_kg_min": {
      
… (truncated)
```

## More

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