MAGENT

Neurology · LIVE

ASPECTS (Barber)

Compute Barber 2000 ASPECTS as 10 minus the number of published MCA-territory regions with caller-assigned early ischemic change.

LIVE $0.005 USDC GET /api/calc/aspects

Markdown: /docs/aspects.md · Canonical: https://magentlab.com/docs/aspects

Not a medical device. Not a diagnosis, dose, or listing recommendation.

What it computes

Compute Barber 2000 ASPECTS as 10 minus the number of published MCA-territory regions with caller-assigned early ischemic change.

When to use

When an agent already has caller-assigned early ischemic change flags for the ten published MCA-territory regions and needs the Barber 2000 ASPECTS total. magent does not read the CT, score posterior-circulation pc-ASPECTS, diagnose stroke, or issue a lytic order.

When not to use

  • Not a medical device. Not a diagnosis and not a lytic order. magent does not read the CT. Each of the ten published MCA-territory regions is a caller-assigned flag for early ischemic change.
  • This is Barber 2000 MCA-territory ASPECTS (C, L, IC, I, M1–M6). It is not posterior-circulation pc-ASPECTS.
  • Barber 2000 used ASPECTS of 7 or less versus greater than 7 to discriminate 3-month independence from dependence and death, and states that this analysis is not a reason to exclude patients from thrombolysis. This tool returns score and max_score only.

Formula

ASPECTS = 10 - (C + L + IC + I + M1 + M2 + M3 + M4 + M5 + M6); 1 point subtracted for caller-assigned early ischemic change (focal swelling or parenchymal hypoattenuation) in each published MCA-territory region; C=caudate, L=lentiform, IC=internal capsule, I=insular ribbon, M1=anterior MCA cortex, M2=MCA cortex lateral to insular ribbon, M3=posterior MCA cortex, M4/M5/M6=anterior/lateral/posterior MCA territories immediately superior to M1/M2/M3, rostral to basal ganglia; Barber 2000; score 0-10; not posterior-circulation pc-ASPECTS

Citation

Title
Validity and reliability of a quantitative computed tomography score in predicting outcome of hyperacute stroke before thrombolytic therapy
Authors
Barber PA, Demchuk AM, Zhang J, Buchan AM
Source
Lancet. 2000;355(9216):1670-1674
DOI
10.1016/S0140-6736(00)02237-6

Worked example

No regions involved

Given: caudate=falseinsular_ribbon=falseinternal_capsule=falselentiform=falsem1=falsem2=falsem3=falsem4=falsem5=falsem6=false

  1. C, L, IC, I, M1, M2, M3, M4, M5, and M6 are false as assigned by the caller (no early ischemic change)
  2. ASPECTS = 10 - 0 = 10 (max 10)

One region (insular ribbon) involved

Given: caudate=falseinsular_ribbon=trueinternal_capsule=falselentiform=falsem1=falsem2=falsem3=falsem4=falsem5=falsem6=false

  1. insular ribbon (I) is assigned true; C, L, IC, M1, M2, M3, M4, M5, and M6 are false
  2. ASPECTS = 10 - 1 = 9 (max 10)

Also searched as

  • Alberta Stroke Programme Early CT Score
  • ASPECTS
  • Barber 2000 ASPECTS
  • Alberta Stroke Program Early CT Score
  • MCA territory early CT score
  • ASPECTS C L IC I M1-M6
  • hyperacute stroke CT score
  • insular ribbon ASPECTS

Try

Opens the live endpoint. Unpaid browser requests show the paywall; agents should send Accept: application/json.

/api/calc/aspects?caudate=false&lentiform=false&internal_capsule=false&insular_ribbon=false&m1=false&m2=false&m3=false&m4=false&m5=false&m6=false

Full URL: https://api.magentlab.com/api/calc/aspects?caudate=false&lentiform=false&internal_capsule=false&insular_ribbon=false&m1=false&m2=false&m3=false&m4=false&m5=false&m6=false

Call

Expect HTTP 402 until you retry with PAYMENT-SIGNATURE. Incomplete query params return HTTP 400 before any quote or charge.

curl -i -H "Accept: application/json" "https://api.magentlab.com/api/calc/aspects?caudate=false&lentiform=false&internal_capsule=false&insular_ribbon=false&m1=false&m2=false&m3=false&m4=false&m5=false&m6=false"

Parameters

Name Type Required Description
caudate boolean required Caudate (C). Caller-assigned early ischemic change in the published caudate region (Barber 2000). magent does not read the CT. true or false.
lentiform boolean required Lentiform (L). Caller-assigned early ischemic change in the published lentiform region (Barber 2000). magent does not read the CT. true or false.
internal_capsule boolean required Internal capsule (IC). Caller-assigned early ischemic change in the published internal-capsule region (Barber 2000). magent does not read the CT. true or false.
insular_ribbon boolean required Insular ribbon (I). Caller-assigned early ischemic change in the published insular-ribbon region (Barber 2000). magent does not read the CT. true or false.
m1 boolean required Anterior MCA cortex (M1). Caller-assigned early ischemic change in the published M1 region (Barber 2000). magent does not read the CT. true or false.
m2 boolean required MCA cortex lateral to insular ribbon (M2). Caller-assigned early ischemic change in the published M2 region (Barber 2000). magent does not read the CT. true or false.
m3 boolean required Posterior MCA cortex (M3). Caller-assigned early ischemic change in the published M3 region (Barber 2000). magent does not read the CT. true or false.
m4 boolean required Anterior MCA territory immediately superior to M1, rostral to basal ganglia (M4). Caller-assigned early ischemic change in the published M4 region (Barber 2000). magent does not read the CT. true or false.
m5 boolean required Lateral MCA territory immediately superior to M2, rostral to basal ganglia (M5). Caller-assigned early ischemic change in the published M5 region (Barber 2000). magent does not read the CT. true or false.
m6 boolean required Posterior MCA territory immediately superior to M3, rostral to basal ganglia (M6). Caller-assigned early ischemic change in the published M6 region (Barber 2000). magent does not read the CT. true or false.

Bulk (POST)

POST the same path with a JSON items array. The first item is the GET unit; each additional item is $0.002. Invalid items return HTTP 400 before settlement.

POST /api/calc/aspects Max 25 unit_amount + extra_item_amount * (n - 1) extra $0.002 PREVIEW

  • 1 to 25 items. Each item uses the same keys as the GET query parameters.
  • POST of 1 item costs the same as GET. Lists longer than 25: chunk into multiple POSTs. Extra items still execute; do not pad dummy rows.
  • The first invalid item fails the whole request (index in the 400 JSON). You are not charged.
  • HTTP 200 is {count, path, items}. Each items[i] is the GET 200 body for that row.
  • Catalog misses (empty matches, found=false) stay paid 200s inside that slot.
  • x402 resource URL is this path plus n and body_sha256. Browsers that prefer text/html get the same paywall as GET; Pay retries POST with the same items.

Example request (fixture)

{
  "items": [
    {
      "caudate": "false",
      "insular_ribbon": "false",
      "internal_capsule": "false",
      "lentiform": "false",
      "m1": "false",
      "m2": "false",
      "m3": "false",
      "m4": "false",
      "m5": "false",
      "m6": "false"
    },
    {
      "caudate": "false",
      "insular_ribbon": "false",
      "internal_capsule": "false",
      "lentiform": "false",
      "m1": "false",
      "m2": "false",
      "m3": "false",
      "m4": "false",
      "m5": "false",
      "m6": "false"
    }
  ]
}

Open bulk paywall →

Opens a two-item fixture on the API host. Unpaid browsers get the same MetaMask paywall as GET; Pay retries POST with those items.

Example 200 (fixture)

{
  "count": 2,
  "path": "/api/calc/aspects",
  "items": [
    {
      "components": [
        {
          "factor": "caudate",
          "points": 0,
          "present": false
        },
        {
          "factor": "lentiform",
          "points": 0,
          "present": false
        },
        {
          "factor": "internal_capsule",
          "points": 0,
          "present": false
        },
        {
          "factor": "insular_ribbon",
          "points": 0,
          "present": false
        },
        {
          "factor": "m1",
          "points": 0,
          "present": false
        },
        {
          "factor": "m2",
          "points": 0,
          "present": false
        },
        {
          "factor": "m3",
          "points": 0,
          "present": false
        },
        {
          "factor": "m4",
          "points": 0,
          "present": false
        },
        {
          "factor": "m5",
          "points": 0,
          "present": false
        },
        {
          "factor": "m6",
          "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.",
      "citation": {
        "authors": "Barber PA, Demchuk AM, Zhang J, Buchan AM",
        "doi": "10.1016/S0140-6736(00)02237-6",
        "id": "barber-2000-aspects",
        "pmid": "10905241",
        "source": "Lancet. 2000;355(9216):1670-1674",
        "title": "Validity and reliability of a quantitative computed tomography score in predicting outcome of hyperacute stroke before thrombolytic therapy"
      },
      "formula": "aspects",
      "formula_expression": "ASPECTS = 10 - (C + L + IC + I + M1 + M2 + M3 + M4 + M5 + M6); 1 point subtracted for caller-assigned early ischemic change (focal swelling or parenchymal hypoattenuation) in each published MCA-territory region; C=caudate, L=lentiform, IC=internal capsule, I=insular ribbon, M1=anterior MCA cortex, M2=MCA cortex lateral to insular ribbon, M3=posterior MCA cortex, M4/M5/M6=anterior/lateral/posterior MCA territories immediately superior to M1/M2/M3, rostral to basal ganglia; Barber 2000; score 0-10; not posterior-circulation pc-ASPECTS",
      "max_score": 10,
      "score": 10
    },
    {
      "components": [
        {
          "factor": "caudate",
          "points": 0,
          "present": false
        },
        {
          "factor": "lentiform",
          "points": 0,
          "present": false
        },
        {
          "factor": "internal_capsule",
          "points": 0,
          "present": false
        },
        {
          "factor": "insular_ribbon",
          "points": 0,
          "present": false
        },
        {
          "factor": "m1",
          "points": 0,
          "present": false
        },
        {
          "factor": "m2",
          "points": 0,
          "present": false
        },
        {
          "factor": "m3",
          "points": 0,
          "present": false
        },
        {
          "factor": "m4",
          "points": 0,
          "present": false
        },
        {
          "factor": "m5",
          "points": 0,
          "present": false
        },
        {
          "factor": "m6",
          "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.",
      "citation": {
        "authors": "Barber PA, Demchuk AM, Zhang J, Buchan AM",
        "doi": "10.1016/S0140-6736(00)02237-6",
        "id": "barber-2000-aspects",
        "pmid": "10905241",
        "source": "Lancet. 2000;355(9216):1670-1674",
        "title": "Validity and reliability of a quantitative computed tomography score in predicting outcome of hyperacute stroke before thrombolytic therapy"
      },
      "formula": "aspects",
      "formula_expression": "ASPECTS = 10 - (C + L + IC + I + M1 + M2 + M3 + M4 + M5 + M6); 1 point subtracted for caller-assigned early ischemic change (focal swelling or parenchymal hypoattenuation) in each published MCA-territory region; C=caudate, L=lentiform, IC=internal capsule, I=insular ribbon, M1=anterior MCA cortex, M2=MCA cortex lateral to insular ribbon, M3=posterior MCA cortex, M4/M5/M6=anterior/lateral/posterior MCA territories immediately superior to M1/M2/M3, rostral to basal ganglia; Barber 2000; score 0-10; not posterior-circulation pc-ASPECTS",
      "max_score": 10,
      "score": 10
    }
  ]
}

Response

Field Type Description
formula string aspects
formula_expression string Exact expression used
score integer Barber 2000 ASPECTS: 10 minus caller-assigned involved MCA regions (0-10). Not pc-ASPECTS.
max_score integer Always 10
components array Per-region caller-assigned early ischemic change (1 if involved, else 0)
citation object Barber Lancet 2000 citation
disclaimer string Not-a-device notice

Example JSON

Machine form of the same example. Frozen fixture. Not a live lookup.

{
  "components": [
    {
      "factor": "caudate",
      "points": 0,
      "present": false
    },
    {
      "factor": "lentiform",
      "points": 0,
      "present": false
    },
    {
      "factor": "internal_capsule",
      "points": 0,
      "present": false
    },
    {
      "factor": "insular_ribbon",
      "points": 0,
      "present": false
    },
    {
      "factor": "m1",
      "points": 0,
      "present": false
    },
    {
      "factor": "m2",
      "points": 0,
      "present": false
    },
    {
      "factor": "m3",
      "points": 0,
      "present": false
    },
    {
      "factor": "m4",
      "points": 0,
      "present": false
    },
    {
      "factor": "m5",
      "points": 0,
      "present": false
    },
    {
      "factor": "m6",
      "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.",
  "citation": {
    "authors": "Barber PA, Demchuk AM, Zhang J, Buchan AM",
    "doi": "10.1016/S0140-6736(00)02237-6",
    "id": "barber-2000-aspects",
    "pmid": "10905241",
    "source": "Lancet. 2000;355(9216):1670-1674",
    "title": "Validity and reliability of a quantitative computed tomography score in predicting outcome of hyperacute stroke before thrombolytic therapy"
  },
  "formula": "aspects",
  "formula_expression": "ASPECTS = 10 - (C + L + IC + I + M1 + M2 + M3 + M4 + M5 + M6); 1 point subtracted for caller-assigned early ischemic change (focal swelling or parenchymal hypoattenuation) in each published MCA-territory region; C=caudate, L=lentiform, IC=internal capsule, I=insular ribbon, M1=anterior MCA cortex, M2=MCA cortex lateral to insular ribbon, M3=posterior MCA cortex, M4/M5/M6=anterior/lateral/posterior MCA territories immediately superior to M1/M2/M3, rostral to basal ganglia; Barber 2000; score 0-10; not posterior-circulation pc-ASPECTS",
  "max_score": 10,
  "score": 10
}

Client errors (HTTP 400)

Invalid params return 400 without charge. Shared HTTP 402 and 503 meanings: Payments.

HTTP Code When
400 invalid_aspects_regions ASPECTS inputs must match caller-assigned involvement of the ten published MCA regions. Returned before settlement; you are not charged.
400 invalid_items POST body must be a JSON object with only an items array Returned before settlement; you are not charged.
400 invalid_item_count items must be an array of 1 to 25 objects Returned before settlement; you are not charged.
400 invalid_item each items entry must be a JSON object Returned before settlement; you are not charged.

Related tools

  • NIHSS — Sum Brott 1989 NIH stroke scale points from 15 caller-assigned examination integers, including pupillary response and plantar reflex. Weaker-limb motor arm and leg. Does not apply later total-score severity bands.
  • Alteplase stroke dose — Compute NINDS 1995 intravenous alteplase milligrams from weight: 0.9 mg/kg capped at 90 mg, with 10% as a bolus and the remainder over 60 minutes.

Payment

Unpaid requests return HTTP 402 even if query parameters or POST items are missing or invalid, so CDP and agents can index the path. After a PAYMENT-SIGNATURE, invalid params return HTTP 400 JSON before settlement. magent does not charge. Fix the params, then request a new 402 quote for that complete URL. Catalog misses (empty matches, found=false) are valid paid 200s. Unpaid valid requests return HTTP 402 with a base64 PAYMENT-REQUIRED header. HTTP 503 is not a new quote: retry the same PAYMENT-SIGNATURE. Full handshake and shared payment errors: Payments. Stdio MCP: /docs/mcp.

Guarantees

  • HTTP 402 is unpaid, including a missing query. After PAYMENT-SIGNATURE, invalid parameters return HTTP 400 before settlement. You are not charged. HTTP 402 never includes the tool JSON.
  • exact: settlement finishes before the tool (paymentFlow upfront). batch-settlement: verify/deposit before the tool; chargedCumulativeAmount commits after HTTP 2xx. Uncertain or failed settlement fails closed (HTTP 503). Retry the same PAYMENT-SIGNATURE.
  • HTTP 402 is unpaid only. Do not sign a second authorization because of a 503.
  • Execution is timeout-bounded and concurrency-capped.
  • Calculator inputs are stored encrypted for allowlisted operators (Magent Console). They are not in public logs, SSH lookups, catalog, or rollups. Request logs store path without query.