Skip to main content
Glama

openFDA National Drug Code directory: searches US drug

health_openfda_drug_ndc
Read-only

openFDA National Drug Code directory: searches US drug listings by brand or generic name and returns labeler (company), NDC code, dosage form, route, marketing start date and active ingredients. Public FDA data; not medical advice. Related tools on this server, for a different need: gov_openfda_drugsfda when you need FDA Drugs@FDA approval records from openFDA for a generic. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.

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": {
      "q": "<q>"
    },
    "name": "health_openfda_drug_ndc"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesBrand or generic name, letters, digits, spaces and - only, 2 to 60 characters
limitNoRows to return, 1 to 25 (default 10)

Output Schema

NameRequiredDescriptionDefault
countNo
queryNo
sourceNo
resultsNo
checkedAtNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, and the description goes beyond them by disclosing the cost model ($0.002 per successful call, failed calls not charged), the payment rail (x402, USDC on Base/Solana and other networks), and the data provenance/disclaimer. It does not mention rate limits or result ordering, but the pricing disclosure is the operationally critical addition for an agent deciding whether to call.

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 purpose and return fields, then the alternative, then cost — a sensible ordering. The payment sentence is dense with network detail ('Solana and 10 more networks') that is marginal for tool selection, but every sentence otherwise earns its place.

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?

Given an output schema exists, the field enumeration is partly redundant, but the description still supplies the non-schema essentials: data source, medical-advice disclaimer, sibling routing, and pay-per-call cost. Missing only secondary details like rate limits or pagination behavior across the limit cap.

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%, with both q and limit fully documented including character rules and the 1-25 range, so the schema carries the parameter burden. The description only restates that q accepts brand or generic names, adding no syntax or format detail beyond the schema — baseline 3 is appropriate.

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 ('searches US drug listings by brand or generic name') and enumerates the returned fields (labeler, NDC code, dosage form, route, marketing start date, active ingredients). It also names the sibling it is not, gov_openfda_drugsfda, so an agent can distinguish approval records from NDC directory listings without opening either schema.

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

Usage Guidelines5/5

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

Explicitly routes the agent to gov_openfda_drugsfda with the selecting condition ('when you need FDA Drugs@FDA approval records for a generic'), which is exactly the when-to-use-an-alternative guidance that matters here. It also flags the data's nature ('Public FDA data; not medical advice'), a meaningful usage constraint.

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