# Rost 2008 FUNC Score Calculator

> Rost 2008 FUNC Score 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-14).

Computes the Rost 2008 FUNC score (0–11) for predicting functional outcome after primary intracerebral hemorrhage from caller-supplied volume, age, ICH location, GCS, and pre-ICH cognitive impairment.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/func_score
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rost-2008-func-score-calculator-29fd00ef
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hVeV072MRlk6y_MhcKrbY

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 rost-2008-func-score-calculator-29fd00ef
```

Example prompt: Calculate the Rost 2008 FUNC score for a 74-year-old patient with a deep ICH, volume of 42 mL, GCS of 11, and no pre-ICH cognitive impairment.

## When to prefer this

Use this endpoint when you need a fast, rule-based computation of the Rost 2008 FUNC score and all five parameters (volume, age, ICH location, GCS, cognitive impairment status) have already been clinically assessed and assigned by the caller. Prefer this over manual lookup when integrating ICH prognostication into an automated clinical workflow or EHR summary. This is a companion to the Hemphill ICH Score (available as a sibling endpoint) and is not a replacement for it. Do not use this endpoint to derive clinical inputs — it does not read CT scans, measure ICH volume, or compute GCS from eye/verbal/motor subscores.

## Known failure modes

- Missing required parameter (ich_volume_ml, age, location, gcs, or pre_ich_cognitive_impairment) returns an error
- ICH volume outside 0.1–300 mL range may be rejected or return unexpected results
- Age outside 18–120 range may cause validation failure
- GCS outside 3–15 returns an error
- Invalid location string (not 'lobar', 'deep', or 'infratentorial') returns a validation error
- Payment failure (insufficient USDC balance for x402 protocol) prevents the call from completing

## How this service works

Rost 2008 FUNC score (0-11) after primary ICH from caller-assigned volume, age, location (lobar/deep/infratentorial), GCS, and pre-ICH cognitive impairment. Volume <30 mL scores 4, 30-60 scores 2, >60 scores 0; age <70 scores 2, 70-79 scores 1, >=80 scores 0; lobar 2, deep 1, infratentorial 0; GCS >=9 scores 2, <=8 scores 0; cognitive impairment absent scores 1. Companion to the Hemphill ICH Score, not a replacement. Not a diagnosis or withdrawal-of-care protocol. magent does not read CT.

## Output

Returns the total FUNC score (integer 0–11) derived from the five input components: ICH volume (<30 mL = 4, 30–60 mL = 2, >60 mL = 0), age (<70 = 2, 70–79 = 1, ≥80 = 0), location (lobar = 2, deep = 1, infratentorial = 0), GCS (≥9 = 2, ≤8 = 0), and pre-ICH cognitive impairment (absent = 1, present = 0). Higher scores correlate with greater likelihood of functional independence at 90 days. Does not provide diagnostic conclusions or withdrawal-of-care guidance.

## 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": [
      "ich_volume_ml",
      "age",
      "location",
      "gcs",
      "pre_ich_cognitive_impairment"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (18-120). <70 scores 2; 70-79 scores 1; ≥80 scores 0."
      },
      "gcs": {
       "type": "integer",
       "description": "Caller-assigned GCS total (integer 3-15). ≥9 scores 2; ≤8 scores 0. magent does not compute GCS from eye, verbal, and motor here."
      },
      "location": {
       "type": "string",
       "description": "ICH location as assigned by the caller: lobar (2), deep (1), or infratentorial (0). magent does not read a CT scan."
      },
      "ich_volume_ml": {
       "type": "number",
       "description": "ICH volume in mL (cm^3 in Rost 2008). Number from 0.1 to 300. <30 scores 4; 30-60 scores 2; >60 scores 0. magent does not measure volume from imaging."
      },
      "pre_ich_cognitive_impairment": {
       "type": "boolean",
       "description": "Pre-ICH cognitive impairment as assigned by the caller. true or false. Absent (false) scores 1; present (true) scores 0."
      }
     }
    }
   },
   "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/func_score",
  "count": 2,
  "items": [
   {
    "gcs": 14,
    "score": 11,
    "formula": "func_score",
    "citation": {
     "id": "rost-2008",
     "doi": "10.1161/STROKEAHA.107.512202",
     "pmid": "18556582",
     "title": "Prediction of functional outcome in patients with primary intracerebral hemorrhage: the FUNC score",
     "source": "Stroke. 2008;39(8):2304-2309",
     "authors": "Rost NS, Smith EE, Chang Y, et al."
    },
    "location": "lobar",
    "age_years": 60,
    "func_band": "11",
    "max_score": 11,
    "components": [
     {
      "value": 15,
      "factor": "ich_volume_ml",
      "points": 4,
      "present": true
     },
     {
      "value": 60,
      "factor": "age",
      "points": 2,
      "present": true
     },
     {
      "value": "lobar",
      "factor": "location",
      "points": 2,
      "present": true
     },
     {
      "value": 14,
      "factor": "gcs",
      "points": 2,
      "present": true
     },
     {
      "value": false,
      "factor": "pre_ich_cognitive_impairment",
      "points": 1,
      "present": true
     }
    ],
    "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": 15,
    "formula_expression": "FUNC = ich_volume + age + location + gcs + pre_ich_cognitive_impairment; volume <30 → 4, 30-60 → 2, >60 → 0; age <70 → 2, 70-79 → 1, >=80 → 0; lobar 2, deep 1, infratentorial 0; GCS >=9 → 2, <=8 → 0; pre-ICH cognitive impairment absent 1, present 0; max 11",
    "pre_ich_cognitive_impairment": false
   },
   {
    "gcs": 14,
    "score": 11,
    "formula": "func_score",
    "citation": {
     "id": "rost-2008",
     "doi": "10.1161/STROKEAHA.107.512202",
     "pmid": "18556582",
     "title": "Prediction of functional outcome in patients with primary intracerebral hemorrhage: the FUNC score",
     "source": "Stroke. 2008;39(8):2304-2309",
     "authors": "Rost NS, Smith EE, Chang Y, et al."
    },
    "location": "lobar",
    "age_years": 60,
    "func_band": "11",
    "max_score": 11,
    "components": [
     {
      "value": 15,
      "factor": "ich_volume_ml",
      "points": 4,
      "present": true
     },
     {
      "value": 60,
      "factor": "age",
      "points": 2,
      "present": true
     },
     {
      "value": "lobar",
      "factor": "location",
      "point
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rost-2008-func-score-calculator-29fd00ef/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)
