{"uid":"cap_nDxOHovN37zoX4uIBZaIf","slug":"magent-scap-severity-classifier-espa-a-2006-51608e69","name":"magent SCAP Severity Classifier (España 2006)","description":"España 2006 SCAP. Eight caller-assigned flags: two major (arterial pH <7.30, SBP <90 mm Hg) and six minor (RR >30, altered mental status, BUN >30 mg/dL, hypoxemia as PaO2 <54 mm Hg or PaO2/FiO2 <250, age ≥80, multilobar or bilateral). Severe if 1 major or ≥2 minor. One point per true predictor (max 8). Not a diagnosis, not an ICU-admission order, not CURB-65, not PSI/PORT, not SMART-COP.","url":"https://api.magentlab.com/api/calc/scap","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":["ph_lt_7_30","sbp_lt_90","respiratory_rate_gt_30","altered_mental_status","bun_gt_30_mg_dl","hypoxemia","age_ge_80","multilobar_or_bilateral"],"properties":{"age_ge_80":{"type":"boolean","description":"Age ≥80 years (España 2006 minor). true or false as assigned by the caller. magent does not compute age."},"hypoxemia":{"type":"boolean","description":"Hypoxemia as PaO2 <54 mm Hg or PaO2/FiO2 <250 (España 2006 minor), as assigned by the caller. true or false. magent does not measure PaO2 or FiO2."},"sbp_lt_90":{"type":"boolean","description":"Systolic blood pressure <90 mm Hg (España 2006 major). true or false as assigned by the caller. magent does not measure blood pressure."},"ph_lt_7_30":{"type":"boolean","description":"Arterial pH <7.30 (España 2006 major). true or false as assigned by the caller. magent does not measure pH."},"bun_gt_30_mg_dl":{"type":"boolean","description":"Blood urea nitrogen >30 mg/dL (España 2006 minor). true or false as assigned by the caller. magent does not convert urea or measure BUN."},"altered_mental_status":{"type":"boolean","description":"Altered mental status (España 2006 minor). true or false as assigned by the caller. magent does not assess mental status."},"respiratory_rate_gt_30":{"type":"boolean","description":"Respiratory rate >30 breaths/min (España 2006 minor; strict greater-than, not ≥30). true or false as assigned by the caller. magent does not measure respiratory rate."},"multilobar_or_bilateral":{"type":"boolean","description":"Multilobar or bilateral lung involvement (España 2006 minor). true or false as assigned by the caller. magent does not interpret radiographs."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_Ku0ilQxt8askbp71ICGDu","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":"Computes the España 2006 SCAP (Severe Community-Acquired Pneumonia) score from eight caller-assigned clinical flags and returns a severity classification and total score.","exampleAgentPrompt":"Score this CAP patient using the España 2006 SCAP criteria: arterial pH is not below 7.30, SBP is not below 90, respiratory rate is above 30, mental status is altered, BUN is above 30 mg/dL, no hypoxemia, age is 72 (not ≥80), and imaging shows multilobar involvement — is this severe?","exampleUseCases":[{"title":"ED triage for CAP severity","prompt":"I have a community-acquired pneumonia patient in the ED: pH 7.25 (below 7.30), SBP is 85 (below 90), respiratory rate is 28 (not above 30), no altered mental status, BUN is 25 (not above 30), no hypoxemia, age is 65 (not ≥80), and chest X-ray shows unilateral single-lobe involvement. Run the España 2006 SCAP score and tell me if this patient qualifies as severe."},{"title":"Ward vs ICU pneumonia decision support","prompt":"Help me stratify this pneumonia patient: pH is normal (not below 7.30), SBP is fine (not below 90), respiratory rate is 32 breaths per minute (above 30), patient is confused (altered mental status), BUN is 35 mg/dL (above 30), PaO2/FiO2 ratio is 220 so hypoxemia is true, age is 82 (≥80), and CT shows bilateral infiltrates — compute the SCAP score and severity."},{"title":"Clinical audit SCAP documentation","prompt":"For this admitted CAP patient's chart, calculate the España 2006 SCAP score: no acidosis (pH not below 7.30), blood pressure stable (SBP not below 90), respiratory rate is 29 (not above 30), no altered mental status, BUN is 20 (not above 30), no hypoxemia, age is 55 (not ≥80), and chest imaging shows multilobar disease — what's the total score and is it severe?"}],"resultDescription":"Returns a SCAP total score (integer 0–8, one point per true flag), a severity classification indicating whether the patient meets España 2006 severe CAP criteria (1 major criterion or ≥2 minor criteria), and the breakdown of major vs minor criteria that were flagged true.","failureModes":["Missing required query parameters — all eight boolean flags are required; omitting any returns an error","Invalid parameter types — non-boolean values for any flag cause a validation error","Network or service unavailability returns an HTTP 5xx error","Payment failure or missing x402 payment header may block the request"],"whenToPreferThis":"Choose this endpoint when you need to apply the España 2006 SCAP criteria specifically — particularly when you want a score distinct from CURB-65 or PSI/PORT, when your clinical context involves two-tier major/minor criteria weighting, or when downstream documentation requires España 2006 compliance. Not suitable as a substitute for CURB-65 or PSI, and not a replacement for physician clinical judgment or an ICU admission order.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T13:09:20.964Z","isFirstParty":false}