Skip to main content
Glama

Hospital Ratings and CMS Star Ratings MCP

Compare hospitals

hospital_compare
Read-onlyIdempotent

Compare 2 to 5 hospitals side by side on CMS overall stars, patient survey stars, the share of patients rating it 9 or 10 and who would recommend it, ER median time, left before being seen, sepsis care and mortality, safety and readmission measures better or worse than national. Names which hospital leads each.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "hospitals": "<hospitals>"
    },
    "name": "hospital_compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
hospitalsYes2 to 5 hospitals, each { facility_id } or { name, state } (city optional).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/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 genuine return-content context – the full metric list and that it identifies the leading hospital per metric, which matters because no output schema exists. It says nothing about behavior when a hospital name is ambiguous or not found, or about partial-data cases, so it remains only adequate.

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?

A single dense sentence, front-loaded with the verb and scope, with zero filler. The long metric list is justified because no output schema exists, though it reads as a run-on and could be broken into a second sentence.

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?

For a one-parameter, read-only, no-output-schema tool, the description covers what is compared and what the result highlights (leader per metric), which is what an agent needs to choose it. Missing only edge-case behavior, such as an unresolvable hospital entry or how ties/partial data are handled.

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

Parameters4/5

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

The input schema description coverage is 100%, so the baseline is 3; the description adds the '2 to 5' collection bound, which is consistent with the schema's minItems/maxItems. Beyond that it restates the schema rather than clarifying resolution behavior for name/state/city lookups.

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?

Specific verb and resource ('Compare 2 to 5 hospitals side by side') plus an explicit enumeration of the compared dimensions (CMS stars, survey stars, ER times, sepsis, safety/readmission) and a distinguishing output feature ('Names which hospital leads each'). It never names the siblings hospital_ratings or hospital_search, so the differentiator from them is only implied by the multi-hospital framing.

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?

The '2 to 5 hospitals' bound and side-by-side framing imply when to use it (multi-hospital comparison rather than a single lookup), but there is no explicit when-to-use vs. when-not statement and no naming of alternatives for single-hospital rating lookups.

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.