Skip to main content
Glama

health_ndc_convert

Read-only

NDC 10/11-digit converter — Convert and validate National Drug Codes: 10-digit (4-4-2, 5-3-2, 5-4-1, hyphenated or not), 11-digit 5-4-2 billing format, or a 12-digit UPC barcode. Resolves ambiguous un-hyphenated codes against the FDA NDC Directory and returns the HIPAA/NCPDP billing NDC plus product (brand, generic, strength, labeler, package). Up to 20 comma-separated. Params: ndc=; optional verify=0 for offline conversion only. Price: $0.002 USDC (Base, via x402).

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": {
      "ndc": "<ndc>"
    },
    "name": "health_ndc_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
ndcYes58151-156-77,5815115677,0002-1433-80,12345-678-9

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint/openWorldHint annotations: it discloses that ambiguous un-hyphenated codes are resolved against the FDA NDC Directory (external lookup behavior), caps batch size at 20, offers an offline mode, and — critically — states a price of $0.002 USDC on Base via x402. Payment and network-resolution behavior are exactly the traits an agent needs before calling.

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?

Front-loaded with the verb and accepted formats, then output, then constraints, then price — a sensible information order with little filler. The trailing 'Params: ndc=; optional verify=0 …' fragment is tersely telegraphed and partially redundant with both the schema and the earlier text.

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 one-parameter tool with no output schema, it covers input formats, ambiguity resolution, batch limits, return contents, offline mode, and cost — nearly everything needed to call it correctly. The only defect is the phantom 'verify' parameter not present in the schema, which leaves the offline option's actual mechanics ambiguous.

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 coverage is 100% for the single ndc parameter, so baseline is 3; the description does add value by explaining the accepted hyphenated/unhyphenated variants and that comma-separated batches of up to 20 are allowed. However, it advertises a 'verify=0' parameter that does not exist in the input schema, which could lead an agent to send an invalid argument.

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+resource pair ('NDC 10/11-digit converter — Convert and validate National Drug Codes') and enumerates the exact accepted structures (4-4-2, 5-3-2, 5-4-1, 11-digit 5-4-2 billing, 12-digit UPC). An agent knows precisely what this tool does and what output artifact it produces (HIPAA/NCPDP billing NDC + product).

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?

Gives clear conditions: use it for conversion/validation across the listed formats, use comma-separated input for batch (max 20), and use 'verify=0 for offline conversion only'. It does not name an alternative sibling such as fda_ndc or state when NOT to use this tool, e.g. when a full drug lookup is wanted rather than a format fix.

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