# magent BRUE Serious Diagnosis & Recurrence Risk Calculator (Nama 2022)

> magent BRUE Serious Diagnosis & Recurrence Risk Calculator (Nama 2022) 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 logistic probabilities of a serious underlying diagnosis and of event recurrence after a brief resolved unexplained event (BRUE) using Nama 2022 Supplemental Table 7 predictors including age, history, prematurity, and event characteristics.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/brue_2
- 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-brue-serious-diagnosis-recurrence-risk-calculator-nama-2022-5e013326
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ATWUfPO9lpAWdpTIqWAMW

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-brue-serious-diagnosis-recurrence-risk-calculator-nama-2022-5e013326
```

Example prompt: Calculate the BRUE serious-diagnosis and recurrence probabilities using the Nama 2022 model for a 45-day-old infant who was born premature (under 32 weeks), has no history of a similar event, no abnormal medical history, no event clusters, had color change (pallor) during the event, had abnormal breathing, and had no tone change.

## When to prefer this

Use this endpoint when you need a standardized, evidence-based logistic probability estimate for BRUE serious underlying diagnosis or recurrence risk based on the Nama 2022 Supplemental Table 7 model. Prefer it over manual coefficient lookup when integrating BRUE risk scoring into an automated clinical workflow or agent pipeline. This is the correct endpoint when all eight Nama 2022 predictor flags are available and you need both serious-diagnosis and recurrence probabilities in a single call.

## Known failure modes

- Missing required query parameters (age_days, history_of_similar_event, abnormal_medical_history, prematurity, history_of_event_clusters, color_change, abnormal_respiratory_pattern, tone_change) returns a 400 error
- age_days outside 0-364 range may return a validation error or out-of-model-scope warning
- Boolean parameters passed as strings rather than true/false may cause parsing errors
- Payment failure (x402) if USDC balance is insufficient

## How this service works

Nama 2022 Supplemental Table 7 logistic probabilities of a serious underlying diagnosis and of event recurrence after a brief resolved unexplained event from age in days, similar-event history, abnormal medical history, prematurity, event clusters, color change, abnormal breathing, and tone change. Returns logits and percents from the unrounded logits. Not a medical device. No admission cutoff. magent does not examine the infant.

## Output

Returns the serious-diagnosis logit and its corresponding percentage probability, plus the event-recurrence logit and its corresponding percentage probability, both derived from the unrounded Nama 2022 Supplemental Table 7 logistic regression coefficients. Not a medical device and provides no admission cutoff.

## 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": [
      "age_days",
      "history_of_similar_event",
      "abnormal_medical_history",
      "prematurity",
      "history_of_event_clusters",
      "color_change",
      "abnormal_respiratory_pattern",
      "tone_change"
     ],
     "properties": {
      "age_days": {
       "type": "integer",
       "description": "Age in days (0-364). Nama 2022 Supplemental Table 7 serious-diagnosis model: +0.0025 per day. Recurrence model does not use age. magent does not examine the infant."
      },
      "prematurity": {
       "type": "boolean",
       "description": "Prematurity as published: born <32 weeks, or born between 32 and 38 weeks and corrected to <45 weeks (Nama 2022 Supplemental Table 7). true or false as assigned by the caller. Recurrence +0.46."
      },
      "tone_change": {
       "type": "boolean",
       "description": "Marked change in tone (hypertonia or hypotonia) during the event (Nama 2022 Supplemental Table 7). true or false as assigned by the caller. Recurrence -0.31."
      },
      "color_change": {
       "type": "boolean",
       "description": "Color change (cyanosis or pallor) during the event (Nama 2022 Supplemental Table 7). true or false as assigned by the caller. Recurrence +0.36. magent does not examine the infant."
      },
      "abnormal_medical_history": {
       "type": "boolean",
       "description": "Abnormal medical history such as previous hospitalization or an underlying medical condition (Nama 2022 Supplemental Table 7). true or false as assigned by the caller. Serious-diagnosis +0.65. Recurrence model does not use this flag."
      },
      "history_of_similar_event": {
       "type": "boolean",
       "description": "History of a similar event before the index presentation (Nama 2022 Supplemental Table 7). true or false as assigned by the caller. Serious-diagnosis +0.56; recurrence +0.58. magent does not examine the infant."
      },
      "history_of
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-brue-serious-diagnosis-recurrence-risk-calculator-nama-2022-5e013326/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)
