{"uid":"cap_P_exJNlCxhafJqHnQcT5U","slug":"clearcheck-hospital-quality-profile-ff964f49","name":"ClearCheck Hospital Quality Profile","description":"CMS star rating and quality profile for a US hospital: mortality, safety and readmission versus the national average.","url":"https://loonie-toll.onrender.com/hospital","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"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"city":{"type":"string","description":"City name"},"name":{"type":"string","description":"Hospital name or part of it"},"limit":{"type":"integer","description":"Max hospitals to return, default 5"},"state":{"type":"string","description":"Two-letter state code"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"source":{"type":"string"},"reasons":{"type":"array","items":{"type":"string"}},"verdict":{"type":"string"},"bestMatch":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"phone":{"type":"string"},"county":{"type":"string"},"address":{"type":"string"},"ownership":{"type":"string"},"cmsFacilityId":{"type":"string"},"overallRating":{"type":"integer"},"emergencyServices":{"type":"boolean"},"versusNationalAverage":{"type":"object","properties":{"safetyWorse":{"type":"integer"},"safetyBetter":{"type":"integer"},"mortalityWorse":{"type":"integer"},"mortalityBetter":{"type":"integer"},"readmissionWorse":{"type":"integer"},"readmissionBetter":{"type":"integer"}}}}},"hospitals":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"phone":{"type":"string"},"county":{"type":"string"},"address":{"type":"string"},"ownership":{"type":"string"},"cmsFacilityId":{"type":"string"},"overallRating":{"type":"integer"},"emergencyServices":{"type":"boolean"},"versusNationalAverage":{"type":"object","properties":{"safetyWorse":{"type":"integer"},"safetyBetter":{"type":"integer"},"mortalityWorse":{"type":"integer"},"mortalityBetter":{"type":"integer"},"readmissionWorse":{"type":"integer"},"readmissionBetter":{"type":"integer"}}}}}},"disclaimer":{"type":"string"},"matchCount":{"type":"integer"},"retrievedAt":{"type":"string"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0oedWpONjinrCUSgRiA4R","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns CMS star ratings and quality metrics (mortality, safety, readmissions) for a US hospital compared to national averages.","exampleAgentPrompt":"What's the CMS star rating and quality profile for Mayo Clinic in Rochester, Minnesota — specifically how they compare to the national average on mortality, safety, and readmissions?","exampleUseCases":[{"title":"Choosing a hospital for elective surgery","prompt":"I'm considering having my knee replacement done at either Cedars-Sinai or UCLA Medical Center in Los Angeles, CA — can you pull up their CMS star ratings and show me how each compares to the national average for safety and mortality?"},{"title":"Verifying local hospital quality before referral","prompt":"I need to refer a patient to a hospital in Austin, TX — can you find hospitals there and show me their CMS quality scores, especially readmission and safety rates versus the national average?"},{"title":"Researching hospital options in a new city","prompt":"I'm moving to Chicago and want to know which hospitals nearby have the best CMS ratings — show me up to 5 hospitals in Chicago, IL with their overall star rating and how they compare nationally on mortality and safety."}],"resultDescription":"Returns a best-match hospital record and a list of matching hospitals, each with: CMS overall star rating, address, phone, county, ownership type, emergency services flag, CMS facility ID, and a breakdown of how many quality measures (safety, mortality, readmission) are better or worse than the national average. Also includes a verdict string and reasons array summarizing the quality assessment.","failureModes":["No hospital found matching the given name/city/state — returns empty hospitals array","Ambiguous name matches multiple hospitals — returns list for disambiguation","Hospital not yet rated by CMS — missing or null overallRating","State code invalid — query returns no results","Limit parameter ignored if too large — defaults to 5"],"whenToPreferThis":"Use this endpoint when you need CMS-sourced quality data for a specific US hospital, including star ratings and comparative mortality/safety/readmission statistics. Prefer this over generic hospital directory lookups when the user's question involves quality, safety benchmarks, or national comparisons. Best for healthcare decision-support, provider research, or compliance/referral workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:55:05.351Z","isFirstParty":false}