# GRACE 1.0 In-Hospital Mortality Score (Granger 2003)

> GRACE 1.0 In-Hospital Mortality Score (Granger 2003) 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 Granger 2003 GRACE 1.0 integer nomogram score and corresponding in-hospital mortality percentage for acute coronary syndrome patients.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/grace
- 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/grace-1-0-in-hospital-mortality-score-granger-2003-651ef010
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3-PLfHjPxA3iZaoMEBfky

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 grace-1-0-in-hospital-mortality-score-granger-2003-651ef010
```

Example prompt: Calculate the GRACE 1.0 in-hospital mortality score for a 68-year-old patient with a heart rate of 95 bpm, systolic BP of 110 mmHg, creatinine of 1.4 mg/dL, Killip class 2, no cardiac arrest, ST-segment deviation present, and elevated initial cardiac enzymes.

## When to prefer this

Use this endpoint when you need the original Granger 2003 GRACE 1.0 nomogram integer score and its associated in-hospital mortality readout — not GRACE 2.0, not Fox 2006 6-month risk, and not the ESC 108/140 cutoff classifications. Ideal for reproducing published risk stratification exactly as described in the 2003 paper.

## Known failure modes

- Missing required parameters (age, heart_rate_bpm, sbp_mm_hg, killip_class, cardiac_arrest, st_deviation, elevated_enzymes) returns validation error
- Killip class outside 1–4 returns an error
- Age, heart rate, or BP outside stated bounds returns validation error
- Neither creatinine_mg_dl nor creatinine_umol_l provided returns error
- Payment failure (402) if x402 payment header not included or insufficient USDC balance

## How this service works

Granger 2003 in-hospital GRACE 1.0: integer nomogram points from age, heart rate, systolic BP, creatinine (mg/dL or µmol/L), Killip class 1-4, cardiac arrest, ST-segment deviation, and elevated initial enzymes. Total 1-372. In-hospital mortality percent is that paper's printed score readout. Not GRACE 2.0, not Fox 2006 6-month, not ESC 108/140 cutoffs. Not a medical device and not a cath-lab order.

## Output

Returns the total GRACE 1.0 integer nomogram score (range 1–372) and the corresponding in-hospital mortality percentage as published in the Granger 2003 paper. The score is the sum of points from all eight variables per the original printed nomogram.

## 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",
      "heart_rate_bpm",
      "sbp_mm_hg",
      "killip_class",
      "cardiac_arrest",
      "st_deviation",
      "elevated_enzymes"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (18-120). Granger 2003 nomogram: <30 scores 0; 30-39 scores 8; 40-49 scores 25; 50-59 scores 41; 60-69 scores 58; 70-79 scores 75; 80-89 scores 91; ≥90 scores 100."
      },
      "sbp_mm_hg": {
       "type": "integer",
       "description": "Systolic blood pressure in mm Hg (40-300). Granger 2003 nomogram, inverse: <80 scores 58; 80-99 scores 53; 100-119 scores 43; 120-139 scores 34; 140-159 scores 24; 160-199 scores 10; ≥200 scores 0."
      },
      "killip_class": {
       "type": "integer",
       "description": "Killip class 1-4 as assigned by the caller (1 no heart failure scores 0; 2 rales or elevated venous pressure scores 20; 3 pulmonary edema scores 39; 4 cardiogenic shock scores 59). magent does not examine the patient."
      },
      "st_deviation": {
       "type": "boolean",
       "description": "ST-segment deviation on the presenting ECG as assigned by the caller (Granger 2003). true scores 28. magent does not interpret the ECG. true or false."
      },
      "cardiac_arrest": {
       "type": "boolean",
       "description": "Cardiac arrest at presentation as assigned by the caller (Granger 2003). true scores 39. magent does not read the chart. true or false."
      },
      "heart_rate_bpm": {
       "type": "integer",
       "description": "Heart rate in beats/min (20-300). Granger 2003 nomogram: <50 scores 0; 50-69 scores 3; 70-89 scores 9; 90-109 scores 15; 110-149 scores 24; 150-199 scores 38; ≥200 scores 46."
      },
      "creatinine_mg_dl": {
       "type": "number",
       "description": "Initial serum creatinine in mg/dL (0.1-20). Provide this or creatinine_umol_l. If both are sent, creatinine_mg_dl is scored. Gr
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/grace-1-0-in-hospital-mortality-score-granger-2003-651ef010/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)
