Skip to main content
Glama

RxNorm / NDC Mapping

rxnorm_ndc
Read-onlyIdempotent

Map between RxNorm concepts and National Drug Codes (NDC).

Use this tool to:

  • Get all NDC codes for a drug (by RxCUI)

  • Find the RxCUI for an NDC code

  • Cross-reference between coding systems

Provide either an RxCUI to get NDCs, or an NDC to get the RxCUI.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ndcNoNDC code to look up RxCUI (alternative to rxcui)
rxcuiNoRxCUI to get NDC codes for

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
ndcYes
ndcsYes
rxcuiYes
provenanceYesProvenance block (contract v1.0): source, URL, data vintage, extraction instant, citation, license
query_modeYes
attributionYesCanonical source URLs of this response (attribution list)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint=false. The description adds value beyond these by stating that the tool supports either an RxCUI or an NDC as input, implying a mutually exclusive lookup behavior. This is useful operational detail not present in the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise, front-loaded with the core purpose, and uses bullets to enumerate the tool's functions. The final sentence provides the essential input convention. There is no wasted prose.

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?

For a simple two-parameter lookup tool with full schema coverage, relevant annotations, and an output schema present, the description provides all necessary guidance: what the tool maps, the supported directions, and the expected input. Nothing critical is missing.

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 are already described in the input schema. The description reinforces the 'either/or' semantics but does not add substantial new meaning beyond the schema entries, so the baseline score of 3 applies.

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 states a specific bidirectional mapping action between RxNorm concepts and NDC codes, then enumerates the two main use cases: getting NDCs for an RxCUI and finding an RxCUI for an NDC. This clearly differentiates the tool from sibling RxNorm tools such as rxnorm_search or rxnorm_concept, which handle different lookup concerns.

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 'Use this tool to' section explicitly lists the scenarios where the tool applies, and the final sentence tells the caller which input to provide. It does not mention alternatives or exclusion conditions, but the context is clear enough for an agent to select this tool for NDC/RxCUI cross-referencing.

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.