{"uid":"cap_VElua4R3Q2nBUYE_vI9m1","slug":"westley-croup-score-calculator-bb9fd8ed","name":"Westley Croup Score Calculator","description":"Westley 1978 croup score from five caller-assigned signs (consciousness 0/5, cyanosis 0/4/5, stridor 0-2, air entry 0-2, retractions 0-3; max 17). Deterministic published score with citation. Not a diagnosis; magent does not invent total-score severity bands.","url":"https://api.magentlab.com/api/calc/westley_croup","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":["consciousness","cyanosis","stridor","air_entry","retractions"],"properties":{"stridor":{"type":"integer","description":"Stridor: 0 none, 1 with agitation, 2 at rest. Caller-assigned."},"cyanosis":{"type":"integer","description":"Cyanosis: 0 none, 4 with agitation, 5 at rest. Caller-assigned."},"air_entry":{"type":"integer","description":"Air entry: 0 normal, 1 decreased, 2 markedly decreased. Caller-assigned."},"retractions":{"type":"integer","description":"Chest-wall retractions: 0 none, 1 mild, 2 moderate, 3 severe. Caller-assigned."},"consciousness":{"type":"integer","description":"Westley 1978 level of consciousness: 0 normal, 5 disoriented. Caller-assigned."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"path":"/api/calc/westley_croup","count":2,"items":[{"score":2,"formula":"westley_croup","stridor":1,"citation":{"id":"westley-1978","doi":"10.1001/archpedi.1978.02120300044006","title":"Nebulized racemic epinephrine by IPPB for the treatment of croup: a double-blind study","source":"Am J Dis Child. 1978;132(5):484-487","authors":"Westley CR, Cotton EK, Brooks JG"},"cyanosis":0,"air_entry":0,"max_score":17,"components":[{"factor":"consciousness","points":0,"present":false},{"factor":"cyanosis","points":0,"present":false},{"factor":"stridor","points":1,"present":true},{"factor":"air_entry","points":0,"present":false},{"factor":"retractions","points":1,"present":true}],"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.","retractions":1,"consciousness":0,"formula_expression":"Westley = consciousness + cyanosis + stridor + air_entry + retractions; max 17"},{"score":2,"formula":"westley_croup","stridor":1,"citation":{"id":"westley-1978","doi":"10.1001/archpedi.1978.02120300044006","title":"Nebulized racemic epinephrine by IPPB for the treatment of croup: a double-blind study","source":"Am J Dis Child. 1978;132(5):484-487","authors":"Westley CR, Cotton EK, Brooks JG"},"cyanosis":0,"air_entry":0,"max_score":17,"components":[{"factor":"consciousness","points":0,"present":false},{"factor":"cyanosis","points":0,"present":false},{"factor":"stridor","points":1,"present":true},{"factor":"air_entry","points":0,"present":false},{"factor":"retractions","points":1,"present":true}],"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.","retractions":1,"consciousness":0,"formula_expression":"Westley = consciousness + cyanosis + stridor + air_entry + retractions; max 17"}]}},"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_vZvzeWUTCfhOKY4uSNafX","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 Westley 1978 croup severity score (0–17) from five caller-assigned clinical signs: consciousness, cyanosis, stridor, air entry, and retractions.","exampleAgentPrompt":"Calculate the Westley croup score for a child with normal consciousness (0), no cyanosis (0), stridor at rest (2), markedly decreased air entry (2), and moderate retractions (2).","exampleUseCases":[{"title":"Pediatric ED croup triage","prompt":"I'm seeing a toddler in the ER with croup — consciousness is normal (0), no cyanosis (0), stridor with agitation only (1), mildly decreased air entry (1), and mild retractions (1). What's the Westley croup score?"},{"title":"Reassessment after nebulized epinephrine","prompt":"After giving epinephrine, the child's stridor is now at rest (2), air entry markedly decreased (2), retractions moderate (2), cyanosis at rest (5), and consciousness disoriented (5). Calculate the updated Westley score."},{"title":"Documenting croup severity for chart","prompt":"Document the Westley croup severity score for this patient: consciousness normal (0), no cyanosis (0), no stridor (0), normal air entry (0), no retractions (0) — they've improved significantly."}],"resultDescription":"Returns the computed Westley croup total score (integer 0–17) derived from the five caller-assigned component values, along with the original Westley 1978 citation. Does not provide diagnosis or severity-band labels beyond the published score.","failureModes":["Missing required query parameters (consciousness, cyanosis, stridor, air_entry, retractions) returns a validation error","Out-of-range integer values (e.g. cyanosis=3 or stridor=5) may return an error or undefined behavior","Payment failure via x402 protocol results in a 402 response before computation","Network timeout returns no score"],"whenToPreferThis":"Use this endpoint when you need a deterministic, published Westley 1978 croup score computed from five discrete clinical signs. Prefer it over general LLM-based clinical reasoning when you need a reproducible, citable numeric score for documentation, triage, or decision support pipelines in pediatric respiratory assessment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:19:00.802Z","isFirstParty":false}