Skip to main content
Glama
sapientsai

OpenFDA MCP Server

by sapientsai

search_drug_ndc

Find drug product details by NDC, brand name, generic name, labeler, dosage form, or route. Retrieve active ingredients and packaging information.

Instructions

Search the National Drug Code (NDC) Directory for drug product identification. Find drugs by NDC, brand name, generic name, labeler, dosage form, or route. Returns product details, active ingredients, and packaging information.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
skipNoNumber of results to skip for pagination
limitNoMaximum results to return (1-100, default 10)
routeNoRoute of administration
brandNameNoDrug brand name
dosageFormNoDosage form (e.g., 'tablet', 'capsule', 'injection')
productNdcNoNational Drug Code (NDC)
genericNameNoDrug generic name
labelerNameNoDrug labeler/manufacturer name
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses that the tool returns 'product details, active ingredients, and packaging information,' which is adequate for a read-only search. However, it omits details on pagination behavior, rate limits, or empty result handling, though skip/limit parameters are in the schema.

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?

Two sentences efficiently state the core purpose and searchable fields, with no redundant or unnecessary information.

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?

The description covers the tool's main inputs and outputs, but given the lack of an output schema and the presence of many sibling tools, it could benefit from clarifying the specific use case (e.g., 'Use this for NDC-specific identification') or mentioning pagination. However, it is still reasonably complete for a search tool.

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 baseline is 3. The description reinforces the searchable fields but does not add new semantic meaning beyond what the parameter descriptions already convey.

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 clearly specifies the tool's action ('Search the National Drug Code (NDC) Directory'), the resource ('drug product identification'), and the searchable fields (NDC, brand name, etc.), distinguishing it from sibling tools that target other FDA datasets.

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?

The description lists searchable fields, implying use when identifying drugs by those attributes, but does not explicitly state when to avoid this tool or compare to siblings like search_drug_labels or search_drug_adverse_events.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sapientsai/openfda-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server