Skip to main content
Glama

getnpidata

Search providers

search_providers
Read-onlyIdempotent

Search active providers with exact filters (the same ones as GET /api/v1/providers). Every filter is optional; combine a specialty with a place. Specialty: category and subcategory (from list_specialties) or a NUCC taxonomy code. Place: state, county (5-digit FIPS), city (with state), zip, or zip with radius in miles. Name: lastName and firstName for people, orgName for organizations (use this to find a doctor someone names). Insurance: a health plan whose directory lists the provider, or medicare/medicaid.

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_providers"
  }
}

Input Schema

NameRequiredDescriptionDefault
zipNo5-digit ZIP code.
cityNoCity name; send state too.
pageNoPage number, from 1.
sortNoSort: name (default), npi, credential, city, state, zip, lastUpdate, enumeration or best; "-" first for descending.
stateNoTwo-letter state code.
countyNoCounty as a 5-digit FIPS code, e.g. 36103.
genderNoM or F (individuals).
radiusNoMiles around the ZIP (1 to 100); needs zip.
orgNameNoOrganization name.
categoryNoPlain specialty category, e.g. "Doctors (MD, DO)" or "Dentists" (list_specialties).
excludedNotrue: only providers on the OIG exclusion list; false: leave them out.
lastNameNoLast name (people).
pageSizeNoRows per page, 1 to 50 (default 20).
taxonomyNoNUCC taxonomy code, e.g. 207RC0000X.
firstNameNoFirst name (people).
insuranceNoHealth plan: a plan whose online directory lists the provider (aetna, cigna, humana, unitedhealthcare, excellus and others; an unknown plan is rejected with the list), or medicare or medicaid. A listing doesn't prove the provider takes the plan or new patients.
credentialNoCredential, e.g. MD, DO, NP, DDS.
entityTypeNo1 = individuals, 2 = organizations.
telehealthNotrue: only clinicians listed in Care Compare as offering telehealth.
subcategoryNoSubcategory of the category, e.g. "Heart (cardiology)".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / insurance
      Added value: +{
      +  "default": null,
      +  "description": "Health plan: a plan whose online directory lists the provider (aetna, cigna, humana, unitedhealthcare, excellus and others; an unknown plan is rejected with the list), or medicare or medicaid. A listing doesn't prove the provider takes the plan or new patients.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered; the description adds real value on top with the "active providers" restriction, the note that an unknown insurance plan is rejected with a list of valid values, and the caveat that a directory listing does not imply the provider accepts the plan or new patients. Pagination behavior is left unaddressed beyond the schema fields.

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?

The lead sentence states purpose and filter semantics, then the remainder is partitioned into labeled filter families, so it is skimmable and front-loaded. It is dense but nearly every clause carries operational information; the parenthetical schema reference is the only mild redundancy.

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 20-parameter, zero-required search tool with full schema coverage and solid annotations, the description covers filtering strategy and the one surprising semantic (insurance listing semantics). The main gap is that there is no output schema, and the description says nothing about what rows come back or what happens when no filters are supplied.

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?

Schema coverage is 100%, so the baseline is 3, but the description earns more by grouping the 20 parameters into Specialty / Place / Name / Insurance families and stating cross-parameter dependencies (city needs state, radius needs zip, county is 5-digit FIPS). It adds navigational meaning the flat schema cannot convey.

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?

Opens with a specific verb and resource ("Search active providers") and immediately constrains scope to exact-match filters, which tells the agent this is a lookup tool rather than a fuzzy/best-match one. It does not name or contrast with the sibling find_providers, so the differentiator is left implicit.

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 concrete composition guidance ("combine a specialty with a place") and a named use case ("use this to find a doctor someone names"), plus a pointer to list_specialties for valid category values. It offers no explicit when-not or comparison against lookup_npi/find_providers.

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