# BeAM Calculator (Zisman 2016)

> BeAM Calculator (Zisman 2016) 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).

Calculates the BeAM score (bedtime minus pre-breakfast AM glucose in mg/dL) and returns the published Zisman 2016 analysis band (<0, 0–50, >50).

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/beam
- 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/beam-calculator-zisman-2016-31daba99
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RRblO2z6zEy6MCvEWflJZ

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 beam-calculator-zisman-2016-31daba99
```

Example prompt: My bedtime glucose was 165 mg/dL and my fasting pre-breakfast glucose this morning was 110 mg/dL — can you calculate my BeAM score and tell me which Zisman 2016 band it falls into?

## When to prefer this

Choose this endpoint when you need to compute the standardized BeAM metric exactly as defined by Zisman 2016, including proper band classification at 0 and 50 thresholds. It handles mixed units (mg/dL and mmol/L independently per measurement), making it useful when patient data comes from different device systems. Prefer it over manual subtraction when you need a validated, auditable clinical calculation with the published band label attached.

## Known failure modes

- Missing both bedtime glucose inputs — requires either bedtime_glucose_mg_dl or bedtime_glucose_mmol_l
- Missing both AM glucose inputs — requires either am_glucose_mg_dl or am_glucose_mmol_l
- Both unit variants provided for the same measurement (e.g. both mg/dL and mmol/L for bedtime) — only one should be supplied
- Glucose value out of accepted range (40–600 mg/dL / 2.2–33.3 mmol/L) — may return validation error
- Payment not included or rejected — x402 payment required at $0.005 USDC per call

## How this service works

BeAM (bedtime minus pre-breakfast glucose) in mg/dL from Zisman 2016. Provide bedtime_glucose_mg_dl or bedtime_glucose_mmol_l independently of AM, and am_glucose_mg_dl or am_glucose_mmol_l. mmol/L converts as mg/dL = mmol/L × 18. Returns beam_mg_dl (1 decimal) and the published analysis band (<0, 0-50, >50). 0 and 50 are 0-50. Does not use a 45 or 55 cutoff, order prandial insulin, or diagnose diabetes.

## Output

Returns beam_mg_dl rounded to one decimal place (bedtime glucose minus AM glucose), along with the Zisman 2016 analysis band classification: less than 0, 0–50 (inclusive of 0 and 50), or greater than 50.

## 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": [],
     "properties": {
      "am_glucose_mg_dl": {
       "type": "number",
       "description": "Pre-breakfast (AM) glucose in mg/dL (40-600). Provide this or am_glucose_mmol_l, not both. Independent of the bedtime unit."
      },
      "am_glucose_mmol_l": {
       "type": "number",
       "description": "Pre-breakfast (AM) glucose in mmol/L (2.2-33.3). Converted as mg/dL = mmol/L × 18. Provide this or am_glucose_mg_dl, not both."
      },
      "bedtime_glucose_mg_dl": {
       "type": "number",
       "description": "Bedtime glucose in mg/dL (40-600). Provide this or bedtime_glucose_mmol_l, not both. Independent of the AM unit."
      },
      "bedtime_glucose_mmol_l": {
       "type": "number",
       "description": "Bedtime glucose in mmol/L (2.2-33.3). Converted as mg/dL = mmol/L × 18 (same factor as HOMA-IR). Provide this or bedtime_glucose_mg_dl, not both."
      }
     }
    }
   },
   "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/beam-calculator-zisman-2016-31daba99/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)
