# magent ICE Score Calculator (Lee 2019)

> magent ICE Score Calculator (Lee 2019) 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 Immune Effector Cell-Associated Encephalopathy (ICE) score (0–10) from caller-assigned cognitive sub-scores per the Lee 2019 grading instrument.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/ice
- 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/magent-ice-score-calculator-lee-2019-a7bc48bb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BFRrZ9Ufom7VZvM44OWlp

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-ice-score-calculator-lee-2019-a7bc48bb
```

Example prompt: Calculate the ICE score for a patient with orientation 3 out of 4, naming 2 out of 3 objects, able to follow commands, able to write a sentence, but unable to count backward from 100 by tens.

## When to prefer this

Use this endpoint when you need deterministic, citable ICE score arithmetic per the Lee 2019 criteria and already have all five sub-scores from a clinician-conducted bedside exam. Prefer it over manual addition to eliminate arithmetic errors in documentation or research pipelines. Do not use it for ASTCT ICANS grading (a different instrument), for performing the cognitive exam itself, or for clinical decision-making without appropriate medical oversight.

## Known failure modes

- Missing required query parameters (orientation, naming, following_commands, writing, attention) → validation error
- orientation value outside 0–4 or naming value outside 0–3 → out-of-range error
- Non-integer or non-boolean values for boolean fields → type error
- Payment not fulfilled (x402 protocol) → 402 Payment Required
- Network or server error → 5xx response

## How this service works

Lee 2019 Immune Effector Cell-Associated Encephalopathy (ICE) points: orientation 0-4 (year, month, city, hospital), naming 0-3 (three objects), following commands 1, writing 1, attention 1 (count backward from 100 by tens); total 0-10. Caller-assigned; magent does not perform the exam. Not ASTCT ICANS grading. Deterministic published arithmetic with citation; not a medical device.

## Output

Returns the computed ICE total score (integer 0–10) derived from the five caller-supplied sub-scores: orientation (0–4), naming (0–3), following commands (0 or 1), writing (0 or 1), and attention (0 or 1). The arithmetic is deterministic per the Lee 2019 publication; magent does not perform or interpret the clinical exam itself.

## 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": [
      "orientation",
      "naming",
      "following_commands",
      "writing",
      "attention"
     ],
     "properties": {
      "naming": {
       "type": "integer",
       "description": "Caller-assigned naming points 0-3 (three objects; Lee 2019 ICE). magent does not perform the exam."
      },
      "writing": {
       "type": "boolean",
       "description": "Ability to write a standard sentence (Lee 2019 ICE, 1 point). true, false, 1, or 0. magent does not perform the exam."
      },
      "attention": {
       "type": "boolean",
       "description": "Ability to count backward from 100 by tens (Lee 2019 ICE, 1 point). true, false, 1, or 0. magent does not perform the exam."
      },
      "orientation": {
       "type": "integer",
       "description": "Caller-assigned orientation points 0-4 (year, month, city, hospital; Lee 2019 ICE). magent does not perform the exam."
      },
      "following_commands": {
       "type": "boolean",
       "description": "Ability to follow commands (Lee 2019 ICE, 1 point). true, false, 1, or 0. magent does not perform the exam."
      }
     }
    }
   },
   "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/magent-ice-score-calculator-lee-2019-a7bc48bb/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)
