# magent PARS – Pediatric Asthma Risk Score Calculator

> magent PARS – Pediatric Asthma Risk Score 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 Biagini Myers 2019 Pediatric Asthma Risk Score (PARS) and returns the predicted probability of asthma by age 7 as an integer percent

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/pars
- 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-pars-pediatric-asthma-risk-score-calculator-429bc36d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_l0B_A4Q02BTZO0vQkvjLR

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-pars-pediatric-asthma-risk-score-calculator-429bc36d
```

Example prompt: Calculate the Pediatric Asthma Risk Score for a child who has parental asthma, had eczema before age 3, wheezes apart from colds, wheezed before age 3, is caller-assigned African American, and whose skin prick test was positive to 2 or more allergens — all six risk factors are true.

## When to prefer this

Use this endpoint when you need to apply the published Biagini Myers 2019 Table III weights to compute PARS and look up the Figure E1 asthma probability, and you have already gathered all six boolean clinical flags from your own clinical assessment. Prefer this over manual arithmetic to guarantee the exact published integer rounding and Figure E1 lookup. Not appropriate as a substitute for clinical diagnosis, SPT, physical examination, or family history taking — the caller must supply all flags.

## Known failure modes

- Missing one or more required boolean query parameters returns a validation error
- Invalid non-boolean values for flag parameters cause a 400 error
- Score of 1 or 13 is unattainable by definition and will not be returned
- Payment failure or missing x402 payment header results in 402 Payment Required
- Network timeouts if the API is temporarily unreachable

## How this service works

Biagini Myers 2019 Pediatric Asthma Risk Score (PARS). Table III weights (OR rounded to nearest integer): parental asthma 2, eczema before age 3 2, wheezing apart from colds 3, wheezing before age 3 3, caller-assigned African American race 2, SPT ≥2 aeroallergens and/or food allergens 2. Max 14. Fig E1 predicted asthma by age 7 as an integer percent. Scores 1 and 13 are unattainable. Not API or mAPI. Not a diagnosis. magent does not assign race and does not perform SPT.

## Output

Returns a JSON object containing the computed PARS total score (0–14, with 1 and 13 being unattainable) and the predicted probability of asthma by age 7 as an integer percentage derived from Biagini Myers 2019 Figure E1. Not a diagnosis.

## 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": [
      "parental_asthma",
      "eczema_before_age_3",
      "wheezing_apart_from_colds",
      "wheezing_before_age_3",
      "african_american",
      "spt_ge_2"
     ],
     "properties": {
      "spt_ge_2": {
       "type": "boolean",
       "description": "Skin prick test positive to ≥2 aeroallergens and/or food allergens as assigned by the caller (Biagini Myers 2019 Table III). true scores 2. magent does not perform SPT. true or false."
      },
      "parental_asthma": {
       "type": "boolean",
       "description": "Parental asthma as assigned by the caller (Biagini Myers 2019 Table III). true scores 2. magent does not take a family history. true or false."
      },
      "african_american": {
       "type": "boolean",
       "description": "Caller-assigned African American race as used in Biagini Myers 2019 Table III. true scores 2. magent does not assign race. true or false."
      },
      "eczema_before_age_3": {
       "type": "boolean",
       "description": "Eczema before age 3 years as assigned by the caller (Biagini Myers 2019 Table III). true scores 2. magent does not examine the child. true or false."
      },
      "wheezing_before_age_3": {
       "type": "boolean",
       "description": "Wheezing before age 3 years as assigned by the caller (Biagini Myers 2019 Table III). true scores 3. magent does not auscultate. true or false."
      },
      "wheezing_apart_from_colds": {
       "type": "boolean",
       "description": "Wheezing apart from colds as assigned by the caller (Biagini Myers 2019 Table III). true scores 3. magent does not auscultate. true or false."
      }
     }
    }
   },
   "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/magent-pars-pediatric-asthma-risk-score-calculator-429bc36d/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)
