# Perry 2021 Canadian TIA Score Calculator

> Perry 2021 Canadian TIA 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).

Calculates the Perry 2021 Canadian TIA score (Table 1) to stratify 7-day risk of stroke or carotid revascularization after a transient ischemic attack

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/canadian_tia
- 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/perry-2021-canadian-tia-score-calculator-0bedca05
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_f_0RpW5GfN2Qeo8bFYbQ0

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 perry-2021-canadian-tia-score-calculator-0bedca05
```

Example prompt: Calculate the Perry 2021 Canadian TIA score for a 72-year-old patient: this is their first TIA, symptoms lasted over 10 minutes, they have known carotid stenosis, they are already on antiplatelet therapy, they have gait disturbance, no unilateral weakness, no vertigo, diastolic BP is 115 mmHg, no dysarthria, AF seen on ECG, new infarct on CT, platelets are 390, and glucose is 16 mmol/L.

## When to prefer this

Use this endpoint when you need to apply the Perry 2021 Canadian TIA score specifically (Table 1 version), which differs from the older ABCD2 score. Prefer this over ABCD2-based tools when you have ECG, CT, and lab results available (AF, infarct, platelets, glucose), as the Canadian TIA score incorporates investigation findings for superior risk stratification in an adult emergency department context.

## Known failure modes

- Missing required query parameters returns a validation error
- Both glucose_mmol_l and glucose_mg_dl provided simultaneously returns an error
- Age outside 18–120 range returns a validation error
- Diastolic BP outside 20–160 mmHg returns a validation error
- Platelet count outside valid range returns a validation error
- Glucose outside valid range (2.8–55.5 mmol/L or 50–1000 mg/dL) returns a validation error

## How this service works

Perry 2021 Canadian TIA Score (Table 1) for 7-day stroke or carotid revascularization after TIA. Clinical: first TIA 2, symptoms >=10 min 2, past carotid stenosis 2, antiplatelet 3, gait 1, unilateral weakness 1, vertigo -3, diastolic >=110 3, dysarthria/aphasia 1. Investigations: AF on ECG 2, infarct on CT 1, platelets >=400 2, glucose >=15 mmol/L 3. Age required, 0 points. Total -3 to 23. Bands <=3 low (0.5%), 4-8 medium (2.3%), >=9 high (5.9%). Not ABCD2. Not a diagnosis or admit order.

## Output

Returns the total Perry 2021 Canadian TIA score (range -3 to 23), individual item scores, and a risk band classification: low (≤3, ~0.5% 7-day risk), medium (4–8, ~2.3%), or high (≥9, ~5.9%) for stroke or carotid revascularization

## 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",
      "first_tia",
      "symptoms_ge_10_min",
      "carotid_stenosis",
      "on_antiplatelet",
      "gait_disturbance",
      "unilateral_weakness",
      "vertigo",
      "diastolic_mm_hg",
      "dysarthria_or_aphasia",
      "af_on_ecg",
      "infarct_on_ct",
      "platelets_10e9_l"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (18-120). Required for the adult ED cohort. Does not add points (Perry 2021 Table 1 has no age item)."
      },
      "vertigo": {
       "type": "boolean",
       "description": "Vertigo (Perry 2021 Table 1). true scores -3; false scores 0. magent does not examine the patient."
      },
      "af_on_ecg": {
       "type": "boolean",
       "description": "Atrial fibrillation on ECG (Perry 2021 Table 1). true scores 2; false scores 0. magent does not read the ECG."
      },
      "first_tia": {
       "type": "boolean",
       "description": "Lifetime first TIA (Perry 2021 Table 1). true scores 2; false scores 0. Caller-assigned; magent does not take a history."
      },
      "glucose_mg_dl": {
       "type": "number",
       "description": "Glucose in mg/dL (50-1000). Converted as mmol/L = mg/dL / 18. Provide this or glucose_mmol_l, not both. ≥15 mmol/L after conversion scores 3."
      },
      "infarct_on_ct": {
       "type": "boolean",
       "description": "New or old infarction on CT (Perry 2021 Table 1). true scores 1; false scores 0. magent does not read the CT."
      },
      "glucose_mmol_l": {
       "type": "number",
       "description": "Glucose in mmol/L (2.8-55.5). Provide this or glucose_mg_dl, not both. ≥15.0 scores 3; 14.9 scores 0 (Perry 2021 Table 1)."
      },
      "diastolic_mm_hg": {
       "type": "number",
       "description": "Initial triage diastolic blood pressure in mm Hg (20-160). ≥110 scores 3; 109 scores 0 (Perry 2021 Table 1)."
      },
      "on_anti
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/perry-2021-canadian-tia-score-calculator-0bedca05/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)
