# Magent AIR Score Calculator

> Magent AIR 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).

Calculates the Andersson 2008 Appendicitis Inflammatory Response (AIR) score (0–12) from clinical and lab inputs to risk-stratify suspected appendicitis

## Facts

- Endpoint: GET https://api.magentlab.com/api/calc/air
- 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-air-score-calculator-8191cf3d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y5QttryWQ5FgqwMTgmPif

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-air-score-calculator-8191cf3d
```

Example prompt: Calculate the AIR score for a patient who has vomiting, right iliac fossa pain, medium rebound tenderness, temperature of 38.7°C, WBC of 13.2 ×10³/µL, neutrophil percent of 78%, and CRP of 42 mg/L.

## When to prefer this

Use this endpoint when you need a deterministic, citable implementation of the Andersson 2008 AIR score specifically — not a generic appendicitis risk heuristic. Prefer it over manual calculation to avoid arithmetic error and to get structured band classification. It is not a substitute for clinical examination or imaging, and the caller must supply the rebound/guarding severity since this service cannot examine the patient.

## Known failure modes

- Missing required parameters (vomiting, rif_pain, rebound_or_guarding, temperature_c, neutrophil_percent, crp_mg_l) returns a validation error
- Neither wbc_k_ul nor wbc_ul provided may cause an error or default scoring
- Temperature out of range (30–45°C) rejected as invalid
- CRP value provided in mg/dL instead of mg/L produces incorrect score silently
- neutrophil_percent or crp_mg_l outside valid ranges (0–100, 0–500) may be rejected
- Payment failure (x402) if insufficient USDC balance

## How this service works

Andersson 2008 appendicitis inflammatory response (AIR) score from caller-assigned vomiting, right-iliac-fossa pain, rebound or guarding (none/light/medium/strong), temperature, WBC, neutrophil percent, and CRP in mg/L (max 12). Bands 0-4, 5-8, and 9-12. Deterministic published score with citation; not a diagnosis or operating-room protocol. magent does not examine the abdomen.

## Output

Returns the total AIR score (integer 0–12), the risk band it falls into (low 0–4, intermediate 5–8, high 9–12), and a citation to the Andersson 2008 publication. Does not provide a diagnosis or surgical recommendation.

## 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": [
      "vomiting",
      "rif_pain",
      "rebound_or_guarding",
      "temperature_c",
      "neutrophil_percent",
      "crp_mg_l"
     ],
     "properties": {
      "wbc_ul": {
       "type": "number",
       "description": "WBC in cells/µL (same as cells/mm^3). Provide wbc_k_ul or wbc_ul. Range 10-500000. Converted to ×10^9/L (= wbc_ul/1000): <10 scores 0; 10.0-14.9 scores 1; ≥15.0 scores 2."
      },
      "crp_mg_l": {
       "type": "number",
       "description": "C-reactive protein in mg/L (0-500), not mg/dL. <10 scores 0; 10-49 scores 1; ≥50 scores 2 (9.9 does not; 10 and 49 score 1; 50 scores 2)."
      },
      "rif_pain": {
       "type": "boolean",
       "description": "Pain in the right iliac fossa / right lower quadrant (Andersson 2008). true scores 1; false scores 0."
      },
      "vomiting": {
       "type": "boolean",
       "description": "Vomiting (Andersson 2008). true scores 1; false scores 0."
      },
      "wbc_k_ul": {
       "type": "number",
       "description": "WBC in 10^3/µL (same as 10^9/L). Provide wbc_k_ul or wbc_ul. Range 0.01-500. Converted to ×10^9/L: <10 scores 0; 10.0-14.9 scores 1; ≥15.0 scores 2."
      },
      "temperature_c": {
       "type": "number",
       "description": "Temperature in °C (30.0-45.0). ≥38.5 scores 1 (38.5 scores; 38.49 does not)."
      },
      "neutrophil_percent": {
       "type": "number",
       "description": "Neutrophil percent (0-100). <70 scores 0; 70-84 scores 1; ≥85 scores 2 (69.9 does not; 70 and 84 score 1; 85 scores 2)."
      },
      "rebound_or_guarding": {
       "enum": [
        "none",
        "light",
        "medium",
        "strong"
       ],
       "type": "string",
       "description": "Caller-assigned rebound tenderness or muscular guarding (Andersson 2008). none scores 0; light 1; medium 2; strong 3. magent does not examine the abdomen."
      }
     }
    }
   },
   "additionalProperties": fals
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "path": "/api/calc/air",
  "count": 2,
  "items": [
   {
    "score": 0,
    "wbc_ul": 8000,
    "formula": "air",
    "air_band": "0-4",
    "citation": {
     "id": "andersson-2008",
     "doi": "10.1007/s00268-008-9649-y",
     "pmid": "18553045",
     "title": "The appendicitis inflammatory response score: a tool for the diagnosis of acute appendicitis that outperforms the Alvarado score",
     "source": "World J Surg. 2008;32(8):1843-1849",
     "authors": "Andersson M, Andersson RE"
    },
    "crp_mg_l": 5,
    "rif_pain": false,
    "vomiting": false,
    "max_score": 12,
    "components": [
     {
      "factor": "vomiting",
      "points": 0,
      "present": false
     },
     {
      "factor": "rif_pain",
      "points": 0,
      "present": false
     },
     {
      "value": "none",
      "factor": "rebound_or_guarding",
      "points": 0,
      "present": false
     },
     {
      "value": 37,
      "factor": "temperature_c",
      "points": 0,
      "present": false
     },
     {
      "value": 8000,
      "factor": "wbc",
      "points": 0,
      "present": false
     },
     {
      "value": 60,
      "factor": "neutrophil_percent",
      "points": 0,
      "present": false
     },
     {
      "value": 5,
      "factor": "crp_mg_l",
      "points": 0,
      "present": false
     }
    ],
    "disclaimer": "Not a medical device. Deterministic published-formula or published-code output for autonomous agents. A licensed clinician remains responsible for patient care and billing submissions.",
    "wbc_10e9_l": 8,
    "temperature_c": 37,
    "formula_expression": "AIR = vomiting + rif_pain + rebound_or_guarding (none 0, light 1, medium 2, strong 3) + (temperature_c >= 38.5) + WBC 10^9/L (<10 → 0; 10.0–14.9 → 1; ≥15.0 → 2) + neutrophil_percent (<70 → 0; 70–84 → 1; ≥85 → 2) + crp_mg_l (<10 → 0; 10–49 → 1; ≥50 → 2); max 12; bands 0-4 / 5-8 / 9-12",
    "neutrophil_percent": 60,
    "rebound_or_guarding": "none"
   },
   {
    "score": 0,
    "wbc_ul": 8000,
    "formula": "air",
    "air_band": "0-4",
    "citation": {
     "id": "andersson-2008",
     "doi": "10.1007/s00268-008-9649-y",
     "pmid": "18553045",
     "title": "The appendicitis inflammatory response score: a tool for the diagnosis of acute appendicitis that outperforms the Alvarado score",
     "source": "World J Surg. 2008;32(8):1843-1849",
     "authors": "Andersson M, Andersson RE"
    },
    "crp_mg_l": 5,
    "rif_pain": false,
    "vomi
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/magent-air-score-calculator-8191cf3d/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)
