# BRUE Calculator (Tieder 2016)

> BRUE Calculator (Tieder 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-14).

Evaluates whether an infant episode meets the AAP 2016 BRUE (Brief Resolved Unexplained Event) criteria based on seven caller-assigned flags

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/brue
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brue-calculator-tieder-2016-1bbb0c53
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1SAzR8MexXiHyz4ZEXv8q

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 brue-calculator-tieder-2016-1bbb0c53
```

Example prompt: Check if this baby's episode meets BRUE criteria: the infant is under 1 year old, the episode was sudden, brief, and fully resolved, there's no explanation after history and exam, and during the event there was cyanosis and absent breathing but no tone change or altered responsiveness.

## When to prefer this

Use this endpoint when you need a fast, deterministic computation of whether a clinical presentation meets the AAP 2016 BRUE definition (Tieder et al.), and you have already gathered all seven clinical flags from history and physical examination. This is not a substitute for clinical judgment and does not perform its own examination. Prefer this over manual checklist application when integrating into an EHR workflow, a clinical decision support agent, or a documentation tool that needs to programmatically classify infant episodes.

## Known failure modes

- Missing required query parameters returns an error
- All four event feature flags set to false still evaluates but brue may be false due to absence of required feature
- unexplained_after_history_exam=false forces brue=false regardless of other flags
- age_under_1_year=false forces brue=false
- Caller assigns flags incorrectly — endpoint accepts any boolean values without clinical validation

## How this service works

BRUE (Tieder 2016 AAP). brue is true iff the infant is younger than 1 year, the episode was sudden, brief, and now resolved, no explanation remains after appropriate history and physical examination, and at least one of: cyanosis or pallor; absent, decreased, or irregular breathing; marked change in tone; altered level of responsiveness. feature_count is 0-4. Caller assigns seven flags. magent does not examine the infant. Not a diagnosis, not ALTE, not SIDS.

## Output

Returns a 'brue' boolean indicating whether all BRUE criteria are met, and a 'feature_count' integer (0–4) counting how many of the four event features (cyanosis/pallor, absent/decreased/irregular breathing, marked tone change, altered responsiveness) are present. Does not provide diagnosis, risk stratification, or management recommendations.

## 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_under_1_year",
      "sudden_brief_now_resolved",
      "cyanosis_or_pallor",
      "absent_decreased_irregular_breathing",
      "marked_tone_change",
      "altered_responsiveness",
      "unexplained_after_history_exam"
     ],
     "properties": {
      "age_under_1_year": {
       "type": "boolean",
       "description": "Infant younger than 1 year as assigned by the caller (Tieder 2016 BRUE definition). true or false. magent does not examine the infant or take an age in days."
      },
      "cyanosis_or_pallor": {
       "type": "boolean",
       "description": "Cyanosis or pallor during the episode (one of four event features; at least one required). true or false as assigned by the caller. magent does not examine the infant."
      },
      "marked_tone_change": {
       "type": "boolean",
       "description": "Marked change in tone (hyper- or hypotonia) during the episode (one of four event features; at least one required). true or false as assigned by the caller."
      },
      "altered_responsiveness": {
       "type": "boolean",
       "description": "Altered level of responsiveness during the episode (one of four event features; at least one required). true or false as assigned by the caller."
      },
      "sudden_brief_now_resolved": {
       "type": "boolean",
       "description": "Observer reports a sudden, brief, and now resolved episode as assigned by the caller. true or false. magent does not take a history."
      },
      "unexplained_after_history_exam": {
       "type": "boolean",
       "description": "No explanation remains after appropriate history and physical examination as assigned by the caller. true means unexplained and is required for BRUE. true or false. magent does not examine the infant."
      },
      "absent_decreased_irregular_breathing": {
       "type": "boolean",
       "description": "Absent, decreased, or irregular breathing during 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brue-calculator-tieder-2016-1bbb0c53/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)
