Skip to main content
Glama

Who an NPI belonged to, as of a date

lookup_provider
Read-onlyIdempotent

Validate an NPI check digit, then look up its NPPES history as of a date or now: name, entity type, status, practice address, taxonomy, versions, and hospital price-file disclosure.

Instructions

Look up a National Provider Identifier in the NPPES registry history: name, entity type, status, practice address and taxonomy as of a date (or now), every version on record, and whether a hospital in the release discloses it. Validates the NPI check digit first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
npiYesNational Provider Identifier, 10 digits
as_ofNoDate to look the provider up as of (YYYY-MM-DD). Omit for the current registration.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
npiYes
nameYes
as_ofYesThe date asked about, or null for the current registration
notesYes
entityYesunknown = NPPES published only a deactivation notice
statusYes
versionYes
valid_toYes
versionsYesEvery version of this NPI in the release's history
credentialYes
provenanceYes
valid_fromYes
release_tagYes
disclosed_byYesHospitals in the release whose price file discloses this NPI, with clear-pricer's reconciliation outcome
taxonomy_codesYes
replacement_npiYes
enumeration_dateYes
practice_addressYes
primary_taxonomyYes
deactivation_dateYes
deactivation_reasonYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, closed-world), and the description adds real behavior beyond them: it validates the NPI check digit first and returns the full version history rather than a single current record. It also gestures at a cross-reference with release data ('whether a hospital in the release discloses it'), which is disclosed behavior an agent could not infer.

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?

One front-loaded sentence that opens with the verb and resource before the return-field list, and the check-digit validation is tacked on at the end. Dense and mostly waste-free, though the trailing list of returned fields is slightly run-on.

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?

With an output schema present, the description needn't document return values, and annotations carry the safety profile; the temporal semantics and validation behavior round it out well. The phrase 'whether a hospital in the release discloses it' is the one mildly ambiguous element, implying a release cross-reference the agent has to guess at.

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 both parameters (npi pattern, as_of YYYY-MM-DD with 'omit for current registration') are already fully documented. The description reinforces the temporal default but adds no syntax or constraint beyond what the schema provides — the baseline 3.

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 ('Look up a National Provider Identifier in the NPPES registry history') and enumerates the scope of what it returns (name, entity type, status, practice address, taxonomy, every version on record). No sibling tool touches NPIs, so the distinction from find_codes, get_payer_rates, etc. is unambiguous.

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?

The description makes clear when to use it — 'as of a date (or now)' — and what input framing it expects (a validated NPI). It never states a when-not condition or names an alternative, but no sibling overlaps this function, so the missing exclusion is low-cost.

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