Skip to main content
Glama

getnpidata

Search facilities

search_facilities
Read-onlyIdempotent

Medicare-certified facilities (hospitals, nursing homes, home health, hospices, dialysis, surgery centers, FQHCs and others) by CCN, ZIP, words of the name or city, type and state, with their CMS star rating.

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": "search_facilities"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoA CCN, a ZIP, or words of the name or city.
pageNoPage number, from 1.
typeNoFacility type: hospital, nursing_home, home_health, hospice, fqhc, rhc, dialysis, asc (surgery center), rehab, ltch, health_center or other.
stateNoTwo-letter state code.
pageSizeNoRows per page, 1 to 50 (default 20).
minRatingNoLowest CMS star rating, 1 to 5.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety and side-effect profile needs no restating. The description contributes the return content (CMS star rating) but says nothing about result ordering, total counts, or paging behavior beyond what the schema's page/pageSize fields imply. Useful, but modest added context over the structured data.

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 front-loaded sentence with no filler; the entity list and search keys are packed into one line. Minor cost: the long parenthetical of facility types and the phrase 'words of the name or city' make it dense to parse at a glance, so it falls just short of ideal structure.

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 six-parameter, all-optional, read-only search with full schema coverage and no output schema, the description covers the entity scope, all selector dimensions, and the star-rating result. Nothing an agent needs in order to call it is missing, though a note on result shape or paging limits would round it out.

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 parameter (q, page, pageSize, type, state, minRating) is already documented in the schema, including type enumerations and valid ranges. The description duplicates the searchable dimensions at a high level (CCN, ZIP, name/city words, type, state) without adding format or edge-case semantics. Baseline 3 is appropriate when the schema carries the detail.

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 names the resource precisely (Medicare-certified facilities) and enumerates the entity subtypes — hospitals, nursing homes, home health, hospices, dialysis, surgery centers, FQHCs — which clearly separates it from the provider-oriented siblings such as search_providers and lookup_npi. It also states the searchable keys and the star-rating payload. It stops short of explicitly contrasting itself with any named sibling, which keeps it at 4 rather than 5.

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 rather than stated: the list of facility categories and lookup keys tells an agent what queries fit, but there is no explicit when-to-use versus when-to-use-something-else guidance (e.g. facility vs provider lookups) and no stated prerequisites or exclusions. The agent must infer routing from the resource description alone.

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