# ASCOD Ischemic Stroke Phenotyping (Amarenco 2013)

> ASCOD Ischemic Stroke Phenotyping (Amarenco 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-15).

Computes the ASCOD phenotype string (e.g. A1-S0-C2-O0-D0) for ischemic stroke from five caller-assigned Amarenco 2013 grades covering atherosclerosis, small-vessel disease, cardiac pathology, other causes, and dissection.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/ascod
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ascod-ischemic-stroke-phenotyping-amarenco-2013-895149a5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4uYEWCeFjpC_4FtUiqJfP

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 ascod-ischemic-stroke-phenotyping-amarenco-2013-895149a5
```

Example prompt: Compute the ASCOD phenotype for a stroke patient where atherosclerosis is grade 1 (potentially causal), small-vessel disease is grade 0 (absent), cardiac pathology is grade 2 (causality uncertain), other causes are grade 0 (absent), and dissection is grade 0 (absent).

## When to prefer this

Use this endpoint when you need to encode ischemic stroke etiology according to the Amarenco 2013 ASCOD phenotyping system and already have clinician-assigned grades for all five categories. Prefer this over TOAST or CCS classification tasks, as this endpoint is specifically ASCOD-only. It is a pure computation endpoint — it does not interpret imaging or produce treatment recommendations.

## Known failure modes

- Missing any of the five required grade parameters returns a validation error
- Grade values outside the allowed set (0,1,2,3,9) are rejected
- Network or payment authorization failures return HTTP 402 or 5xx errors

## How this service works

Amarenco 2013 ASCOD phenotyping of ischemic stroke from caller-assigned grades. A atherosclerosis, S small-vessel disease, C cardiac pathology, O other causes, D dissection. Each grade is 1 potentially causal, 2 causality uncertain, 3 unlikely causal but disease present, 0 absent, or 9 insufficient workup. Returns A1-S0-C2-O0-D0 style phenotype, not a summed score. magent does not read imaging. Not TOAST. Not CCS. Not a treatment. Not a medical device.

## Output

Returns a formatted ASCOD phenotype string in the style A1-S0-C2-O0-D0, encoding each of the five etiologic categories (atherosclerosis, small-vessel disease, cardiac pathology, other causes, dissection) with their respective caller-assigned grades. Does not compute a summed score; each component grade is preserved independently.

## 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": [
      "atherosclerosis",
      "small_vessel",
      "cardiac",
      "other",
      "dissection"
     ],
     "properties": {
      "other": {
       "enum": [
        0,
        1,
        2,
        3,
        9
       ],
       "type": "integer",
       "description": "Caller-assigned Amarenco 2013 other causes (O) grade: 1 potentially causal, 2 causality uncertain, 3 unlikely causal but the disease is present, 0 absence of disease, or 9 insufficient workup. magent does not read imaging."
      },
      "cardiac": {
       "enum": [
        0,
        1,
        2,
        3,
        9
       ],
       "type": "integer",
       "description": "Caller-assigned Amarenco 2013 cardiac pathology (C) grade: 1 potentially causal, 2 causality uncertain, 3 unlikely causal but the disease is present, 0 absence of disease, or 9 insufficient workup. magent does not read imaging."
      },
      "dissection": {
       "enum": [
        0,
        1,
        2,
        3,
        9
       ],
       "type": "integer",
       "description": "Caller-assigned Amarenco 2013 dissection (D) grade: 1 potentially causal, 2 causality uncertain, 3 unlikely causal but the disease is present, 0 absence of disease, or 9 insufficient workup. magent does not read imaging."
      },
      "small_vessel": {
       "enum": [
        0,
        1,
        2,
        3,
        9
       ],
       "type": "integer",
       "description": "Caller-assigned Amarenco 2013 small-vessel disease (S) grade: 1 potentially causal, 2 causality uncertain, 3 unlikely causal but the disease is present, 0 absence of disease, or 9 insufficient workup. magent does not read imaging."
      },
      "atherosclerosis": {
       "enum": [
        0,
        1,
        2,
        3,
        9
       ],
       "type": "integer",
       "description": "Caller-assigned Amarenco 2013 atherosclerosis (A) grade: 1 potentially causal, 2 causality uncert
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ascod-ischemic-stroke-phenotyping-amarenco-2013-895149a5/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)
