Skip to main content
Glama

npi-providers-mcp-server

Npi Lookup Taxonomy

npi_lookup_taxonomy
Read-onlyIdempotent

Resolve and browse the NUCC Healthcare Provider Taxonomy — the specialty code set NPPES uses — fully offline (bundled). Mode resolve turns a plain-language specialty (e.g. "cardiologist", "heart doctor") into matching active taxonomy entries, excluding codes NUCC marks inactive; mode get returns the full entry for an exact code, including NUCC's Notes; mode browse walks the hierarchy (grouping → classification → specialization), optionally filtered by grouping, classification, and NUCC section; its first page lists the groupings the filters reach with entry counts, plus that grouping's classifications when they reach exactly one. Individual includes Group codes; section does not determine NPI entity type, which comes from NPPES enumeration_type. Every entry carries its status, and an inactive code names its replacement when NUCC gives one; get and browse still return inactive codes. An active entry's code goes straight into npi_search_providers taxonomy_description, which searches with that code's text.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "mode": "<mode>"
    },
    "name": "npi_lookup_taxonomy"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoFor get only: exact NUCC taxonomy code, e.g. "207RC0000X".
modeYesresolve: plain-language specialty to codes; get: exact code; browse: hierarchy.
skipNoEntries to skip before the page (0–1000). Keep the same query and limit, then raise skip by limit each call.
limitNoMaximum entries for resolve/browse; defaults to 20. Positive integers above 50 are clamped to 50 unless NPI_CLAMP_LIMITS is disabled.
queryNoThe plain-language specialty term to resolve, e.g. "pediatric cardiologist".
sectionNoFor browse only: NUCC section, independent of NPI entity type. Individual includes Group codes.
groupingNoFilter to a top-level grouping by case-insensitive substring, e.g. "physicians".
classificationNoFor browse only: one classification by its full name, case-insensitive, as browse lists it, e.g. "Internal Medicine". Combines with grouping and section.

Output Schema

NameRequiredDescriptionDefault
capNoThe limit that was applied.
errorNoPresent when the call failed. Absent on success.
shownNoNumber of entries returned.
noticeNoGuidance — how to page a truncated result with skip, or how to broaden when nothing matched.
matchesNoMatching taxonomy entries. For mode "get" this is the single requested entry; for "resolve"/"browse" it is the ranked/sorted matches up to limit.
groupingsNoBrowse, first page (skip 0) without classification: each grouping the grouping and section filters reach, sorted by name. Pass a name as grouping to page its entries.
truncatedNoTrue when the list was capped at `limit` (more entries may match).
classificationsNoWith groupings, when the filters reach exactly one grouping: its classifications, sorted by name. Keep the filters and pass a name as classification to page exactly count entries.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / classification
      Added value: +{
      +  "description": "For browse only: one classification by its full name, case-insensitive, as browse lists it, e.g. \"Internal Medicine\". Combines with grouping and section.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / classifications
      Added value: +{
      +  "description": "With groupings, when the filters reach exactly one grouping: its classifications, sorted by name. Keep the filters and pass a name as classification to page exactly count entries.",
      +  "items": {
      +    "additionalProperties": false,
      +    "description": "A grouping or classification name with its entry count.",
      +    "properties": {
      +      "count": {
      +        "description": "Entries browse returns for this name under the same filters, inactive codes included.",
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "name": {
      +        "description": "The grouping or classification name, as NUCC spells it.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "count"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / groupings
      Added value: +{
      +  "description": "Browse, first page (skip 0) without classification: each grouping the grouping and section filters reach, sorted by name. Pass a name as grouping to page its entries.",
      +  "items": {
      +    "additionalProperties": false,
      +    "description": "A grouping or classification name with its entry count.",
      +    "properties": {
      +      "count": {
      +        "description": "Entries browse returns for this name under the same filters, inactive codes included.",
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "name": {
      +        "description": "The grouping or classification name, as NUCC spells it.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "count"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  2. Changed7 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / oneOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "limit": {
      -        "default": 20,
      -        "description": "Maximum matching entries to return (1–50).",
      -        "maximum": 50,
      -        "minimum": 1,
      -        "type": "integer"
      -      },
      -      "mode": {
      -        "const": "resolve",
      -        "description": "Resolve a plain-language specialty to taxonomy codes.",
      -        "type": "string"
      -      },
      -      "query": {
      -        "description": "The plain-language specialty term to resolve, e.g. \"pediatric cardiologist\".",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "skip": {
      -        "default": 0,
      -        "description": "Entries to skip before the page (0–1000). Keep the same query and limit, then raise skip by limit each call.",
      -        "maximum": 1000,
      -        "minimum": 0,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "mode",
      -      "query"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "code": {
      -        "description": "The exact NUCC taxonomy code, e.g. \"207RC0000X\".",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "mode": {
      -        "const": "get",
      -        "description": "Fetch one exact taxonomy entry by code.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "mode",
      -      "code"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "grouping": {
      -        "description": "Filter to a top-level grouping by case-insensitive substring, e.g. \"physicians\".",
      -        "type": "string"
      -      },
      -      "limit": {
      -        "default": 20,
      -        "description": "Maximum entries to return (1–50).",
      -        "maximum": 50,
      -        "minimum": 1,
      -        "type": "integer"
      -      },
      -      "mode": {
      -        "const": "browse",
      -        "description": "Browse the taxonomy hierarchy.",
      -        "type": "string"
      -      },
      -      "section": {
      -        "description": "Filter by NPI section: Individual (NPI-1) or Non-Individual (NPI-2).",
      -        "enum": [
      -          "Individual",
      -          "Non-Individual"
      -        ],
      -        "type": "string"
      -      },
      -      "skip": {
      -        "default": 0,
      -        "description": "Entries to skip before the page (0–1000). Keep the same filters and limit, then raise skip by limit each call.",
      -        "maximum": 1000,
      -        "minimum": 0,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "mode"
      -    ],
      -    "type": "object"
      -  }
      -]
    • addedInput schema / properties
      Added value: +{
      +  "code": {
      +    "description": "For get only: exact NUCC taxonomy code, e.g. \"207RC0000X\".",
      +    "type": "string"
      +  },
      +  "grouping": {
      +    "description": "Filter to a top-level grouping by case-insensitive substring, e.g. \"physicians\".",
      +    "type": "string"
      +  },
      +  "limit": {
      +    "description": "Maximum entries for resolve/browse; defaults to 20. Positive integers above 50 are clamped to 50 unless NPI_CLAMP_LIMITS is disabled.",
      +    "maximum": 9007199254740991,
      +    "minimum": 1,
      +    "type": "integer"
      +  },
      +  "mode": {
      +    "description": "resolve: plain-language specialty to codes; get: exact code; browse: hierarchy.",
      +    "enum": [
      +      "resolve",
      +      "get",
      +      "browse"
      +    ],
      +    "type": "string"
      +  },
      +  "query": {
      +    "description": "The plain-language specialty term to resolve, e.g. \"pediatric cardiologist\".",
      +    "type": "string"
      +  },
      +  "section": {
      +    "description": "For browse only: NUCC section, independent of NPI entity type. Individual includes Group codes.",
      +    "enum": [
      +      "Individual",
      +      "Non-Individual"
      +    ],
      +    "type": "string"
      +  },
      +  "skip": {
      +    "description": "Entries to skip before the page (0–1000). Keep the same query and limit, then raise skip by limit each call.",
      +    "maximum": 1000,
      +    "minimum": 0,
      +    "type": "integer"
      +  }
      +}
    • addedInput schema / required
      Added value: +[
      +  "mode"
      +]
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `no_match`: A get code matched no taxonomy entry, a resolve query matched no active one (the message names any inactive codes it matched), or a resolve query was made only of generic words (\"doctor\", \"M.D.\", \"specialist\") that name no specialty. `missing_argument`: The required query or code was present but blank after trimming. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `no_match`: A get code matched no taxonomy entry, a resolve query matched no active one (the message names any inactive codes it matched), or a resolve query was made only of generic words (\"doctor\", \"M.D.\", \"specialist\") that name no specialty. `missing_argument`: The required query or code was missing or blank after trimming. `wrong_mode_argument`: An explicitly supplied field belongs to a different mode. Other values are possible when a failure originates below the handler."
    • changedOutput schema / properties / error / properties / data / properties / reason / examples
      Previous value: -[
      -  "no_match",
      -  "missing_argument"
      -]New value: +[
      +  "no_match",
      +  "missing_argument",
      +  "wrong_mode_argument"
      +]
    • changedOutput schema / properties / matches / items / properties / section / description
      Previous value: -"NPI enumeration scope: Individual (NPI-1) or Non-Individual (NPI-2)."New value: +"NUCC section. Individual includes Group codes; Non-Individual covers facilities, suppliers and agencies. Provider entity type comes from NPPES enumeration_type."
  3. Changed1 schema field changed
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `no_match`: A get code matched no taxonomy entry, or a resolve query matched no active one (the message names any inactive codes it matched). `missing_argument`: The required query or code was present but blank after trimming. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `no_match`: A get code matched no taxonomy entry, a resolve query matched no active one (the message names any inactive codes it matched), or a resolve query was made only of generic words (\"doctor\", \"M.D.\", \"specialist\") that name no specialty. `missing_argument`: The required query or code was present but blank after trimming. Other values are possible when a failure originates below the handler."
  4. Changed5 schema fields changed
    • changedOutput schema / properties / error / properties / data / properties / reason / description
      Previous value: -"Machine-readable failure mode. Declared by this tool: `no_match`: A resolve query or get code matched no taxonomy entry. `missing_argument`: The required query or code was present but blank after trimming. Other values are possible when a failure originates below the handler."New value: +"Machine-readable failure mode. Declared by this tool: `no_match`: A get code matched no taxonomy entry, or a resolve query matched no active one (the message names any inactive codes it matched). `missing_argument`: The required query or code was present but blank after trimming. Other values are possible when a failure originates below the handler."
    • addedOutput schema / properties / matches / items / properties / notes
      Added value: +{
      +  "description": "NUCC Notes: sources, revision history, and status remarks. Returned by mode \"get\" only, when NUCC records a note.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / matches / items / properties / replacedBy
      Added value: +{
      +  "description": "For an inactive code, the active replacement code NUCC names, when it names one.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / matches / items / properties / status
      Added value: +{
      +  "description": "NUCC status. Inactive codes are no longer maintained: mode \"resolve\" excludes them, while \"get\" and \"browse\" return them.",
      +  "enum": [
      +    "active",
      +    "inactive"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / properties / matches / items / required
      Previous value: -[
      -  "code",
      -  "grouping",
      -  "classification",
      -  "displayName",
      -  "section"
      -]New value: +[
      +  "code",
      +  "grouping",
      +  "classification",
      +  "displayName",
      +  "section",
      +  "status"
      +]
  5. Changed8 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 / oneOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "limit": {
      +        "default": 20,
      +        "description": "Maximum matching entries to return (1–50).",
      +        "maximum": 50,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "mode": {
      +        "const": "resolve",
      +        "description": "Resolve a plain-language specialty to taxonomy codes.",
      +        "type": "string"
      +      },
      +      "query": {
      +        "description": "The plain-language specialty term to resolve, e.g. \"pediatric cardiologist\".",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "skip": {
      +        "default": 0,
      +        "description": "Entries to skip before the page (0–1000). Keep the same query and limit, then raise skip by limit each call.",
      +        "maximum": 1000,
      +        "minimum": 0,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "mode",
      +      "query"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "code": {
      +        "description": "The exact NUCC taxonomy code, e.g. \"207RC0000X\".",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "mode": {
      +        "const": "get",
      +        "description": "Fetch one exact taxonomy entry by code.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "mode",
      +      "code"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "grouping": {
      +        "description": "Filter to a top-level grouping by case-insensitive substring, e.g. \"physicians\".",
      +        "type": "string"
      +      },
      +      "limit": {
      +        "default": 20,
      +        "description": "Maximum entries to return (1–50).",
      +        "maximum": 50,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "mode": {
      +        "const": "browse",
      +        "description": "Browse the taxonomy hierarchy.",
      +        "type": "string"
      +      },
      +      "section": {
      +        "description": "Filter by NPI section: Individual (NPI-1) or Non-Individual (NPI-2).",
      +        "enum": [
      +          "Individual",
      +          "Non-Individual"
      +        ],
      +        "type": "string"
      +      },
      +      "skip": {
      +        "default": 0,
      +        "description": "Entries to skip before the page (0–1000). Keep the same filters and limit, then raise skip by limit each call.",
      +        "maximum": 1000,
      +        "minimum": 0,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "mode"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedInput schema / properties
      Removed value: -{
      -  "code": {
      -    "description": "For mode \"get\": the exact NUCC taxonomy code (e.g. \"207RC0000X\").",
      -    "type": "string"
      -  },
      -  "grouping": {
      -    "description": "For mode \"browse\": filter to a top-level grouping by case-insensitive substring (e.g. \"physicians\").",
      -    "type": "string"
      -  },
      -  "limit": {
      -    "default": 20,
      -    "description": "Maximum entries to return for resolve/browse (1–50). Ignored for get.",
      -    "maximum": 50,
      -    "minimum": 1,
      -    "type": "integer"
      -  },
      -  "mode": {
      -    "description": "resolve: plain term → codes. get: exact code → entry. browse: walk the hierarchy.",
      -    "enum": [
      -      "resolve",
      -      "get",
      -      "browse"
      -    ],
      -    "type": "string"
      -  },
      -  "query": {
      -    "description": "For mode \"resolve\": the plain-language specialty term to resolve (e.g. \"pediatric cardiologist\").",
      -    "type": "string"
      -  },
      -  "section": {
      -    "description": "For mode \"browse\": filter by NPI section — Individual (NPI-1) or Non-Individual (NPI-2).",
      -    "enum": [
      -      "Individual",
      -      "Non-Individual"
      -    ],
      -    "type": "string"
      -  },
      -  "skip": {
      -    "default": 0,
      -    "description": "Entries to skip before the page, for paging past a truncated resolve/browse result (0–1000). Keep the same query/filters and limit, raise skip by limit each call. Ignored for get.",
      -    "maximum": 1000,
      -    "minimum": 0,
      -    "type": "integer"
      -  }
      -}
    • removedInput schema / required
      Removed value: -[
      -  "mode"
      -]
    • 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": [
      +      "matches"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "error"
      +    ]
      +  }
      +]
    • 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_match`: A resolve query or get code matched no taxonomy entry. `missing_argument`: The required query or code was present but blank after trimming. Other values are possible when a failure originates below the handler.",
      +          "examples": [
      +            "no_match",
      +            "missing_argument"
      +          ],
      +          "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"
      +}
    • removedOutput schema / required
      Removed value: -[
      -  "matches"
      -]
  6. Changed2 schema fields changed
    • addedInput schema / properties / skip
      Added value: +{
      +  "default": 0,
      +  "description": "Entries to skip before the page, for paging past a truncated resolve/browse result (0–1000). Keep the same query/filters and limit, raise skip by limit each call. Ignored for get.",
      +  "maximum": 1000,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • changedOutput schema / properties / notice / description
      Previous value: -"Guidance when nothing matched — suggests broadening or browsing the hierarchy."New value: +"Guidance — how to page a truncated result with skip, or how to broaden when nothing matched."
  7. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/offline annotations, it discloses that the data is fully offline and bundled, that resolve excludes NUCC-inactive codes while get and browse still return them, that inactive codes name their replacement when NUCC provides one, and that section does not imply NPI entity type (that comes from NPPES enumeration_type). These are exactly the behavioral traits an agent could not infer from annotations or schema.

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?

Purpose is front-loaded and no sentence is filler, but the entire definition is one dense run-on paragraph covering three modes, which makes scanning for mode-specific rules harder than it needs to be. Slightly tighter segmentation would cost nothing in information.

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?

With 8 parameters, an output schema, and full annotation coverage, the description still supplies the mode semantics, filter interactions, status/replacement handling, and the downstream link to npi_search_providers. Nothing an agent needs in order to select a mode and call it correctly appears to be missing.

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 carries the baseline. The description still adds meaning: browse's first page lists reachable groupings with entry counts and their classifications only when exactly one is reached, grouping is a substring match, and section is independent of entity type. That is real semantic value on top of the schema text.

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?

The description names a specific verb and resource — resolve/browse the NUCC Healthcare Provider Taxonomy, the code set NPPES uses — and immediately partitions behavior into three named modes (resolve, get, browse). An agent can tell exactly what it does and how it differs from npi_search_providers, which is named as the downstream consumer rather than a substitute.

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?

Each mode is tied to a condition: resolve for a plain-language specialty, get for an exact code, browse for hierarchy walking. It also explains the handoff (an active code goes into npi_search_providers taxonomy_description). It stops short of explicitly saying when NOT to use this tool versus npi_get_provider, so it is clear guidance without full exclusion rules.

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.