# magent ICH Score Calculator (Hemphill 2001)

> magent ICH Score Calculator (Hemphill 2001) is a paid API for AI agents from api.magentlab.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-11).

Computes the Hemphill 2001 ICH Score (0–6) from caller-supplied GCS, age, infratentorial origin, ICH volume, and intraventricular hemorrhage status.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/ich_score?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/magent-ich-score-calculator-hemphill-2001-be8d4d16
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HOJb-ElsoRjIBKJm5ow5X

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-ich-score-calculator-hemphill-2001-be8d4d16
```

Example prompt: Calculate the Hemphill 2001 ICH score for a patient with a GCS of 8, age 83, ICH volume of 42 mL, infratentorial origin, and no intraventricular hemorrhage.

## When to prefer this

Use this endpoint when you need a fast, deterministic, citable Hemphill 2001 ICH Score and already have the five required clinical values (GCS, age, ICH volume, infratentorial origin, IVH) assigned by a clinician. Prefer this over manual lookup tables when automating clinical documentation, building stroke decision-support workflows, or needing a machine-readable score with provenance. Do not use for the FUNC score, ICH-GS, or any score requiring raw CT image analysis — this endpoint does not read imaging.

## Known failure modes

- Missing required query parameters (gcs, age, infratentorial_origin, ich_volume_ml, ivh) returns a validation error
- GCS value outside 3–15 range may return an error or undefined behavior
- ICH volume outside 0.1–300 mL range may be rejected
- Age outside 18–120 range may be rejected
- Non-integer GCS or age values may fail schema validation
- Boolean fields passed as strings (e.g. 'true' vs true) may cause parse errors

## How this service works

Deterministic published-formula arithmetic plus ICD-10-CM, RxNorm, and LOINC. Pay in USDC on Base via x402.

## Output

Returns the total ICH Score (integer 0–6) with component-level point contributions for each of the five inputs (GCS tier, age ≥80, volume ≥30 mL, infratentorial origin, IVH), along with a citation to Hemphill 2001 and a disclaimer that the result is not a diagnosis or withdrawal-of-care protocol.

## 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": [
      "gcs",
      "age",
      "infratentorial_origin",
      "ich_volume_ml",
      "ivh"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (18-120). ≥80 scores 1; 79 does not."
      },
      "gcs": {
       "type": "integer",
       "description": "Caller-assigned GCS total (integer 3-15). 3-4 scores 2; 5-12 scores 1; 13-15 scores 0. magent does not compute GCS from eye, verbal, and motor here."
      },
      "ivh": {
       "type": "boolean",
       "description": "Intraventricular hemorrhage as assigned by the caller. true or false. 1 point if true. magent does not read a CT scan."
      },
      "ich_volume_ml": {
       "type": "number",
       "description": "ICH volume in mL (cm^3 in Hemphill 2001). Number from 0.1 to 300. ≥30 scores 1; 29.9 does not. magent does not measure volume from imaging."
      },
      "infratentorial_origin": {
       "type": "boolean",
       "description": "Infratentorial origin of the hemorrhage as assigned by the caller. true or false. 1 point if true. magent does not read a CT scan."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "path": "/api/calc/ich_score",
  "count": 2,
  "items": [
   {
    "gcs": 15,
    "score": 0,
    "formula": "ich_score",
    "citation": {
     "id": "hemphill-2001",
     "doi": "10.1161/01.STR.32.4.891",
     "title": "The ICH Score: a simple, reliable grading scale for intracerebral hemorrhage",
     "source": "Stroke. 2001;32(4):891-897",
     "authors": "Hemphill JC 3rd, Bonovich DC, Besmertis L, Manley GT, Johnston SC"
    },
    "age_years": 70,
    "max_score": 6,
    "components": [
     {
      "value": 15,
      "factor": "gcs",
      "points": 0,
      "present": false
     },
     {
      "value": 70,
      "factor": "age",
      "points": 0,
      "present": false
     },
     {
      "factor": "infratentorial_origin",
      "points": 0,
      "present": false
     },
     {
      "value": 10,
      "factor": "ich_volume_ml",
      "points": 0,
      "present": false
     },
     {
      "factor": "ivh",
      "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.",
    "ich_volume_ml": 10,
    "formula_expression": "ICH Score = gcs + age_ge_80 + infratentorial_origin + ich_volume_ge_30_ml + ivh; GCS 3-4 → 2, 5-12 → 1, 13-15 → 0; age >=80 1; infratentorial origin 1; volume >=30 mL 1; IVH 1; max 6"
   },
   {
    "gcs": 15,
    "score": 0,
    "formula": "ich_score",
    "citation": {
     "id": "hemphill-2001",
     "doi": "10.1161/01.STR.32.4.891",
     "title": "The ICH Score: a simple, reliable grading scale for intracerebral hemorrhage",
     "source": "Stroke. 2001;32(4):891-897",
     "authors": "Hemphill JC 3rd, Bonovich DC, Besmertis L, Manley GT, Johnston SC"
    },
    "age_years": 70,
    "max_score": 6,
    "components": [
     {
      "value": 15,
      "factor": "gcs",
      "points": 0,
      "present": false
     },
     {
      "value": 70,
      "factor": "age",
      "points": 0,
      "present": false
     },
     {
      "factor": "infratentorial_origin",
      "points": 0,
      "present": false
     },
     {
      "value": 10,
      "factor": "ich_volume_ml",
      "points": 0,
      "present": false
     },
     {
      "factor": "ivh",
      "points": 0,
      "present": false
     }
    ],
    "disclaimer": "Not a medical device. Deterministic published-formula or published-code output
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-ich-score-calculator-hemphill-2001-be8d4d16/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)
