# TIMI Risk Score for STEMI Calculator

> TIMI Risk Score for STEMI 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-12).

Computes the TIMI risk score (0–14) for ST-elevation MI patients from clinical variables including age, comorbidities, hemodynamics, Killip class, ECG findings, and time to treatment.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/timi_stemi?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/timi-risk-score-for-stemi-calculator-469da402
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eFWqbhL-KgrTHqRiZS8Xr

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 timi-risk-score-for-stemi-calculator-469da402
```

Example prompt: Calculate the TIMI STEMI risk score for a 72-year-old patient with diabetes and hypertension, systolic BP 88 mmHg, heart rate 112 bpm, Killip class II, weight 61 kg, anterior ST elevation present, and time to treatment greater than 4 hours.

## When to prefer this

Use this endpoint when you need a fast, deterministic, evidence-based TIMI STEMI risk score consistent with the published Morrow 2000 algorithm. Prefer it over general LLM reasoning for clinical scoring tasks where reproducibility and citation traceability matter. It is not a reperfusion protocol recommender or a fibrinolytic eligibility checker — use only for scoring.

## Known failure modes

- Missing required parameters (age, killip_class, systolic_mm_hg, etc.) returns a 400/422 validation error
- Age out of valid range (below 18 or above 120) rejected
- Killip class outside 1–4 returns validation error
- Heart rate outside 30–220 bpm range rejected
- Systolic BP outside 50–250 mmHg range rejected
- Payment failure (x402) if USDC balance is insufficient or payment not attached
- Both weight_kg and weight_lb omitted — score component defaults to 0 or may return warning

## How this service works

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

## Output

Returns a JSON object with the total TIMI STEMI score (integer 0–14) and the individual component contributions (age band, comorbidities, hypotension, tachycardia, Killip class, low weight, anterior STE/LBBB, delayed treatment), along with a citation to the original Morrow 2000 publication.

## 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",
      "diabetes",
      "hypertension",
      "angina",
      "systolic_mm_hg",
      "heart_rate_bpm",
      "killip_class",
      "anterior_ste_or_lbbb",
      "time_to_treatment_gt_4h"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (18-120). 65-74 scores 2; ≥75 scores 3. Bands are exclusive."
      },
      "angina": {
       "type": "boolean",
       "description": "Angina history. true or false."
      },
      "diabetes": {
       "type": "boolean",
       "description": "Diabetes mellitus. true or false. Diabetes, hypertension, or angina scores 1 if any is true."
      },
      "weight_kg": {
       "type": "number",
       "description": "Weight in kilograms. Provide weight_kg or weight_lb. Scores 1 when <67 kg; 67 is negative."
      },
      "weight_lb": {
       "type": "number",
       "description": "Weight in pounds. Converted to kg; the <67 kg cutoff is applied in kg."
      },
      "hypertension": {
       "type": "boolean",
       "description": "Hypertension history. true or false."
      },
      "killip_class": {
       "type": "integer",
       "description": "Killip class 1-4. Classes II-IV score 2; class I scores 0. Caller-assigned."
      },
      "heart_rate_bpm": {
       "type": "integer",
       "description": "Heart rate in beats per minute (integer 30-220). Scores 2 when >100; 100 is negative."
      },
      "systolic_mm_hg": {
       "type": "number",
       "description": "Systolic BP in mm Hg (50-250). Scores 3 when <100; 100 is negative."
      },
      "anterior_ste_or_lbbb": {
       "type": "boolean",
       "description": "Anterior ST elevation or LBBB. true or false. Caller-assigned; magent does not read tracings."
      },
      "time_to_treatment_gt_4h": {
       "type": "boolean",
       "description": "Time to treatment >4 hours. true or false. Caller-assigned; magent does not p
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "path": "/api/calc/timi_stemi",
  "count": 2,
  "items": [
   {
    "score": 0,
    "angina": false,
    "formula": "timi_stemi",
    "citation": {
     "id": "morrow-2000",
     "doi": "10.1161/01.CIR.102.17.2031",
     "title": "TIMI risk score for ST-elevation myocardial infarction: A convenient, bedside, clinical score for risk assessment at presentation",
     "source": "Circulation. 2000;102(17):2031-2037",
     "authors": "Morrow DA, Antman EM, Charlesworth A, Cairns R, Murphy SA, de Lemos JA, Giugliano RP, McCabe CH, Braunwald E"
    },
    "diabetes": false,
    "age_years": 50,
    "max_score": 14,
    "weight_kg": 80,
    "components": [
     {
      "value": 50,
      "factor": "age_65_74",
      "points": 0,
      "present": false
     },
     {
      "value": 50,
      "factor": "age_ge_75",
      "points": 0,
      "present": false
     },
     {
      "factor": "history_cad_risk",
      "points": 0,
      "present": false
     },
     {
      "value": 120,
      "factor": "systolic_bp_lt_100",
      "points": 0,
      "present": false
     },
     {
      "value": 70,
      "factor": "heart_rate_gt_100",
      "points": 0,
      "present": false
     },
     {
      "value": 1,
      "factor": "killip_ii_iv",
      "points": 0,
      "present": false
     },
     {
      "value": 80,
      "factor": "weight_lt_67",
      "points": 0,
      "present": false
     },
     {
      "factor": "anterior_ste_or_lbbb",
      "points": 0,
      "present": false
     },
     {
      "factor": "time_to_treatment_gt_4h",
      "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.",
    "hypertension": false,
    "killip_class": 1,
    "heart_rate_bpm": 70,
    "systolic_mm_hg": 120,
    "history_cad_risk": false,
    "formula_expression": "TIMI STEMI = age 65-74 (2) or age >=75 (3) + diabetes/hypertension/angina (1) + SBP<100 (3) + HR>100 (2) + Killip II-IV (2) + weight<67 kg (1) + anterior STE or LBBB (1) + time to treatment >4 h (1); max 14",
    "anterior_ste_or_lbbb": false,
    "time_to_treatment_gt_4h": false
   },
   {
    "score": 0,
    "angina": false,
    "formula": "timi_stemi",
    "citation": {
     "id": "morrow-2000",
     "doi": "10.1161/01.CIR.102.17.2031",
     "title": "TIMI risk score for ST-elevation 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/timi-risk-score-for-stemi-calculator-469da402/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)
