# PHASES Score Calculator (Greving 2014) – Unruptured Intracranial Aneurysm Rupture Risk

> PHASES Score Calculator (Greving 2014) – Unruptured Intracranial Aneurysm Rupture Risk 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 Greving 2014 PHASES score and 5-year rupture risk percentage for an unruptured intracranial aneurysm based on six caller-assigned clinical inputs.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/phases
- 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/phases-score-calculator-greving-2014-unruptured-intracranial-aneurysm-398cd256
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_y4J6M0xthr-KxR65P8BUq

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 phases-score-calculator-greving-2014-unruptured-intracranial-aneurysm-398cd256
```

Example prompt: Calculate the PHASES score for a 68-year-old patient with hypertension, no prior subarachnoid hemorrhage, a 12mm aneurysm at the MCA, using the North America/Europe population group — what's their 5-year rupture risk?

## When to prefer this

Use this endpoint when you need a validated, evidence-based 5-year rupture risk estimate for an unruptured intracranial aneurysm following the Greving 2014 PHASES methodology. It is specifically appropriate when the caller can supply all six PHASES inputs (population group, hypertension, age, aneurysm size, prior SAH, site) as discrete values rather than raw clinical notes or imaging. Prefer this over generic risk calculators when the clinical context is neurovascular and the Greving 2014 PHASES rubric is the accepted institutional standard.

## Known failure modes

- Missing required query parameters (population, hypertension, age, aneurysm_mm, earlier_sah, site) returns a 400 error
- Invalid enum value for population or site returns a validation error
- aneurysm_mm outside the accepted range (1.0–50.0) may return an error or be clamped
- age outside integer range 18–120 may be rejected
- Network or payment authorization failure (x402) prevents score retrieval

## How this service works

Greving 2014 PHASES 5-year rupture risk for an unruptured intracranial aneurysm. Caller assigns population (north_america_europe 0, japanese 3, finnish 5), hypertension (1), age >=70 (1), size mm (<7 0, 7.0-9.9 3, 10.0-19.9 6, >=20 10), earlier SAH (1), and site (ica 0, mca 2, aca_pcom_posterior 4). Returns points (max 22) and grouped 5-year risk percent. Not a treatment order or PHASES of care. magent does not assign ancestry or read imaging.

## Output

Returns the total PHASES integer score (0–22) derived from the six weighted inputs, plus the corresponding grouped 5-year rupture risk percentage as defined by Greving 2014. Does not produce treatment recommendations or imaging interpretation.

## 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": [
      "population",
      "hypertension",
      "age",
      "aneurysm_mm",
      "earlier_sah",
      "site"
     ],
     "properties": {
      "age": {
       "type": "integer",
       "description": "Age in years (integer 18-120). <70 scores 0; ≥70 scores 1 (Greving 2014)."
      },
      "site": {
       "type": "string",
       "description": "Caller-assigned aneurysm site as grouped in Greving 2014: ica (0), mca (2), or aca_pcom_posterior (4; anterior cerebral, anterior communicating, posterior communicating, or posterior circulation). magent does not read imaging."
      },
      "population": {
       "type": "string",
       "description": "Caller-assigned Greving 2014 geographic study population: north_america_europe (0; North America and Europe other than Finland), japanese (3), or finnish (5). magent does not assign ancestry."
      },
      "aneurysm_mm": {
       "type": "number",
       "description": "Caller-assigned maximum aneurysm diameter in millimetres (1.0-50.0). <7.0 scores 0; 7.0-9.9 scores 3; 10.0-19.9 scores 6; ≥20.0 scores 10. magent does not read imaging."
      },
      "earlier_sah": {
       "type": "boolean",
       "description": "Earlier subarachnoid hemorrhage from another aneurysm (Greving 2014). true scores 1. Not a diagnosis of current rupture."
      },
      "hypertension": {
       "type": "boolean",
       "description": "Caller-assigned history of hypertension (Greving 2014). true scores 1. magent does not take a blood-pressure reading."
      }
     }
    }
   },
   "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/phases-score-calculator-greving-2014-unruptured-intracranial-aneurysm-398cd256/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)
