# mSOAR Stroke Early Mortality Score Calculator

> mSOAR Stroke Early Mortality Score 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 mSOAR score (SOAR + NIHSS) for predicting early mortality after acute stroke, based on age, stroke subtype, OCSP class, prestroke mRS, and NIHSS.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/msoar
- 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/msoar-stroke-early-mortality-score-calculator-b8d8d7b6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-Sp_MwWvh3UcRrjzShVNf

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 msoar-stroke-early-mortality-score-calculator-b8d8d7b6
```

Example prompt: Calculate the mSOAR score for a 78-year-old patient with a hemorrhagic stroke, OCSP class TACS, prestroke mRS of 3, and an NIHSS of 15.

## When to prefer this

Use this endpoint when you need to compute the validated mSOAR score (Abdul-Rahim 2016) for early post-stroke mortality prediction, especially when NIHSS is available and you want the more granular risk stratification it provides over the base SOAR score. Prefer this over generic mortality calculators when working specifically with acute ischemic or hemorrhagic stroke patients and you have all five required clinical variables.

## Known failure modes

- Missing required parameters (age, stroke_subtype, ocsp, prestroke_mrs, nihss) returns a 400 error
- Age outside valid range (18-120) may return a validation error
- Invalid enum values for ocsp or stroke_subtype return an error
- NIHSS value outside 0-42 range may return a validation error
- prestroke_mrs value outside 0-5 range may return a validation error
- Payment not provided or insufficient returns a 402 error

## How this service works

mSOAR (Abdul-Rahim 2016 Stroke): SOAR plus NIHSS for early mortality after acute stroke. Age ≤65 0, 66-85 1, >85 2; infarct 0, hemorrhage 1; OCSP LACS/PACS 0, POCS 1, TACS 2; prestroke mRS 0-2 0, 3-4 1, 5 2; NIHSS 0-4 0, 5-10 1, ≥11 2. Max 9. Table 2 derivation percents for scores 0-1 through 7. Not a care-withdrawal decision. magent does not examine the patient or score NIHSS items.

## Output

Returns the total mSOAR score (0–9) along with component sub-scores for age, stroke subtype, OCSP class, prestroke mRS, and NIHSS. Includes the corresponding early mortality percentage from Abdul-Rahim 2016 Table 2 derivation cohort for the given score band. Does not make care-withdrawal recommendations.

## 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",
      "stroke_subtype",
      "ocsp",
      "prestroke_mrs",
      "nihss"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (18-120). Abdul-Rahim 2016 Table 1: ≤65 scores 0; 66-85 scores 1; >85 scores 2. Age 85 is the 66-85 band."
      },
      "ocsp": {
       "enum": [
        "lacs",
        "pacs",
        "pocs",
        "tacs"
       ],
       "type": "string",
       "description": "Caller-assigned Oxfordshire Community Stroke Project class (Abdul-Rahim 2016 Table 1). lacs or pacs scores 0; pocs scores 1; tacs scores 2. Case-insensitive. magent does not examine the patient."
      },
      "nihss": {
       "type": "integer",
       "description": "Caller-assigned NIH Stroke Scale total (integer 0-42), not an item exam. Abdul-Rahim 2016 Suppl Table I / Table 1: 0-4 scores 0; 5-10 scores 1; 11-20 and ≥21 both score 2. magent does not compute NIHSS or examine the patient."
      },
      "prestroke_mrs": {
       "type": "integer",
       "description": "Caller-assigned prestroke modified Rankin grade 0-5. SOAR weights used by mSOAR: 0-2 scores 0; 3-4 scores 1; 5 scores 2. Table 1 lists cohort counts as 0-1 / 2-3 / 4-5, not those integer weights. magent does not interview the patient."
      },
      "stroke_subtype": {
       "enum": [
        "infarct",
        "hemorrhage"
       ],
       "type": "string",
       "description": "Caller-assigned stroke subtype (Abdul-Rahim 2016 Methods / Table 1). infarct (ischemic infarction) scores 0; hemorrhage scores 1. Case-insensitive. magent does not read imaging."
      }
     }
    }
   },
   "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/msoar-stroke-early-mortality-score-calculator-b8d8d7b6/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)
