Skip to main content
Glama

Hospital Ratings and CMS Star Ratings MCP

Find and rank hospitals

hospital_search
Read-onlyIdempotent

Find US hospitals by state, city, county, ZIP code (5 digits, or a 3-digit prefix for the area) or name, with each hospital's CMS overall star rating (1 to 5), HCAHPS patient survey summary stars, type, ownership and ER availability. Best rated first, with the count at each star level. Filter by type, minimum stars or emergency services.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "hospital_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
zipNoZIP code (02114) or a 3-digit ZIP prefix for the surrounding area (021).
cityNoCity, such as Boston.
nameNoPart of the hospital name.
limitNoHow many hospitals to list, 1 to 50. Default 20.
stateNoState code or name, such as MA or Massachusetts.
countyNoCounty (needs state), such as Suffolk.
min_starsNoOnly hospitals with at least this overall star rating.
hospital_typeNoHospital type. Default all.
emergency_servicesNoOnly hospitals with an emergency department.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior, so safety needs no explanation. The description contributes real behavioral context beyond them: results are ordered best-rated first, a count is returned at each star level, ZIP may be a 3-digit area prefix, and county requires a state. Pagination/truncation behavior beyond the limit parameter is not described.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the verb and resource, then the output shape, then filtering. It is dense and slightly list-heavy in the first sentence, but no sentence is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description carries the burden of describing return values, and it does: star ratings, survey stars, hospital attributes, ordering, and per-star counts. Combined with defaults on limit and type, an agent has everything needed to call and interpret this tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every one of the nine parameters is already documented, making 3 the baseline. The description mostly restates those fields (ZIP with 5-digit or 3-digit prefix, min stars, ER filter) and adds little syntax or interaction detail beyond what the schema states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a concrete verb and resource ("Find US hospitals") and enumerates the searchable dimensions plus the returned fields (CMS stars, HCAHPS stars, type, ownership, ER), so the agent knows exactly what the tool produces. It does not name or distinguish itself from the siblings hospital_compare and hospital_ratings, leaving the agent to infer which one to pick.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied through the listed filter dimensions (type, minimum stars, emergency services), which tells the agent how to narrow results. There is no explicit statement of when this tool is preferred over hospital_compare or hospital_ratings, and no prerequisites or exclusions are given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.