Skip to main content
Glama

US NPI Lookup API - CMS NPPES Healthcare Provider Registry & Luhn Validator

npi_lookup
Read-onlyIdempotent

Look up US healthcare providers and organizations by 10-digit NPI number (single or batch up to 20), organization name, provider name, city, state, ZIP code, or taxonomy/specialty via the official US CMS NPPES Registry API v2.1. Includes offline ISO/IEC 7812 Luhn-80840 NPI checksum validation, practice/mailing addresses, taxonomy codes, and license info. 0 AI, public domain US gov data. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.002/call via x402 at https://radarbg.com/x402/npi-lookup.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "npi": "1245319599"
    },
    "name": "npi_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
npiNoSingle 10-digit NPI number (e.g. '1245319599')
cityNoUS practice city
npisNoUp to 20 NPI numbers for bulk lookup or validation
limitNoMax search results (1–50)
stateNo2-letter US state code (e.g. 'CA', 'NY', 'TX')
lastNameNoIndividual provider last name
firstNameNoIndividual provider first name
entityTypeNoFilter by Individual (NPI-1) or Organization (NPI-2)all
postalCodeNo5-digit US ZIP code
validateOnlyNoIf true, run offline Luhn-80840 checksum validation only
organizationNameNoHealthcare organization name (e.g. 'Mayo Clinic')
taxonomyDescriptionNoSpecialty / taxonomy keyword (e.g. 'Cardiology', 'Pharmacy')

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and openWorld, so the safety profile is covered; the description adds genuinely useful context beyond that — the upstream data source (CMS NPPES API v2.1), auth mechanism (X-API-Key or x402 payment), and a concrete rate limit (5 calls/day per IP) plus per-call pricing. It does not disclose what the response looks like, how errors or over-limit calls surface, or pagination behavior, which keeps it from a 5.

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 capability statement comes first and is dense but front-loaded, with pricing prose trailing behind. Some of the trailing material (the specific €15/mo anchor link and the '0 AI, public domain' marketing clause) is closer to promotion than tool guidance, costing a point, but nothing is padded or redundant to the point of confusion.

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

Completeness4/5

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

For a 12-parameter, zero-required tool with no output schema, the description compensates well by naming the returned data (practice/mailing addresses, taxonomy codes, license info) and the access/pricing model. It is still silent on behavior with no filters supplied, on result ordering and limit interaction, and on empty/error responses, which an agent calling a broad search tool would want.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already carries the per-parameter semantics and the baseline is 3. The description largely restates those keys and only marginally extends them (batch cap of 20, offline validation), without explaining how parameters combine — e.g., whether name/city/state are ANDed, or whether npi overrides the other filters.

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 (look up) and resource (US healthcare providers/organizations in the CMS NPPES registry), and enumerates the exact query keys: 10-digit NPI (single or batch up to 20), organization name, provider name, city, state, ZIP, and taxonomy. It also distinguishes two modes — registry search vs. offline Luhn-80840 checksum validation — so an agent knows this is not a generic search tool.

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

Usage Guidelines3/5

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

Usage context is implied by the enumerated lookup keys, and the free/paid access paths plus the validateOnly mode give some operational guidance. However, there is no explicit when-to-use/when-not guidance and no named alternative (e.g., pointing to us_zip_code_lookup for ZIP-only work), so the agent must infer selection conditions itself.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources