# Asthma Predictive Index (Castro-Rodriguez 2000) Calculator

> Asthma Predictive Index (Castro-Rodriguez 2000) 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).

Calculates the Asthma Predictive Index (API) per Castro-Rodriguez 2000, returning stringent and loose positive/negative classifications based on early wheeze pattern and major/minor risk criteria.

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/asthma_api
- 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/asthma-predictive-index-castro-rodriguez-2000-calculator-985ecfaf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ge8L8_OuK0agDDFZx617u

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 asthma-predictive-index-castro-rodriguez-2000-calculator-985ecfaf
```

Example prompt: Can you calculate the Asthma Predictive Index for a child who is a frequent early wheezer — their parent has physician-diagnosed asthma, they have physician-diagnosed eczema, physician-diagnosed allergic rhinitis, they do wheeze apart from colds, and their eosinophils are not above 4%?

## When to prefer this

Use this endpoint when you need a structured, reproducible calculation of the Castro-Rodriguez 2000 Asthma Predictive Index (stringent and loose) for a child based on pre-assigned clinical data. Prefer it over manual lookup when building clinical decision support workflows or automated pediatric risk scoring pipelines. Note that this is a scoring tool, not a diagnostic device — the caller must supply clinician-assigned values; the API does not examine patients or interpret raw lab results.

## Known failure modes

- Missing required query parameters (wheeze, parental_md_asthma, md_eczema, md_allergic_rhinitis, wheezing_apart_from_colds, eosinophilia_gt_4pct) returns a 400 error
- Invalid enum value for 'wheeze' (must be none, any, or frequent) returns a validation error
- Payment not provided or insufficient funds returns 402 Payment Required
- Service unavailable or timeout returns 5xx error

## How this service works

Asthma Predictive Index (Castro-Rodriguez 2000, Tucson Children's Respiratory Study). Stringent positive if early frequent wheeze (parent frequency scale > 3) plus 1+ major or 2+ minor criteria. Loose positive if any early wheeze plus the same risk factors. Majors: parental MD asthma, MD eczema. Minors: MD allergic rhinitis, wheezing apart from colds, circulating eosinophils >4% of WBC (caller-assigned). Not mAPI. Not an asthma diagnosis. magent does not examine the child. Not a medical device.

## Output

Returns a structured result indicating whether the child meets the stringent positive API (frequent early wheeze plus ≥1 major or ≥2 minor criteria), loose positive API (any early wheeze plus the same risk factor thresholds), or neither, along with which major and minor criteria were satisfied.

## 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": [
      "wheeze",
      "parental_md_asthma",
      "md_eczema",
      "md_allergic_rhinitis",
      "wheezing_apart_from_colds",
      "eosinophilia_gt_4pct"
     ],
     "properties": {
      "wheeze": {
       "enum": [
        "none",
        "any",
        "frequent"
       ],
       "type": "string",
       "description": "Early-wheeze class from Castro-Rodriguez 2000. none = not an early wheezer; any = early wheezer (chest ever sounded wheezy in the first 3 years); frequent = early frequent wheezer (parent frequency scale > 3). Loose index requires any or frequent. Stringent index requires frequent."
      },
      "md_eczema": {
       "type": "boolean",
       "description": "Physician-diagnosed eczema as assigned by the caller. true or false. Major criterion (Castro-Rodriguez 2000 Table 1). magent does not examine the child."
      },
      "parental_md_asthma": {
       "type": "boolean",
       "description": "Parental physician-diagnosed asthma as assigned by the caller. true or false. Major criterion (Castro-Rodriguez 2000 Table 1). magent does not take a family history."
      },
      "eosinophilia_gt_4pct": {
       "type": "boolean",
       "description": "Circulating eosinophils >4% of WBC as assigned by the caller (Castro-Rodriguez 2000 Table 1). true or false. Minor criterion. magent does not take an eosinophil percent and does not interpret a CBC."
      },
      "md_allergic_rhinitis": {
       "type": "boolean",
       "description": "Physician-diagnosed allergic rhinitis as assigned by the caller. true or false. Minor criterion (Castro-Rodriguez 2000 Table 1). magent does not examine the child."
      },
      "wheezing_apart_from_colds": {
       "type": "boolean",
       "description": "Wheezing apart from colds as assigned by the caller. true or false. Minor criterion (Castro-Rodriguez 2000 Table 1). magent does not auscultate."
      }
     }
    }
   },
   "addition
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/asthma-predictive-index-castro-rodriguez-2000-calculator-985ecfaf/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)
