MCP tools

Four read-only tools. Each returns text plus structuredContent.

A successful tools/call result looks like:

{
  "content": [{"type": "text", "text": "2 providers returned (total matching: 2)."}],
  "structuredContent": {"rows": [], "total": 2},
  "isError": false
}

Unknown tool names come back as isError: true, not as an HTTP error. A bad NPI does too. A missing API key is HTTP 401 before JSON-RPC.

search_providers

Argument Required Notes
q no Name words, or a 10-digit NPI.
state no USPS code or __OTHER__.
specialty no Display name substring.
taxonomy_code no Primary NUCC code.
grouping no NUCC grouping.
entity_type no Individual or Organization.
credential no Normalized credential substring.
city, zip_code no Practice location.
active_only no Default true.
page no Default 1.
page_size no Default 10, max 25.

structuredContent is the same object as GET /v1/providers.

get_provider

Argument Required Notes
npi yes 10 digits.

structuredContent matches GET /v1/providers/{npi}: provider, secondary_taxonomies, practice_locations.

list_specialties

Argument Required Notes
grouping no Exact NUCC grouping.
q no Substring of the display name or code.
limit no Default 50, max 200.

Counts are from the pre-aggregated specialty table.

provider_stats

No arguments. structuredContent.overview is analytics_overview. by_entity_type is the entity rollup. This does not scan providers.