{
  "x402Version": 2,
  "id": 39174,
  "slug": "39174",
  "resource": "https://api.magentlab.com/api/calc/func_score",
  "description": "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.",
  "type": "http",
  "serviceName": "magent",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x836Be278f1739fB4308091cD1852F7971Bc19Ee2",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "iconUrl": "https://api.magentlab.com/favicon.ico",
        "input": {
          "body": {
            "items": [
              {
                "age": 60,
                "gcs": 14,
                "ich_volume_ml": 15,
                "location": "lobar",
                "pre_ich_cognitive_impairment": false
              },
              {
                "age": 60,
                "gcs": 14,
                "ich_volume_ml": 15,
                "location": "lobar",
                "pre_ich_cognitive_impairment": false
              }
            ]
          },
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "count": 2,
            "items": [
              {
                "age_years": 60,
                "citation": {
                  "authors": "Rost NS, Smith EE, Chang Y, et al.",
                  "doi": "10.1161/STROKEAHA.107.512202",
                  "id": "rost-2008",
                  "pmid": "18556582",
                  "source": "Stroke. 2008;39(8):2304-2309",
                  "title": "Prediction of functional outcome in patients with primary intracerebral hemorrhage: the FUNC score"
                },
                "components": [
                  {
                    "factor": "ich_volume_ml",
                    "points": 4,
                    "present": true,
                    "value": 15
                  },
                  {
                    "factor": "age",
                    "points": 2,
                    "present": true,
                    "value": 60
                  },
                  {
                    "factor": "location",
                    "points": 2,
                    "present": true,
                    "value": "lobar"
                  },
                  {
                    "factor": "gcs",
                    "points": 2,
                    "present": true,
                    "value": 14
                  },
                  {
                    "factor": "pre_ich_cognitive_impairment",
                    "points": 1,
                    "present": true,
                    "value": 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.",
                "formula": "func_score",
                "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",
                "func_band": "11",
                "gcs": 14,
                "ich_volume_ml": 15,
                "location": "lobar",
                "max_score": 11,
                "pre_ich_cognitive_impairment": false,
                "score": 11
              },
              {
                "age_years": 60,
                "citation": {
                  "authors": "Rost NS, Smith EE, Chang Y, et al.",
                  "doi": "10.1161/STROKEAHA.107.512202",
                  "id": "rost-2008",
                  "pmid": "18556582",
                  "source": "Stroke. 2008;39(8):2304-2309",
                  "title": "Prediction of functional outcome in patients with primary intracerebral hemorrhage: the FUNC score"
                },
                "components": [
                  {
                    "factor": "ich_volume_ml",
                    "points": 4,
                    "present": true,
                    "value": 15
                  },
                  {
                    "factor": "age",
                    "points": 2,
                    "present": true,
                    "value": 60
                  },
                  {
                    "factor": "location",
                    "points": 2,
                    "present": true,
                    "value": "lobar"
                  },
                  {
                    "factor": "gcs",
                    "points": 2,
                    "present": true,
                    "value": 14
                  },
                  {
                    "factor": "pre_ich_cognitive_impairment",
                    "points": 1,
                    "present": true,
                    "value": 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.",
                "formula": "func_score",
                "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",
                "func_band": "11",
                "gcs": 14,
                "ich_volume_ml": 15,
                "location": "lobar",
                "max_score": 11,
                "pre_ich_cognitive_impairment": false,
                "score": 11
              }
            ],
            "path": "/api/calc/func_score"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "items": {
                      "properties": {
                        "age": {
                          "description": "Age in years (18-120). <70 scores 2; 70-79 scores 1; ≥80 scores 0.",
                          "type": "integer"
                        },
                        "gcs": {
                          "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.",
                          "type": "integer"
                        },
                        "ich_volume_ml": {
                          "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.",
                          "type": "number"
                        },
                        "location": {
                          "description": "ICH location as assigned by the caller: lobar (2), deep (1), or infratentorial (0). magent does not read a CT scan.",
                          "type": "string"
                        },
                        "pre_ich_cognitive_impairment": {
                          "description": "Pre-ICH cognitive impairment as assigned by the caller. true or false. Absent (false) scores 1; present (true) scores 0.",
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "ich_volume_ml",
                        "age",
                        "location",
                        "gcs",
                        "pre_ich_cognitive_impairment"
                      ],
                      "type": "object"
                    },
                    "maxItems": 25,
                    "minItems": 1,
                    "type": "array"
                  }
                },
                "required": [
                  "items"
                ],
                "type": "object"
              },
              "headers": {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              "method": {
                "const": "POST",
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "func-score",
    "ich",
    "neurology",
    "hemorrhage",
    "calculator",
    "bazaar"
  ],
  "sourceHost": "api.magentlab.com",
  "lastUpdated": "2026-10-13T04:02:27.659Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-13T04:02:27.451Z"
  },
  "metadata": {
    "serviceName": "magent",
    "extensions": {
      "bazaar": {
        "info": {
          "iconUrl": "https://api.magentlab.com/favicon.ico",
          "input": {
            "body": {
              "items": [
                {
                  "age": 60,
                  "gcs": 14,
                  "ich_volume_ml": 15,
                  "location": "lobar",
                  "pre_ich_cognitive_impairment": false
                },
                {
                  "age": 60,
                  "gcs": 14,
                  "ich_volume_ml": 15,
                  "location": "lobar",
                  "pre_ich_cognitive_impairment": false
                }
              ]
            },
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "count": 2,
              "items": [
                {
                  "age_years": 60,
                  "citation": {
                    "authors": "Rost NS, Smith EE, Chang Y, et al.",
                    "doi": "10.1161/STROKEAHA.107.512202",
                    "id": "rost-2008",
                    "pmid": "18556582",
                    "source": "Stroke. 2008;39(8):2304-2309",
                    "title": "Prediction of functional outcome in patients with primary intracerebral hemorrhage: the FUNC score"
                  },
                  "components": [
                    {
                      "factor": "ich_volume_ml",
                      "points": 4,
                      "present": true,
                      "value": 15
                    },
                    {
                      "factor": "age",
                      "points": 2,
                      "present": true,
                      "value": 60
                    },
                    {
                      "factor": "location",
                      "points": 2,
                      "present": true,
                      "value": "lobar"
                    },
                    {
                      "factor": "gcs",
                      "points": 2,
                      "present": true,
                      "value": 14
                    },
                    {
                      "factor": "pre_ich_cognitive_impairment",
                      "points": 1,
                      "present": true,
                      "value": 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.",
                  "formula": "func_score",
                  "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",
                  "func_band": "11",
                  "gcs": 14,
                  "ich_volume_ml": 15,
                  "location": "lobar",
                  "max_score": 11,
                  "pre_ich_cognitive_impairment": false,
                  "score": 11
                },
                {
                  "age_years": 60,
                  "citation": {
                    "authors": "Rost NS, Smith EE, Chang Y, et al.",
                    "doi": "10.1161/STROKEAHA.107.512202",
                    "id": "rost-2008",
                    "pmid": "18556582",
                    "source": "Stroke. 2008;39(8):2304-2309",
                    "title": "Prediction of functional outcome in patients with primary intracerebral hemorrhage: the FUNC score"
                  },
                  "components": [
                    {
                      "factor": "ich_volume_ml",
                      "points": 4,
                      "present": true,
                      "value": 15
                    },
                    {
                      "factor": "age",
                      "points": 2,
                      "present": true,
                      "value": 60
                    },
                    {
                      "factor": "location",
                      "points": 2,
                      "present": true,
                      "value": "lobar"
                    },
                    {
                      "factor": "gcs",
                      "points": 2,
                      "present": true,
                      "value": 14
                    },
                    {
                      "factor": "pre_ich_cognitive_impairment",
                      "points": 1,
                      "present": true,
                      "value": 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.",
                  "formula": "func_score",
                  "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",
                  "func_band": "11",
                  "gcs": 14,
                  "ich_volume_ml": 15,
                  "location": "lobar",
                  "max_score": 11,
                  "pre_ich_cognitive_impairment": false,
                  "score": 11
                }
              ],
              "path": "/api/calc/func_score"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "items": {
                      "items": {
                        "properties": {
                          "age": {
                            "description": "Age in years (18-120). <70 scores 2; 70-79 scores 1; ≥80 scores 0.",
                            "type": "integer"
                          },
                          "gcs": {
                            "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.",
                            "type": "integer"
                          },
                          "ich_volume_ml": {
                            "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.",
                            "type": "number"
                          },
                          "location": {
                            "description": "ICH location as assigned by the caller: lobar (2), deep (1), or infratentorial (0). magent does not read a CT scan.",
                            "type": "string"
                          },
                          "pre_ich_cognitive_impairment": {
                            "description": "Pre-ICH cognitive impairment as assigned by the caller. true or false. Absent (false) scores 1; present (true) scores 0.",
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "ich_volume_ml",
                          "age",
                          "location",
                          "gcs",
                          "pre_ich_cognitive_impairment"
                        ],
                        "type": "object"
                      },
                      "maxItems": 25,
                      "minItems": 1,
                      "type": "array"
                    }
                  },
                  "required": [
                    "items"
                  ],
                  "type": "object"
                },
                "headers": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "method": {
                  "const": "POST",
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.magentlab.com",
    "manifest_name": "api.magentlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}