Skip to main content
Glama

npi-providers-mcp-server

Npi Search Providers

npi_search_providers
Read-onlyIdempotent

Search 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

NameRequiredDescriptionDefault
cityNoPractice-location city, case-insensitive. A trailing "*" after at least 2 characters matches every city starting with them (e.g. "SAN F*").
skipNoResults to skip for pagination (0–1000). A full page names the next in nextPage.
limitNoMaximum providers to return (default 10). Values above 200 are clamped to the registry cap of 200 with a notice.
stateNo2-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_nameNoIndividual last name, or the authorized official's under name_role "authorized_official". Trailing wildcard "*" allowed with at least 2 leading characters.
name_roleNoWhose 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.
specialtyNoPlain-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_nameNoIndividual first name, or the authorized official's under name_role "authorized_official". Trailing wildcard "*" allowed with at least 2 leading characters.
name_searchNoOne 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_codeNoPractice-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_typeNoRestrict 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_nameNoOrganization 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_descriptionNoA 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_aliasNoInclude 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

NameRequiredDescriptionDefault
capNoThe limit that was applied.
errorNoPresent when the call failed. Absent on success.
shownNoNumber of providers returned.
noticeNoGuidance — 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).
nextPageNoThe 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.
providersNoMatching provider rows (up to limit).
truncatedNoTrue 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.
resolvedTaxonomiesNoThe 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.
appliedFirstNameAliasNoEffective 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.
continuationPostalCodesNoPresent 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).
appliedTaxonomyDescriptionNoThe taxonomy_description text sent to the registry as the specialty filter: the first resolvedTaxonomies description, else the caller's taxonomy_description, trimmed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedInput schema / properties / specialty / description
      Previous value: -"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 taxonomy is echoed in the result. Mutually exclusive with taxonomy_description."New value: +"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."
    • changedInput schema / properties / taxonomy_description / description
      Previous value: -"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. Mutually exclusive with specialty."New value: +"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."
    • changedOutput schema / properties / continuationPostalCodes / description
      Previous value: -"Present only at the terminal window (a full page at skip 1000, limit 200): postal_code prefixes that continue the same search, each re-run from skip 0 with the same arguments — the notice gives the full procedure. Empty when no postal split remains (postal_code is already a 5-digit ZIP, a full ZIP+4, or not a numeric ZIP prefix)."New value: +"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)."
    • changedOutput schema / properties / continuationPostalCodes / items / description
      Previous value: -"A trailing-\"*\" postal_code prefix."New value: +"A postal_code to re-run with: a trailing-\"*\" prefix, or the digits of the prefix being split without \"*\"."
    • changedOutput schema / properties / notice / description
      Previous value: -"Guidance — the page-size-not-total caveat, the next page or terminal-window continuation procedure, other-name, matched-taxonomy, and location-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)."New value: +"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)."
    • changedOutput schema / properties / providers / items / properties / matchedTaxonomy / description
      Previous value: -"The taxonomy this row matched the specialty filter through: the first of its taxonomies whose classification or specialization starts with appliedTaxonomyDescription (case-insensitive, in the registry's wording), as the registry matches. Present only when primaryTaxonomy does not match and another taxonomy does. It names the taxonomy whose text matched, which need not be the code the specialty resolved to."New value: +"The taxonomy this row matched the specialty filter through, present only when primaryTaxonomy does not match and another taxonomy does. When the search resolved taxonomies (resolvedTaxonomies), it is the first of the row's taxonomies holding a resolved code, a classification-level code counting every code of its classification, including a code newer than the bundled NUCC set as resolvedTaxonomies describes. When taxonomy_description was sent as written, it is the first whose classification or specialization starts with appliedTaxonomyDescription (case-insensitive, in the registry's wording), as the registry matches."
    • changedOutput schema / properties / resolvedTaxonomies / description
      Previous value: -"The taxonomies the search resolved: candidates ranked for a specialty term, or the one code a taxonomy_description code or display name decoded to. The first supplies appliedTaxonomyDescription; pass another candidate's code as taxonomy_description to search it instead. Absent when taxonomy_description was sent as written."New value: +"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."
    • changedOutput schema / properties / truncated / description
      Previous value: -"True when the NPPES page contained at least cap providers before location constraints were applied; more may match even when shown is below cap."New value: +"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."
  2. Changed23 schema fields changed
    • changedInput schema / properties / first_name / description
      Previous value: -"Individual first name. Trailing wildcard \"*\" allowed with at least 2 leading characters."New value: +"Individual first name, or the authorized official's under name_role \"authorized_official\". Trailing wildcard \"*\" allowed with at least 2 leading characters."
    • changedInput schema / properties / last_name / description
      Previous value: -"Individual last name. Trailing wildcard \"*\" allowed with at least 2 leading characters."New value: +"Individual last name, or the authorized official's under name_role \"authorized_official\". Trailing wildcard \"*\" allowed with at least 2 leading characters."
    • addedInput schema / properties / name_role
      Added value: +{
      +  "description": "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.",
      +  "enum": [
      +    "provider",
      +    "authorized_official"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / name_search / description
      Previous value: -"One person's name. 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."New value: +"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."
    • changedInput schema / properties / organization_name / description
      Previous value: -"Organization name (implies provider_type organization; cannot be combined with first_name, last_name, or name_search). Trailing wildcard \"*\" allowed with at least 2 leading characters."New value: +"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."
    • changedInput schema / properties / postal_code / description
      Previous value: -"Practice-location ZIP code: 5 digits (also matching the ZIP+4 codes that extend it), 9 digits, or a 2–9 digit prefix with one trailing \"*\" (e.g. \"98*\", \"981*\"). A ZIP+4 prefix (6+ digits) never matches a practice address recorded with only a 5-digit ZIP."New value: +"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."
    • changedInput schema / properties / postal_code / pattern
      Previous value: -"^[^*]*$|^\\d{2,9}\\*$"New value: +"^[^*]*$|^\\s*\\d{2,9}\\*\\s*$"
    • changedInput schema / properties / provider_type / description
      Previous value: -"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)."New value: +"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\")."
    • changedInput schema / properties / specialty / description
      Previous value: -"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 matched taxonomy is echoed in the result. Mutually exclusive with taxonomy_description."New value: +"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 taxonomy is echoed in the result. Mutually exclusive with taxonomy_description."
    • changedInput schema / properties / taxonomy_description / description
      Previous value: -"Exact NUCC taxonomy description for direct passthrough — use when the taxonomy description is already known. Mutually exclusive with specialty."New value: +"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. Mutually exclusive with specialty."
    • changedInput schema / properties / use_first_name_alias / description
      Previous value: -"Include first-name variants (default true upstream). False requests exact first-name matching. Applies to the resolved first_name, including name_search, only without a wildcard; other-name matching remains enabled."New value: +"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."
    • changedOutput schema / properties / appliedTaxonomyDescription / description
      Previous value: -"The exact NUCC specialization or classification used as the specialty filter."New value: +"The taxonomy_description text sent to the registry as the specialty filter: the first resolvedTaxonomies description, else the caller's taxonomy_description, trimmed."
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `no_search_criteria`: No effective search criterion was provided. `conflicting_specialty`: Both specialty and taxonomy_description were supplied. `mixed_provider_criteria`: Individual criteria (first_name, last_name, name_search) were combined with organization criteria (organization_name), directly or through provider_type. `unresolved_specialty`: The specialty term matched no active NUCC taxonomy (the message names any inactive codes it matched), or was made only of generic words (\"doctor\", \"M.D.\", \"specialist\") that name no specialty. `invalid_search_field`: The registry returned a field error (e.g. wildcard under 2 characters, bad provider type). Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `no_search_criteria`: No effective search criterion was provided. `conflicting_specialty`: Both specialty and taxonomy_description were supplied. `mixed_provider_criteria`: Individual criteria (first_name, last_name, name_search) were combined with organization criteria (organization_name), directly or through provider_type. Under name_role \"authorized_official\" the name fields and name_role are organization criteria. `official_name_required`: name_role \"authorized_official\" was given without a first_name, last_name, or name_search to match the official by. `unresolved_specialty`: The specialty term matched no active NUCC taxonomy (the message names any inactive codes it matched), or was made only of generic words (\"doctor\", \"M.D.\", \"specialist\") that name no specialty; or taxonomy_description was a NUCC code the bundled set lacks or NUCC marks inactive (the message names an inactive code's replacement). No search is sent. `invalid_search_field`: The registry returned a field error (e.g. wildcard under 2 characters, a postal_code with a space or the wrong number of digits, bad provider type). A postal_code error carries its own recovery naming the accepted forms. `unmatched_taxonomy_description`: The registry found no taxonomy for the description sent (its error 14): taxonomy_description, or the text a specialty resolved to, starts no classification or specialization in the registry's wording. The combined \"Classification, Specialization\" text never matches. When the text sent is the search text of a bundled NUCC code, the error carries its own recovery naming the broader classification to search, or a related one to browse for. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "no_search_criteria",
      -  "conflicting_specialty",
      -  "mixed_provider_criteria",
      -  "unresolved_specialty",
      -  "invalid_search_field"
      -]New value: +[
      +  "no_search_criteria",
      +  "conflicting_specialty",
      +  "mixed_provider_criteria",
      +  "official_name_required",
      +  "unresolved_specialty",
      +  "invalid_search_field",
      +  "unmatched_taxonomy_description"
      +]
    • changedOutput schema / properties / notice / description
      Previous value: -"Guidance — the page-size-not-total caveat, the next page or terminal-window continuation procedure, other-name and location-filter counts, or how to broaden an empty result."New value: +"Guidance — the page-size-not-total caveat, the next page or terminal-window continuation procedure, other-name, matched-taxonomy, and location-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)."
    • addedOutput schema / properties / providers / items / properties / authorizedOfficial
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "The organization's authorized official, whose name a name_role \"authorized_official\" search matched. Present only on the rows of such a search, when the registry records a first or last name for the official.",
      +  "properties": {
      +    "name": {
      +      "description": "The official's name as \"First Middle Last\", leaving out parts the registry does not record. Prefix, suffix, credential, and telephone are on the npi_get_provider record.",
      +      "type": "string"
      +    },
      +    "title": {
      +      "description": "The official's title or position, when recorded.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "name"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / providers / items / properties / matchedOtherName / description
      Previous value: -"The other (former, professional, DBA, or alternate) name this row matched the name search through. Present only when the current name fails a requested last_name, organization_name, or wildcard first_name and this other name satisfies it (case-insensitive, ignoring punctuation and spaces, trailing \"*\" as a prefix). An exact first_name alone never marks a row: the registry also matches first-name variants (Bob for Robert)."New value: +"The other (former, professional, DBA, or alternate) name this row matched the name search through. Present only when the current name fails a requested last_name, organization_name, or wildcard first_name and this other name satisfies it (case-insensitive, ignoring punctuation and spaces, trailing \"*\" as a prefix). An exact first_name alone never marks a row: the registry also matches first-name variants (Bob for Robert). Under name_role \"authorized_official\" only organization_name can mark a row, since the official's name is matched against the official alone."
    • addedOutput schema / properties / providers / items / properties / matchedTaxonomy
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "The taxonomy this row matched the specialty filter through: the first of its taxonomies whose classification or specialization starts with appliedTaxonomyDescription (case-insensitive, in the registry's wording), as the registry matches. Present only when primaryTaxonomy does not match and another taxonomy does. It names the taxonomy whose text matched, which need not be the code the specialty resolved to.",
      +  "properties": {
      +    "code": {
      +      "description": "NUCC taxonomy code.",
      +      "type": "string"
      +    },
      +    "description": {
      +      "description": "Description as the registry serves it (\"Classification\" or \"Classification, Specialization\"). When the registry serves none, the bundled NUCC text in the same form, marked by descriptionSource. Absent when neither has one.",
      +      "type": "string"
      +    },
      +    "descriptionSource": {
      +      "description": "\"nucc\" when the registry served no description for this code and description comes from the bundled NUCC code set. Absent when the registry supplied it.",
      +      "enum": [
      +        "nucc"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "code"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / providers / items / properties / primaryTaxonomy / properties / code / description
      Previous value: -"Primary taxonomy code."New value: +"NUCC taxonomy code."
    • changedOutput schema / properties / providers / items / properties / primaryTaxonomy / properties / description / description
      Previous value: -"Primary taxonomy description."New value: +"Description as the registry serves it (\"Classification\" or \"Classification, Specialization\"). When the registry serves none, the bundled NUCC text in the same form, marked by descriptionSource. Absent when neither has one."
    • addedOutput schema / properties / providers / items / properties / primaryTaxonomy / properties / descriptionSource
      Added value: +{
      +  "description": "\"nucc\" when the registry served no description for this code and description comes from the bundled NUCC code set. Absent when the registry supplied it.",
      +  "enum": [
      +    "nucc"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / properties / resolvedTaxonomies / description
      Previous value: -"Taxonomy candidates ranked for the specialty term. The first candidate supplies appliedTaxonomyDescription; a different candidate can be selected through taxonomy_description."New value: +"The taxonomies the search resolved: candidates ranked for a specialty term, or the one code a taxonomy_description code or display name decoded to. The first supplies appliedTaxonomyDescription; pass another candidate's code as taxonomy_description to search it instead. Absent when taxonomy_description was sent as written."
    • changedOutput schema / properties / resolvedTaxonomies / items / properties / description / description
      Previous value: -"Search-compatible NUCC specialization or classification for this candidate."New value: +"The text that searches the registry for this code: its specialization, else its classification, in the registry's wording where that differs from NUCC's."
  3. Changed4 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum providers to return (1–200; the registry caps at 200)."New value: +"Maximum providers to return (default 10). Values above 200 are clamped to the registry cap of 200 with a notice."
    • changedInput schema / properties / limit / maximum
      Previous value: -200New value: +9007199254740991
    • addedInput schema / properties / use_first_name_alias
      Added value: +{
      +  "description": "Include first-name variants (default true upstream). False requests exact first-name matching. Applies to the resolved first_name, including name_search, only without a wildcard; other-name matching remains enabled.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / appliedFirstNameAlias
      Added value: +{
      +  "description": "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.",
      +  "type": "boolean"
      +}
  4. Changed13 schema fields changed
    • changedInput schema / properties / city / description
      Previous value: -"Practice-location city."New value: +"Practice-location city, case-insensitive. A trailing \"*\" after at least 2 characters matches every city starting with them (e.g. \"SAN F*\")."
    • addedInput schema / properties / city / pattern
      Added value: +"^[^*]*$|^[^*]{2,}\\*$"
    • changedInput schema / properties / organization_name / description
      Previous value: -"Organization name (implies provider_type organization). Trailing wildcard \"*\" allowed with at least 2 leading characters."New value: +"Organization name (implies provider_type organization; cannot be combined with first_name, last_name, or name_search). Trailing wildcard \"*\" allowed with at least 2 leading characters."
    • changedInput schema / properties / postal_code / description
      Previous value: -"Practice-location postal/ZIP code (5 or 9 digits)."New value: +"Practice-location ZIP code: 5 digits (also matching the ZIP+4 codes that extend it), 9 digits, or a 2–9 digit prefix with one trailing \"*\" (e.g. \"98*\", \"981*\"). A ZIP+4 prefix (6+ digits) never matches a practice address recorded with only a 5-digit ZIP."
    • addedInput schema / properties / postal_code / pattern
      Added value: +"^[^*]*$|^\\d{2,9}\\*$"
    • changedInput schema / properties / provider_type / description
      Previous value: -"Restrict to individuals (NPI-1) or organizations (NPI-2). Omit to search both."New value: +"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)."
    • changedInput schema / properties / skip / description
      Previous value: -"Results to skip for pagination (0–1000). Only the first 1200 matches are reachable; skip beyond 1000 silently returns the same window — narrow the query instead of paging further."New value: +"Results to skip for pagination (0–1000). A full page names the next in nextPage."
    • addedOutput schema / properties / continuationPostalCodes
      Added value: +{
      +  "description": "Present only at the terminal window (a full page at skip 1000, limit 200): postal_code prefixes that continue the same search, each re-run from skip 0 with the same arguments — the notice gives the full procedure. Empty when no postal split remains (postal_code is already a 5-digit ZIP, a full ZIP+4, or not a numeric ZIP prefix).",
      +  "items": {
      +    "description": "A trailing-\"*\" postal_code prefix.",
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `no_search_criteria`: No effective search criterion was provided. `conflicting_specialty`: Both specialty and taxonomy_description were supplied. `unresolved_specialty`: The specialty term matched no active NUCC taxonomy (the message names any inactive codes it matched). `invalid_search_field`: The registry returned a field error (e.g. wildcard under 2 characters, bad provider type). Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `no_search_criteria`: No effective search criterion was provided. `conflicting_specialty`: Both specialty and taxonomy_description were supplied. `mixed_provider_criteria`: Individual criteria (first_name, last_name, name_search) were combined with organization criteria (organization_name), directly or through provider_type. `unresolved_specialty`: The specialty term matched no active NUCC taxonomy (the message names any inactive codes it matched), or was made only of generic words (\"doctor\", \"M.D.\", \"specialist\") that name no specialty. `invalid_search_field`: The registry returned a field error (e.g. wildcard under 2 characters, bad provider type). Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "no_search_criteria",
      -  "conflicting_specialty",
      -  "unresolved_specialty",
      -  "invalid_search_field"
      -]New value: +[
      +  "no_search_criteria",
      +  "conflicting_specialty",
      +  "mixed_provider_criteria",
      +  "unresolved_specialty",
      +  "invalid_search_field"
      +]
    • addedOutput schema / properties / nextPage
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "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.",
      +  "properties": {
      +    "limit": {
      +      "description": "The limit to send for the next page.",
      +      "type": "number"
      +    },
      +    "skip": {
      +      "description": "The skip to send for the next page.",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "skip",
      +    "limit"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / notice / description
      Previous value: -"Guidance — pagination ceiling, page-size-not-total caveat, or how to broaden an empty result."New value: +"Guidance — the page-size-not-total caveat, the next page or terminal-window continuation procedure, other-name and location-filter counts, or how to broaden an empty result."
    • addedOutput schema / properties / providers / items / properties / matchedOtherName
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "The other (former, professional, DBA, or alternate) name this row matched the name search through. Present only when the current name fails a requested last_name, organization_name, or wildcard first_name and this other name satisfies it (case-insensitive, ignoring punctuation and spaces, trailing \"*\" as a prefix). An exact first_name alone never marks a row: the registry also matches first-name variants (Bob for Robert).",
      +  "properties": {
      +    "name": {
      +      "description": "The other name as \"First Middle Last\", or its organization name.",
      +      "type": "string"
      +    },
      +    "type": {
      +      "description": "Registry name type, e.g. \"Former Name\", \"Professional Name\".",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "name"
      +  ],
      +  "type": "object"
      +}
  5. Changed2 schema fields changed
    • changedInput schema / properties / specialty / description
      Previous value: -"Plain-language specialty (e.g. \"pediatric cardiologist\"), resolved through the bundled NUCC taxonomy to exact descriptions before searching. The matched taxonomy is echoed in the result. Mutually exclusive with taxonomy_description."New value: +"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 matched taxonomy is echoed in the result. Mutually exclusive with taxonomy_description."
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `no_search_criteria`: No effective search criterion was provided. `conflicting_specialty`: Both specialty and taxonomy_description were supplied. `unresolved_specialty`: The specialty term matched no NUCC taxonomy. `invalid_search_field`: The registry returned a field error (e.g. wildcard under 2 characters, bad provider type). Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `no_search_criteria`: No effective search criterion was provided. `conflicting_specialty`: Both specialty and taxonomy_description were supplied. `unresolved_specialty`: The specialty term matched no active NUCC taxonomy (the message names any inactive codes it matched). `invalid_search_field`: The registry returned a field error (e.g. wildcard under 2 characters, bad provider type). Other values are possible when a failure originates below the handler."
  6. Changed4 schema fields changed
    • changedOutput schema / properties / providers / items / properties / city / description
      Previous value: -"Practice-location city when present."New value: +"Primary practice-location city when present."
    • addedOutput schema / properties / providers / items / properties / matchedLocation
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "The additional practice location that satisfied the requested city/state/postal_code. Present only when the primary practice location is elsewhere.",
      +  "properties": {
      +    "city": {
      +      "description": "City of the matching practice location.",
      +      "type": "string"
      +    },
      +    "postalCode": {
      +      "description": "Postal/ZIP code of the matching practice location.",
      +      "type": "string"
      +    },
      +    "state": {
      +      "description": "State of the matching practice location.",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • changedOutput schema / properties / providers / items / properties / postalCode / description
      Previous value: -"Practice-location postal/ZIP code when present."New value: +"Primary practice-location postal/ZIP code when present."
    • changedOutput schema / properties / providers / items / properties / state / description
      Previous value: -"Practice-location state when present."New value: +"Primary practice-location state when present."
  7. Changed12 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / name_search / description
      Previous value: -"Convenience shortcut: a single person's name, split into first/last heuristically. For precise control use first_name/last_name."New value: +"One person's name. 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."
    • changedInput schema / properties / state / description
      Previous value: -"2-letter state code (e.g. \"WA\"). The registry rejects state-only searches — pair it with another criterion. Blank values from form-based clients are treated as omitted."New value: +"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."
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "error"
      +      ]
      +    },
      +    "required": [
      +      "providers"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • changedOutput schema / properties / appliedTaxonomyDescription / description
      Previous value: -"The single taxonomy_description sent to the registry (from specialty resolution or the raw escape hatch)."New value: +"The exact NUCC specialization or classification used as the specialty filter."
    • addedOutput schema / properties / error
      Added value: +{
      +  "additionalProperties": {},
      +  "description": "Present when the call failed. Absent on success.",
      +  "properties": {
      +    "code": {
      +      "description": "JSON-RPC error code for this failure.",
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "data": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "reason": {
      +          "description": "Machine-readable failure mode. Declared by this tool: `no_search_criteria`: No effective search criterion was provided. `conflicting_specialty`: Both specialty and taxonomy_description were supplied. `unresolved_specialty`: The specialty term matched no NUCC taxonomy. `invalid_search_field`: The registry returned a field error (e.g. wildcard under 2 characters, bad provider type). Other values are possible when a failure originates below the handler.",
      +          "examples": [
      +            "no_search_criteria",
      +            "conflicting_specialty",
      +            "unresolved_specialty",
      +            "invalid_search_field"
      +          ],
      +          "type": "string"
      +        },
      +        "recovery": {
      +          "additionalProperties": {},
      +          "description": "Actionable next step for the caller.",
      +          "properties": {
      +            "hint": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "hint"
      +          ],
      +          "type": "object"
      +        },
      +        "retryable": {
      +          "description": "Whether retrying may succeed.",
      +          "type": "boolean"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "message": {
      +      "description": "Human-readable description of what went wrong.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "code",
      +    "message"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / resolvedTaxonomies / description
      Previous value: -"The taxonomy candidates the specialty term resolved to; the first was sent to the registry. Re-run with taxonomy_description to pick a different one."New value: +"Taxonomy candidates ranked for the specialty term. The first candidate supplies appliedTaxonomyDescription; a different candidate can be selected through taxonomy_description."
    • changedOutput schema / properties / resolvedTaxonomies / items / properties / description / description
      Previous value: -"The taxonomy description (specialization or classification) the registry matched on — the value sent as taxonomy_description."New value: +"Search-compatible NUCC specialization or classification for this candidate."
    • changedOutput schema / properties / truncated / description
      Previous value: -"True when the returned page hit the limit — more may match."New value: +"True when the NPPES page contained at least cap providers before location constraints were applied; more may match even when shown is below cap."
    • removedOutput schema / required
      Removed value: -[
      -  "providers"
      -]
  8. Changed5 schema fields changed
    • addedInput schema / properties / state / anyOf
      Added value: +[
      +  {
      +    "const": "",
      +    "type": "string"
      +  },
      +  {
      +    "description": "2-letter state code (e.g. \"WA\").",
      +    "pattern": "^[A-Z]{2}$",
      +    "type": "string"
      +  }
      +]
    • changedInput schema / properties / state / description
      Previous value: -"2-letter state code (e.g. \"WA\"). The registry rejects state-only searches — pair it with another criterion."New value: +"2-letter state code (e.g. \"WA\"). The registry rejects state-only searches — pair it with another criterion. Blank values from form-based clients are treated as omitted."
    • removedInput schema / properties / state / pattern
      Removed value: -"^[A-Z]{2}$"
    • removedInput schema / properties / state / type
      Removed value: -"string"
    • addedOutput schema / properties / providers / items / properties / postalCode
      Added value: +{
      +  "description": "Practice-location postal/ZIP code when present.",
      +  "type": "string"
      +}
  9. First observed

TDQS

A4.8/5.0
Behavior5/5

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

The annotations already declare read-only, open-world, and idempotent behavior, but the description adds substantial operational detail beyond annotations. It discloses the 1200-match search window, nextPage and continuationPostalCodes pagination behavior, practice-address-only matching, matchedLocation/matchedTaxonomy/matchedOtherName indicators, and the filtering effect of resolved taxonomy codes.

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 description is dense and front-loads purpose and core search facets before edge cases. Every sentence carries specific behavioral information, though the long single block contains some overlap with the already detailed schema and could be easier to scan if structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given a 14-parameter search tool with complex taxonomy, name-role, address, and pagination semantics, the description is complete enough to call correctly. It covers required criteria, rejected searches, pagination limits, taxonomy resolution effects, address filtering, and returned row highlights, even though an output schema already exists.

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 schema already documents the parameters well. The description still adds cross-parameter meaning that the schema alone does not fully convey, including specialty versus taxonomy_description mutual exclusivity, NUCC code/text resolution rules, name_role effects on first_name/last_name/name_search, and provider_type coupling with name fields.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: search the NPPES NPI registry for individual practitioners and healthcare organizations. It names the searchable facets and explicitly distinguishes itself from npi_get_provider by explaining that the returned NPI is the input for retrieving the full record when needed.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit usage constraints: at least one search criterion is required, state-only searches are rejected, and location must go in city/state/postal_code rather than specialty. It also names mutual exclusivity between specialty and taxonomy_description, explains name_role behavior, and routes the agent to npi_get_provider when full records are needed.

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.