# Magent Shock Index Calculator

> Magent Shock Index 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-15).

Computes the Allgöwer-Burri shock index as heart rate divided by systolic blood pressure, returning the ratio rounded to two decimals.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/shock_index
- 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/magent-shock-index-calculator-d18c79b4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZxhfdQLZrVVte6YJ9Db_t

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-shock-index-calculator-d18c79b4
```

Example prompt: Calculate the shock index for a patient with a heart rate of 118 bpm and a systolic blood pressure of 94 mmHg.

## When to prefer this

Choose this endpoint when you need a fast, reproducible, formula-exact implementation of the classic Allgöwer-Burri (1967) shock index — HR/systolic BP — without any interpretation layer. Prefer it when building clinical decision support pipelines that require the raw ratio (not MAP-based or diastolic variants) for downstream logic, audit trails, or documentation. It is the right choice when you need the original published formula specifically, not a modified shock index variant.

## Known failure modes

- Heart rate outside 30–220 bpm range returns a validation error
- Systolic pressure outside 50–250 mmHg range returns a validation error
- Missing required query parameters (heart_rate_bpm or systolic_mm_hg) returns an error
- Non-integer heart_rate_bpm causes a schema validation failure
- Division by zero not possible given minimum systolic constraint of 50 mmHg

## How this service works

Shock index as heart rate in bpm divided by cuff systolic pressure in mm Hg (Allgöwer and Burri 1967). Returns the original ratio rounded to two decimals. Not a shock diagnosis, treatment target, or cutoff, and does not use MAP or diastolic pressure.

## Output

Returns the shock index as a numeric ratio (heart rate in bpm divided by systolic blood pressure in mmHg) rounded to two decimal places. This is the original Allgöwer-Burri (1967) formula value only — not a diagnosis, not a treatment target, and not a threshold-based 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": [
      "heart_rate_bpm",
      "systolic_mm_hg"
     ],
     "properties": {
      "heart_rate_bpm": {
       "type": "integer",
       "description": "Heart rate in beats per minute (integer 30-220)."
      },
      "systolic_mm_hg": {
       "type": "number",
       "description": "Cuff systolic blood pressure in mm Hg (50-250)."
      }
     }
    }
   },
   "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/shock_index",
  "count": 2,
  "items": [
   {
    "formula": "shock_index",
    "citation": {
     "id": "allgower-burri-1967",
     "doi": "10.1055/s-0028-1106070",
     "title": "Shock index",
     "source": "Dtsch Med Wochenschr. 1967;92(43):1947-1950",
     "authors": "Allgöwer M, Burri C"
    },
    "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.",
    "shock_index": 0.67,
    "heart_rate_bpm": 80,
    "systolic_mm_hg": 120,
    "formula_expression": "shock_index = heart_rate_bpm / systolic_mm_hg"
   },
   {
    "formula": "shock_index",
    "citation": {
     "id": "allgower-burri-1967",
     "doi": "10.1055/s-0028-1106070",
     "title": "Shock index",
     "source": "Dtsch Med Wochenschr. 1967;92(43):1947-1950",
     "authors": "Allgöwer M, Burri C"
    },
    "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.",
    "shock_index": 0.67,
    "heart_rate_bpm": 80,
    "systolic_mm_hg": 120,
    "formula_expression": "shock_index = heart_rate_bpm / systolic_mm_hg"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-shock-index-calculator-d18c79b4/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)
