[Integrations](https://spiral.ai/integrations) › [dots](https://spiral.ai/integrations/dots) › [CMS hospitals](https://spiral.ai/integrations/dots/cms-hospitals)

# How to Use CMS hospitals in dots

Find Medicare hospitals with their locations, hospital types, and CMS overall star ratings. Use the results to build a regional comparison before examining a hospital's measure-group details.

|  |  |
| --- | --- |
| Model | CMS hospitals |
| Available through | Alexandria |
| Category | Health |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with CMS hospitals in dots

- Every Monday at 9am: use CMS hospitals to look this up and give me the result as a table.
- Pull the latest numbers from CMS hospitals and tell me what changed since last week.
- Check CMS hospitals and summarize what you find in three bullet points.
- Pull the newest data from CMS hospitals and give me the result as a table.
- Check CMS hospitals every morning and tell me only when something changed.

## How to set up CMS hospitals in dots

Pick the way that suits you. Each takes about two minutes.

### Use the Spiral skill

1. **Send dots this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use Spiral's MCP server

1. **Create an API key**: In the console, open API keys and create a key for your dot. Copy it.

2. **Send your dot this message**: Your dot reads Spiral's skill and asks for your API key.

```text
set up https://spiral.ai/SKILL.md
```

3. **Give your dot the key**: When your dot asks for the key, add it where your dot keeps secrets, never in the chat itself.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run CMS hospitals**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "data-cms-gov/clinician-procedure-volume/hospitals",
    "input": {
      "city": "<city>"
    }
  }'
```

Then paste one of the prompts above: dots finds CMS hospitals on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/dots

## CMS hospitals tools and prices

- [CMS data.cms.gov · Hospitals](https://spiral.ai/tools/alexandria/data-cms-gov/clinician-procedure-volume/hospitals) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| city |  | — | City name, exact match, case-insensitive. |
| name |  | — | Case-insensitive substring of the hospital name. |
| limit | 1 to 100 | 25 | Results per page. |
| state |  | — | Two-letter USPS state or territory code. Pattern: ^[A-Za-z]{2}$. |
| offset | 0 to … | 0 | Results to skip; pass next_offset from the previous page. |
| zip_code |  | — | Five-digit ZIP code, exact match. Pattern: ^[0-9]{5}$. |

## What can you do with CMS hospitals in dots?

Keep a public CMS provider comparison current as new results are published. A scheduled agent can compare saved facility measures or Medicare procedure counts and report the specific values that changed.

### Regional care research

Prepare a regional care report using CMS facility listings and detailed quality measures. Add reported Medicare procedure activity for an established roster of public clinical practices, with facility quality and clinician volume presented separately.

### Public healthcare directory enrichment

Add CMS ratings and service information to facility directory entries, and published procedure categories to professional clinician entries. Respect CMS's profile-display indicators when showing procedure volume.

### CMS publication change review

Compare saved results after CMS publishes updates. Report changed facility ratings, services, staffing measures, or procedure counts for a public provider directory, distinguishing publication changes from changes in reporting periods.

### Published provider data reconciliation

Check a healthcare organization's published CMS comparisons against the source records. Review facility identifiers, rating components, and Medicare procedure categories, including suppressed count ranges and profile-display restrictions.

### Hospital quality comparison

Build a hospital shortlist and explain its overall ratings using mortality, safety, and readmission measure counts. Highlight where a hospital has measures classified as worse than national rates.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All dots guides](https://spiral.ai/integrations/dots)

## CMS hospitals in other agents

- [Amp](https://spiral.ai/integrations/amp/cms-hospitals)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/cms-hospitals)
- [Claude](https://spiral.ai/integrations/claude-desktop/cms-hospitals)
- [Claude Code](https://spiral.ai/integrations/claude-code/cms-hospitals)
- [Cline](https://spiral.ai/integrations/cline/cms-hospitals)
- [Codex](https://spiral.ai/integrations/codex/cms-hospitals)
- [Cursor](https://spiral.ai/integrations/cursor/cms-hospitals)
- [Devin](https://spiral.ai/integrations/devin/cms-hospitals)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/cms-hospitals)
- [Gemini](https://spiral.ai/integrations/gemini/cms-hospitals)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/cms-hospitals)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/cms-hospitals)
- [goose](https://spiral.ai/integrations/goose/cms-hospitals)
- [Grok](https://spiral.ai/integrations/grok/cms-hospitals)
- [Grok Build](https://spiral.ai/integrations/grok-build/cms-hospitals)
- [Hermes](https://spiral.ai/integrations/hermes/cms-hospitals)
- [Instinct](https://spiral.ai/integrations/instinct/cms-hospitals)
- [Manus](https://spiral.ai/integrations/manus/cms-hospitals)
- [Muse](https://spiral.ai/integrations/muse/cms-hospitals)
- [Muse Code](https://spiral.ai/integrations/muse-code/cms-hospitals)
- [n8n](https://spiral.ai/integrations/n8n/cms-hospitals)
- [Notion](https://spiral.ai/integrations/notion/cms-hospitals)
- [OpenClaw](https://spiral.ai/integrations/openclaw/cms-hospitals)
- [opencode](https://spiral.ai/integrations/opencode/cms-hospitals)
- [Perplexity](https://spiral.ai/integrations/perplexity/cms-hospitals)
- [Raycast](https://spiral.ai/integrations/raycast/cms-hospitals)
- [VS Code](https://spiral.ai/integrations/vscode/cms-hospitals)
- [Windsurf](https://spiral.ai/integrations/windsurf/cms-hospitals)
- [Zapier](https://spiral.ai/integrations/zapier/cms-hospitals)

## More dots guides

- [CMS hospital details](https://spiral.ai/integrations/dots/cms-hospital-details)
- [CMS nursing home details](https://spiral.ai/integrations/dots/cms-nursing-home-details)
- [CMS home health agency details](https://spiral.ai/integrations/dots/cms-home-health-agency-details)
- [CMS nursing homes](https://spiral.ai/integrations/dots/cms-nursing-homes)
- [CMS home health agencies](https://spiral.ai/integrations/dots/cms-home-health-agencies)
- [CTIS clinical trial details](https://spiral.ai/integrations/dots/ctis-clinical-trial-details)

## Questions about CMS hospitals in dots

**Can dots use CMS hospitals?**

Yes. Add Spiral to dots as an MCP server, and dots can find and run CMS hospitals like any built-in tool.

**How much does CMS hospitals cost in dots?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your dots plan is separate.

**Do I need an Alexandria account to use CMS hospitals in dots?**

You need no Alexandria account. dots uses one Spiral API key for every tool, and Spiral runs CMS hospitals on its own Alexandria account.

**How long does it take to set up CMS hospitals in dots?**

About two minutes: create an API key, then send your dot this message, then give your dot the key.

**Does dots wait while CMS hospitals runs?**

CMS hospitals runs in the background. dots starts the run, checks on it and gives you the json when it's ready.

**Does CMS cover every healthcare provider?**

Coverage follows Medicare reporting programs. The facility data covers Medicare hospitals, dialysis facilities, and home health agencies; nursing home coverage includes Medicare- and Medicaid-certified facilities, while procedure volume covers reported Medicare activity.

**Are these current operating conditions?**

CMS publishes reporting-period data rather than a live view of care delivery. Nursing home star ratings are monthly, while clinician procedure volume uses a one-year observation window with a three-month claims-processing lag.

**Can I retrieve historical CMS releases?**

CMS makes current datasets available through its API and archived datasets available as ZIP files. Historical analysis therefore needs the archive downloads rather than an assumption that a current lookup includes past releases.

**Can CMS data be reused in a public report or commercial application?**

CMS identifies these government works as public-domain data and says permission is not required for reuse. Attribution to CMS is appreciated.

**Does publishing CMS results imply government endorsement?**

No. CMS says reused materials must not create a false impression that the government endorses commercial products or services; a published star rating is also limited to its underlying data sources.

