{"uid":"cap_Y5QttryWQ5FgqwMTgmPif","slug":"magent-air-score-calculator-8191cf3d","name":"Magent AIR Score Calculator","description":"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.","url":"https://api.magentlab.com/api/calc/air","method":"GET","headers":{},"bodySchema":{"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":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"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,"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"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_x4s8aaFMMAVa1llB2hI21","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the Andersson 2008 Appendicitis Inflammatory Response (AIR) score (0–12) from clinical and lab inputs to risk-stratify suspected appendicitis","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"ED triage for suspected appendicitis","prompt":"I have a patient in the ED with right lower quadrant pain, no vomiting, light guarding, temperature 38.2°C, WBC 11.5 thousand per µL, neutrophil percent 72%, and CRP 18 mg/L — can you calculate their AIR score and tell me which risk band they fall into?"},{"title":"Pre-surgical risk stratification","prompt":"Before deciding on surgical referral, calculate the AIR score for this patient: vomiting present, right iliac fossa pain yes, strong rebound tenderness, temperature 39.1°C, WBC 16.8k/µL, neutrophils 88%, CRP 62 mg/L."},{"title":"Automated lab-result scoring","prompt":"I just got back lab results — WBC 9.8 ×10³/µL, neutrophil percent 65%, CRP 7 mg/L, temperature 37.4°C, no vomiting, no right iliac fossa pain, no rebound or guarding. Run the Andersson AIR score for me."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:17:02.178Z","isFirstParty":false}