# ClearCheck Hospital Quality Profile

> ClearCheck Hospital Quality Profile is a paid API for AI agents from loonie-toll.onrender.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns CMS star ratings and quality metrics (mortality, safety, readmissions) for a US hospital compared to national averages.

## Facts

- Endpoint: GET https://loonie-toll.onrender.com/hospital
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/clearcheck-hospital-quality-profile-ff964f49
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_P_exJNlCxhafJqHnQcT5U

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 clearcheck-hospital-quality-profile-ff964f49
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

CMS star rating and quality profile for a US hospital: mortality, safety and readmission versus the national average.

## Output

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.

## 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"
     ],
     "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": {
     
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/clearcheck-hospital-quality-profile-ff964f49/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from loonie-toll.onrender.com](https://www.zero.xyz/host/loonie-toll.onrender.com/llms.txt)
