# ATRIA Stroke Risk Score (Singer 2013)

> ATRIA Stroke Risk Score (Singer 2013) 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).

Calculates the ATRIA stroke risk score for atrial fibrillation patients using Singer 2013 Table 3, returning a numeric score and low/moderate/high risk category.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/atria_stroke
- 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/atria-stroke-risk-score-singer-2013-842e3b57
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MlRdI081AWKeveij0D0Y2

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 atria-stroke-risk-score-singer-2013-842e3b57
```

Example prompt: What's the ATRIA stroke risk score for a 72-year-old woman with atrial fibrillation, prior ischemic stroke, hypertension, and diabetes, but no heart failure, proteinuria, or kidney disease?

## When to prefer this

Use this endpoint when you need to compute the Singer 2013 ATRIA stroke risk score specifically (not CHA2DS2-VASc and not the Fang 2011 ATRIA bleeding risk score). Prefer it when clinical logic requires Table 3 age-stratified scoring with a prior-stroke interaction term and the caller has already resolved eGFR and proteinuria status from lab data.

## Known failure modes

- Missing required query parameters returns a validation error
- Age outside 18–120 range may be rejected
- All boolean flags must be explicitly provided (no defaults assumed)
- eGFR and urine protein values must be pre-assessed by the caller — the API does not compute them
- Misidentifying this as a CHA2DS2-VASc or ATRIA bleed (Fang 2011) endpoint will produce wrong clinical interpretation

## How this service works

Singer 2013 ATRIA stroke risk score (not Fang 2011 ATRIA bleed). Age x prior stroke Table 3: <65 0/8, 65-74 3/7, 75-84 5/7, >=85 6/9 without/with prior stroke. Plus 1 each: female, diabetes, heart failure, hypertension, proteinuria, eGFR<45 or ESRD. Max 15 (12 without prior stroke). 0-5 low, 6 moderate, 7-15 high. Not a stroke diagnosis or anticoagulation order. Not CHA2DS2-VASc. magent does not assay eGFR or urine.

## Output

Returns the numeric ATRIA stroke risk score (0–15) and the corresponding risk category: low (0–5), moderate (6), or high (7–15), computed from the Singer 2013 Table 3 age-by-prior-stroke matrix plus five binary comorbidity flags.

## 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",
      "prior_stroke",
      "female",
      "diabetes",
      "heart_failure",
      "hypertension",
      "proteinuria",
      "egfr_lt_45_or_esrd"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (18-120). Singer 2013 Table 3 without prior stroke: <65 scores 0, 65-74 scores 3, 75-84 scores 5, ≥85 scores 6. With prior stroke: <65 scores 8, 65-74 scores 7, 75-84 scores 7, ≥85 scores 9."
      },
      "female": {
       "type": "boolean",
       "description": "Female sex as assigned by the caller. true or false. Scores 1."
      },
      "diabetes": {
       "type": "boolean",
       "description": "Diabetes as assigned by the caller. true or false. Scores 1."
      },
      "proteinuria": {
       "type": "boolean",
       "description": "Proteinuria as assigned by the caller. true or false. Scores 1. magent does not assay urine."
      },
      "hypertension": {
       "type": "boolean",
       "description": "Diagnosed hypertension as assigned by the caller. true or false. Scores 1."
      },
      "prior_stroke": {
       "type": "boolean",
       "description": "Prior ischemic stroke as assigned by the caller. true or false. Selects the Table 3 age column. Not a stroke diagnosis."
      },
      "heart_failure": {
       "type": "boolean",
       "description": "Congestive heart failure as assigned by the caller (paper CHF). true or false. Scores 1."
      },
      "egfr_lt_45_or_esrd": {
       "type": "boolean",
       "description": "eGFR <45 or ESRD as assigned by the caller. true or false. Scores 1. magent does not assay eGFR."
      }
     }
    }
   },
   "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/atria-stroke-risk-score-singer-2013-842e3b57/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)
