Skip to main content
Glama

Best hospitals ranking (CMS)

rank_hospitals
Read-onlyIdempotent

Best hospitals ranking for a U.S. state or city from Centers for Medicare & Medicaid Services (CMS) Care Compare data: ranked by CMS star rating, then net score (quality measures better than national minus worse across mortality, safety and readmissions). Filter by city, minimum stars, emergency services and hospital type (acute, critical access, children's, psychiatric). Not medical advice.

Input Schema

NameRequiredDescriptionDefault
cityNoOptional city
typeNoOptional: acute, critical, childrens or psychiatric
limitNo1 to 50
stateNoTwo-letter state code
minStarsNoOptional 1 to 5
emergencyNoOptional true or false

Output Schema

NameRequiredDescriptionDefault
dataYesThe result. Its fields are documented at https://www.x402pulse.dev/developers for each endpoint.
cachedNotrue if the result came from x402Pulse's cache, false if it was just computed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), and the description adds genuinely useful context beyond them: the ranking algorithm (CMS star rating first, then net score), the definition of net score, and the data source. It does not disclose data freshness/recency or result size behavior, and the 'Not medical advice' caveat is present, which is appropriate for a health-domain tool.

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?

Front-loaded with the core purpose, then a compact methodology clause and a short filter clause; the final two-word disclaimer is efficient. The main sentence is dense with parentheticals, but every clause carries information an agent can act on.

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

Completeness4/5

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

With all parameters optional, full schema coverage, an output schema handling return values, and annotations covering the safety profile, the description covers what remains: source, ranking method, filter scope, and disclaimer. The only omission is guidance on which sibling to prefer for per-hospital detail.

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 the schema already documents all six parameters, setting the baseline at 3. The description does add modest value by expanding the enum ('critical' means critical access) and by tying minStars and emergency into the filter narrative, but it offers no format, syntax, or default details (e.g., limit behavior) beyond the schema.

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?

States a specific verb and resource ('Best hospitals ranking for a U.S. state or city') plus the data provenance (CMS Care Compare), so the agent immediately knows what it returns. It is distinguishable from a single-hospital scorecard by the explicit 'ranking' framing, but it never names or contrasts with the sibling get_hospital_scorecard, so sibling differentiation is implicit rather than stated.

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 by the listed filters (city, state, minStars, emergency, type), which tell the agent this is a filtered ranking lookup for a geographic area. There is no explicit when-to-use vs when-not guidance, no mention of the hospital scorecard alternative, and the only qualifier ('Not medical advice') is a legal disclaimer rather than selection guidance.

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.

Resources