# THRIVE Stroke Outcome Score Calculator

> THRIVE Stroke Outcome 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-10-10).

Computes the THRIVE (Totaled Health Risks in Vascular Events) score from age, NIHSS, and chronic disease factors to estimate 90-day functional outcome and mortality risk after ischemic stroke.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/thrive?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/thrive-stroke-outcome-score-calculator-86a2d611
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0evau1nn929m76qQwnLzx

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 thrive-stroke-outcome-score-calculator-86a2d611
```

Example prompt: Calculate the THRIVE stroke score for a 74-year-old patient with a NIHSS of 15, who has hypertension and atrial fibrillation but no diabetes — what's their 90-day outcome risk band?

## When to prefer this

Use this endpoint when you need a validated, published clinical score (Flint 2010 AJNR) for 90-day stroke outcome stratification based on age, NIHSS, and chronic comorbidities. Prefer it over generic LLM-based prognosis when you need reproducible, citation-backed risk bands with published outcome percentages. Note: this is not a treatment recommendation and does not replace clinician judgment or NIHSS examination.

## Known failure modes

- Missing required parameters (age, nihss, hypertension, diabetes, atrial_fibrillation) returns validation error
- Age outside 18–120 range rejected
- NIHSS outside 0–42 range rejected
- Boolean fields supplied as non-boolean strings may cause parsing errors
- Payment failure (x402) if USDC not available or insufficient balance

## How this service works

Deterministic published-formula arithmetic plus ICD-10-CM, RxNorm, and LOINC. Pay in USDC on Base via x402.

## Output

Returns the computed THRIVE total score (0–9), the corresponding risk band (low 0–2, moderate 3–5, high 6–9), and published 90-day outcome statistics including the probability of achieving modified Rankin Scale 0–2 (functional independence) and 90-day mortality, based on the Flint 2010 AJNR derivation cohort.

## 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",
      "nihss",
      "hypertension",
      "diabetes",
      "atrial_fibrillation"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (18-120). Trichotomized: ≤59 scores 0; 60-79 scores 1; ≥80 scores 2 (1 point per age level)."
      },
      "nihss": {
       "type": "integer",
       "description": "Caller-assigned NIH Stroke Scale total (integer 0-42). Trichotomized: ≤10 scores 0; 11-20 scores 2; ≥21 scores 4 (2 points per NIHSS level). magent does not examine the patient."
      },
      "diabetes": {
       "type": "boolean",
       "description": "Diabetes mellitus on the chronic disease scale (CDS). true scores 1; false scores 0."
      },
      "hypertension": {
       "type": "boolean",
       "description": "Hypertension on the chronic disease scale (CDS). true scores 1; false scores 0."
      },
      "atrial_fibrillation": {
       "type": "boolean",
       "description": "Atrial fibrillation on the chronic disease scale (CDS). true scores 1; false scores 0."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "path": "/api/calc/thrive",
  "count": 2,
  "items": [
   {
    "cds": 1,
    "nihss": 12,
    "score": 4,
    "formula": "thrive",
    "citation": {
     "id": "flint-2010",
     "doi": "10.3174/ajnr.A2050",
     "pmid": "20223889",
     "title": "Predicting long-term outcome after endovascular stroke treatment: the totaled health risks in vascular events score",
     "source": "AJNR Am J Neuroradiol. 2010;31(7):1192-1196",
     "authors": "Flint AC, Cullen SP, Faigeles BG, Rao VA"
    },
    "age_years": 70,
    "max_score": 9,
    "components": [
     {
      "value": 70,
      "factor": "age",
      "points": 1,
      "present": true
     },
     {
      "value": 12,
      "factor": "nihss",
      "points": 2,
      "present": true
     },
     {
      "factor": "hypertension",
      "points": 1,
      "present": true
     },
     {
      "factor": "diabetes",
      "points": 0,
      "present": false
     },
     {
      "factor": "atrial_fibrillation",
      "points": 0,
      "present": false
     }
    ],
    "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
    "thrive_band": "moderate",
    "mortality_percent": 30.1,
    "formula_expression": "THRIVE = trichotomized_age + trichotomized_nihss + CDS; age <=59 0, 60-79 1, >=80 2; NIHSS <=10 0, 11-20 2, >=21 4; hypertension, diabetes, atrial fibrillation 1 each (CDS 0-3); bands 0-2 / 3-5 / 6-9; max 9",
    "good_outcome_percent": 43.5
   },
   {
    "cds": 1,
    "nihss": 12,
    "score": 4,
    "formula": "thrive",
    "citation": {
     "id": "flint-2010",
     "doi": "10.3174/ajnr.A2050",
     "pmid": "20223889",
     "title": "Predicting long-term outcome after endovascular stroke treatment: the totaled health risks in vascular events score",
     "source": "AJNR Am J Neuroradiol. 2010;31(7):1192-1196",
     "authors": "Flint AC, Cullen SP, Faigeles BG, Rao VA"
    },
    "age_years": 70,
    "max_score": 9,
    "components": [
     {
      "value": 70,
      "factor": "age",
      "points": 1,
      "present": true
     },
     {
      "value": 12,
      "factor": "nihss",
      "points": 2,
      "present": true
     },
     {
      "factor": "hypertension",
      "points": 1,
      "present": true
     },
     {
      "factor": "diabetes",
      "points": 0,
      "present": false
     },
     {
      "factor"
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/thrive-stroke-outcome-score-calculator-86a2d611/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)
