Skip to main content
Glama

Hospital scorecard (CMS)

get_hospital_scorecard
Read-onlyIdempotent

Hospital scorecard for any U.S. Medicare hospital from the Centers for Medicare & Medicaid Services (CMS, the U.S. government agency): CMS overall star rating, type, ownership, emergency services, and how it compares with the national average on mortality, safety and readmissions (measures better, same, worse), plus its rank and percentile among rated hospitals in its state. Look up by CMS facility ID or name plus state. Not medical advice.

Input Schema

NameRequiredDescriptionDefault
idNoCMS facility ID
nameNoHospital name
stateNoTwo-letter state code

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

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds useful context beyond that: it identifies the authoritative government source and adds a 'Not medical advice' disclaimer, though it says nothing about rate limits, freshness, or what happens on a failed lookup.

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 resource and scope in the first clause, then progressively narrows to content, lookup keys, and a disclaimer. The long middle enumeration of measures is dense but each item is informative; the only mild waste is restating return fields that the output schema already carries.

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?

With an output schema present, the description need not explain return values and correctly focuses on identity, source authority, scope, and lookup keys. An agent has enough to select and call this tool correctly against a large sibling list.

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 baseline is 3. The description reinforces the key semantics of combining 'name plus state' versus using a CMS facility ID, which adds slight value, but it introduces no format or validation detail beyond the schema's own parameter descriptions.

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

Purpose5/5

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

States a specific verb+resource ('Hospital scorecard for any U.S. Medicare hospital'), names the data source (CMS), and enumerates the scope of content (star rating, ownership, mortality/safety/readmission comparison, state rank/percentile). This clearly distinguishes it from the sibling rank_hospitals, which produces rankings rather than a single facility's scorecard.

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

Usage Guidelines4/5

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

Gives a concrete lookup instruction ('Look up by CMS facility ID or name plus state'), which tells the agent how to invoke it, and implicitly covers the two alternative key paths. It stops short of naming when to prefer this over rank_hospitals or stating exclusions, so it falls below the explicit when/when-not bar of a 5.

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