Npi Search Providers
npi_search_providersSearch the NPPES NPI registry for individual practitioners and healthcare organizations by name, organization name, location, provider type, and specialty. Plain-language specialty terms (e.g. "cardiologist", "pediatric cardiologist") resolve through the bundled NUCC taxonomy; the top match's search text becomes taxonomy_description, and all resolved candidates are returned in metadata. taxonomy_description also takes a NUCC code, such as one npi_get_provider returns, and searches with that code's text. Location belongs in the dedicated city/state/postal_code inputs, not inside specialty. Each provider row includes the NPI, name, primary specialty, city/state/ZIP, type, and active/deactivated status; the NPI is the input for npi_get_provider when the full record is needed. With name_role "authorized_official", first_name, last_name, and name_search match each organization's authorized official instead of the provider, the search covers organizations only, and each row names the official in authorizedOfficial. At least one search criterion is required, and the registry rejects state-only searches. When city/state/postal_code are given, only practice addresses are searched, never mailing addresses: a provider is returned only when its primary practice location or one of its other practice locations matches all of them. A provider kept on another practice location names it in matchedLocation. A specialty filter matches any of a provider's taxonomies, as a case-insensitive prefix of the taxonomy's classification or specialization; text from a resolved specialty or a decoded code returns only rows holding a code in resolvedTaxonomies (a classification-level code counts its whole classification, and a code newer than the bundled NUCC set counts only toward a classification-level code of its classification), and a row matched through a taxonomy other than its primary names it in matchedTaxonomy. Name searches also match former and other names, sorted by current name; such a row names the matching name in matchedOtherName. The registry never reports a true match total, and one search reaches only its first 1200 matches: a full page names the next in nextPage, and the terminal window (skip 1000, limit 200) returns continuationPostalCodes, the postal_code values that continue the search.
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": "npi_search_providers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | Practice-location city, case-insensitive. A trailing "*" after at least 2 characters matches every city starting with them (e.g. "SAN F*"). | |
| skip | No | Results to skip for pagination (0–1000). A full page names the next in nextPage. | |
| limit | No | Maximum providers to return (default 10). Values above 200 are clamped to the registry cap of 200 with a notice. | |
| state | No | 2-letter state code (e.g. "WA"). The registry rejects state-only searches, so another criterion is required. A blank value is treated as omitted. | |
| last_name | No | Individual last name, or the authorized official's under name_role "authorized_official". Trailing wildcard "*" allowed with at least 2 leading characters. | |
| name_role | No | Whose name first_name, last_name and name_search match: the provider's own (default) or an organization's authorized official. authorized_official searches organizations only and needs a first or last name. | |
| specialty | No | Plain-language specialty (e.g. "pediatric cardiologist"), resolved through the bundled NUCC taxonomy to exact descriptions before searching. Codes NUCC marks inactive are never resolved. The resolved taxonomies are echoed in resolvedTaxonomies, and only rows holding one of their codes (a classification-level code counting every code of its classification) are returned, since the text sent also matches other codes that start with it (e.g. Family Medicine for "family nurse practitioner"). A code newer than the bundled NUCC set counts only toward a classification-level code of its classification, as resolvedTaxonomies describes. Mutually exclusive with taxonomy_description. | |
| first_name | No | Individual first name, or the authorized official's under name_role "authorized_official". Trailing wildcard "*" allowed with at least 2 leading characters. | |
| name_search | No | One person's name: the provider's, or the authorized official's under name_role "authorized_official". The first token becomes first_name and the last token becomes last_name; use first_name/last_name when middle names or multi-part surnames matter. | |
| postal_code | No | Practice-location postal code: a 5-digit ZIP (also matching the ZIP+4 codes that extend it), a 9-digit ZIP+4 (ddddd-dddd accepted), or a 2–9 digit prefix with one trailing "*" (e.g. "98*", "981*"). Any other 2–4 or 6–8 digit string is matched exactly, as a non-US postcode is: "981" finds only an address recorded as exactly 981, and "981*" is the ZIP prefix. A ZIP+4 prefix (6+ digits) never matches a practice address recorded with only a 5-digit ZIP. A lettered postal code (Canadian, UK) matches only some providers recorded with it; search those by city. A blank value is treated as omitted. | |
| provider_type | No | Restrict to individuals (NPI-1) or organizations (NPI-2). Omit to search both; when set, it must match the name fields ("individual" for first_name/last_name/name_search, "organization" for organization_name or name_role "authorized_official"). | |
| organization_name | No | Organization name (implies provider_type organization; combines with first_name, last_name, or name_search only under name_role "authorized_official"). Trailing wildcard "*" allowed with at least 2 leading characters. | |
| taxonomy_description | No | A NUCC taxonomy code in any case (e.g. "207RC0000X", as npi_get_provider returns it) or taxonomy text. A code searches with that code's text, named in resolvedTaxonomies, and so does a NUCC display name such as "Cardiovascular Disease Physician" unless it is itself the start of a NUCC classification or specialization (e.g. "Critical Access Hospital"); a code the bundled NUCC set lacks or marks inactive is rejected before searching. Other text goes to the registry as written. The registry matches the text sent as a case-insensitive prefix of each taxonomy's classification or specialization, so a classification code (e.g. "207R00000X", Internal Medicine) also reaches its specializations. A decoded code or display name returns only rows holding that code, or for a classification code any code of its classification (a code newer than the bundled NUCC set included, as resolvedTaxonomies describes), since the text also reaches other codes that start with it; text sent as written is never filtered. Mutually exclusive with specialty. | |
| use_first_name_alias | No | Include first-name variants (default true upstream). False requests exact first-name matching. Applies to the resolved first_name, including name_search and an authorized official's first name, only without a wildcard; other-name matching remains enabled. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | The limit that was applied. | |
| error | No | Present when the call failed. Absent on success. | |
| shown | No | Number of providers returned. | |
| notice | No | Guidance — the page-size-not-total caveat, the next page or terminal-window continuation procedure, other-name, matched-taxonomy, location-filter, and resolved-code-filter counts, a lettered postal_code's partial matching, or how to broaden an empty result (for an exactly matched partial ZIP, its trailing-"*" form). | |
| nextPage | No | The next page: re-run the same arguments with this skip and limit. Present after a full page while rows remain reachable. When skip + limit passes 1000 it is skip 1000, limit 200, whose leading rows repeat rows already returned (the notice says how many) — dedupe by NPI. | |
| providers | No | Matching provider rows (up to limit). | |
| truncated | No | True when the NPPES page contained at least cap providers before the location and resolved-code filters ran; more may match even when shown is below cap, or 0. | |
| resolvedTaxonomies | No | The taxonomies the search resolved: for a specialty term, the top five ranked candidates plus every later one that sends the first one's text at its level (specialization or classification); for a taxonomy_description code or display name, the one code it decoded to. The first supplies appliedTaxonomyDescription; pass another candidate's code as taxonomy_description to search it instead. Only rows holding one of these codes are returned, a classification-level code counting every code of its classification. A code newer than the bundled NUCC set counts only when its description is the classification of a classification-level code among these, alone or followed by ", " and a specialization, and its first four characters are those of a code that counts; with no classification-level code among these, no new code counts. Absent when taxonomy_description was sent as written. | |
| appliedFirstNameAlias | No | Effective first-name alias expansion for a resolved non-wildcard first name, including the upstream default true. Absent when no first name exists or it contains a wildcard. | |
| continuationPostalCodes | No | Present only at the terminal window (a full page at skip 1000, limit 200): postal_code values that continue the same search, each re-run from skip 0 with the same arguments — the notice gives the full procedure. Splitting a 2–4 or 6–8 digit prefix lists the prefix's digits without "*" first, which match only a postal code recorded with exactly those digits, then its ten one-digit-longer prefixes. Empty when no postal split remains (postal_code is already a 5-digit ZIP, a full ZIP+4, an exact 2–4 or 6–8 digit value, or not a numeric ZIP prefix). | |
| appliedTaxonomyDescription | No | The taxonomy_description text sent to the registry as the specialty filter: the first resolvedTaxonomies description, else the caller's taxonomy_description, trimmed. |