# magent Cerebral Perfusion Pressure (CPP) Calculator

> magent Cerebral Perfusion Pressure (CPP) 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-16).

Calculates cerebral perfusion pressure (CPP) from caller-supplied mean arterial pressure (MAP) and intracranial pressure (ICP) using CPP = MAP − ICP, and flags whether CPP meets the Rosner 1995 protocol minimum of 70 mm Hg.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/cpp
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/magent-cerebral-perfusion-pressure-cpp-calculator-b02db5f3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LSGN7zO-Mxn2iwmVg9M72

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-cerebral-perfusion-pressure-cpp-calculator-b02db5f3
```

Example prompt: Calculate the cerebral perfusion pressure for a patient with a mean arterial pressure of 85 mm Hg and an intracranial pressure of 18 mm Hg, and tell me whether the CPP meets the Rosner 1995 minimum of 70 mm Hg.

## When to prefer this

Choose this endpoint when you need a fast, deterministic arithmetic computation of CPP from already-known MAP and ICP values, particularly in automated pipelines, agent workflows, or clinical documentation tools that require the Rosner 1995 threshold flag (cpp_ge_70). It is not appropriate when MAP or ICP values are unknown — this endpoint does not measure or estimate those values.

## Known failure modes

- MAP value outside the accepted range of 30–180 mm Hg returns a validation error
- ICP value outside the accepted range of 0–100 mm Hg returns a validation error
- Missing required query parameters (map_mm_hg or icp_mm_hg) returns a 400-level error
- Non-numeric input for MAP or ICP causes a schema validation failure
- Payment failure (x402) prevents the calculation from being returned

## How this service works

Cerebral perfusion pressure from caller-supplied MAP and ICP in mm Hg: CPP = MAP − ICP, rounded to 1 decimal. Returns cpp_ge_70 when CPP is at least 70 mm Hg (Rosner 1995 protocol minimum). magent does not measure MAP or ICP and is not an invasive monitor. Not a medical device and not a treatment protocol.

## Output

Returns the calculated CPP value in mm Hg rounded to one decimal place, along with a boolean field cpp_ge_70 indicating whether the CPP is at or above the Rosner 1995 protocol minimum of 70 mm Hg.

## 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": [
      "map_mm_hg",
      "icp_mm_hg"
     ],
     "properties": {
      "icp_mm_hg": {
       "type": "number",
       "description": "Intracranial pressure in mm Hg (0-100). Caller-supplied; magent does not measure ICP. ICP may exceed MAP."
      },
      "map_mm_hg": {
       "type": "number",
       "description": "Mean arterial pressure in mm Hg (30-180). Caller-supplied; magent does not measure MAP."
      }
     }
    }
   },
   "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-cerebral-perfusion-pressure-cpp-calculator-b02db5f3/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)
