# magent RACE Scale Calculator

> magent RACE Scale 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-16).

Computes the Rapid Arterial oCclusion Evaluation (RACE) score and indicates whether large vessel occlusion (LVO) is suggested, based on five neurological exam findings.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/race
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/magent-race-scale-calculator-d80a6ddf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TU4IP_7lr8G7UvdPdS3ab

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 magent-race-scale-calculator-d80a6ddf
```

Example prompt: Calculate the RACE score for a patient with moderate-to-severe facial palsy (2), severe arm motor deficit (2), moderate leg motor deficit (1), gaze deviation present (1), right hemiparesis, and cortical aphasia score of 2 — does this suggest large vessel occlusion?

## When to prefer this

Use this endpoint when you need a standardized, validated RACE score computed server-side from clinician-supplied neurological exam findings, especially in agentic workflows where auditability and a structured LVO flag are needed. Prefer it over manual arithmetic when integrating stroke triage decisions into automated pipelines or documentation systems.

## Known failure modes

- Missing or invalid enum values for any of the six required query parameters returns a validation error
- Providing out-of-range integers (e.g., cortical=3) results in schema rejection
- Incorrect hemiparesis_side value causes cortical subscale to be misinterpreted
- Network or HTTP 402 payment failure if x402 payment is not supplied or is insufficient

## How this service works

Pérez de la Ossa 2014 Rapid Arterial oCclusion Evaluation (RACE) scale: facial_palsy 0 absent / 1 mild / 2 moderate to severe + arm_motor 0 normal to mild / 1 moderate / 2 severe + leg_motor same + gaze_deviation 0 absent / 1 present + cortical 0-2 (aphasia if right hemiparesis; agnosia if left). Max 9. lvo_suggested true iff score ≥5. Not a stroke diagnosis or transfer order and not a race-based equation. magent does not examine the patient.

## Output

Returns the computed RACE total score (0–9) and a boolean lvo_suggested field that is true when the score is 5 or greater, indicating possible large vessel occlusion warranting further workup. Does not provide a stroke diagnosis or transfer recommendation.

## 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": [
      "facial_palsy",
      "arm_motor",
      "leg_motor",
      "gaze_deviation",
      "hemiparesis_side",
      "cortical"
     ],
     "properties": {
      "cortical": {
       "enum": [
        0,
        1,
        2
       ],
       "type": "integer",
       "description": "Caller-assigned Pérez de la Ossa 2014 cortical points (integer 0-2). Right hemiparesis: aphasia, close eyes and make a fist (0 both, 1 one, 2 neither). Left hemiparesis: agnosia, recognizes arm and impairment (0 both, 1 one, 2 neither). magent does not examine the patient."
      },
      "arm_motor": {
       "enum": [
        0,
        1,
        2
       ],
       "type": "integer",
       "description": "Caller-assigned Pérez de la Ossa 2014 RACE arm motor (integer 0-2): 0 normal to mild, 1 moderate, 2 severe. magent does not examine the patient."
      },
      "leg_motor": {
       "enum": [
        0,
        1,
        2
       ],
       "type": "integer",
       "description": "Caller-assigned Pérez de la Ossa 2014 RACE leg motor (integer 0-2): 0 normal to mild, 1 moderate, 2 severe. magent does not examine the patient."
      },
      "facial_palsy": {
       "enum": [
        0,
        1,
        2
       ],
       "type": "integer",
       "description": "Caller-assigned Pérez de la Ossa 2014 RACE facial palsy (integer 0-2): 0 absent, 1 mild, 2 moderate to severe. magent does not examine the patient."
      },
      "gaze_deviation": {
       "enum": [
        0,
        1
       ],
       "type": "integer",
       "description": "Caller-assigned Pérez de la Ossa 2014 RACE head and gaze deviation (integer 0-1): 0 absent, 1 present. magent does not examine the patient."
      },
      "hemiparesis_side": {
       "enum": [
        "right",
        "left"
       ],
       "type": "string",
       "description": "Caller-assigned hemiparesis side (right or left). Right scores cortical as aphasia (close ey
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-race-scale-calculator-d80a6ddf/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)
