Skip to main content
Glama
RowanErasmus

DailyMed MCP Server

by RowanErasmus

get_all_drug_names

Retrieve a paginated list of all drug names from the FDA's DailyMed database for comprehensive reference and lookup.

Instructions

Get all available drug names in the DailyMed database with pagination support

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number for pagination (1-based, default: 1)
pageSizeNoNumber of results per page (default: 100, max: 100)

Implementation Reference

  • The actual implementation of the tool, calling the advanced search.
    async getAllDrugNames(page: number = 1, pageSize: number = 100): Promise<PaginatedDrugNameResponse> {
      return this.searchDrugNamesAdvanced({ page, pageSize });
    }
  • src/tools.ts:84-95 (registration)
    The definition and schema registration of the get_all_drug_names tool.
    name: "get_all_drug_names",
    description: "Get all available drug names in the DailyMed database with pagination support",
    inputSchema: {
      type: "object",
      properties: {
        page: {
          type: "number",
          description: "Page number for pagination (1-based, default: 1)",
          minimum: 1,
        },
        pageSize: {
          type: "number",
Behavior3/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 pagination support, which is a key behavioral trait not inferable from the schema alone. However, it doesn't cover other aspects like rate limits, authentication needs, error handling, or what the output looks like (e.g., format, size). This leaves gaps for a tool with potential large datasets.

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 a single, efficient sentence that front-loads the core purpose ('Get all available drug names') and includes essential behavioral detail ('with pagination support'). There is no wasted verbiage, and it directly addresses what the tool does without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (a list operation with pagination), no annotations, and no output schema, the description is minimally adequate. It covers the action and pagination but lacks details on output format, error cases, or usage context. For a tool that likely returns large datasets, more completeness would be beneficial to guide the agent effectively.

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?

The input schema has 100% description coverage, providing clear details on 'page' and 'pageSize' parameters. The description adds value by mentioning 'pagination support,' which contextualizes why these parameters exist, but doesn't provide additional semantic meaning beyond what the schema already documents. This meets the baseline for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Get all available drug names') and resource ('DailyMed database'), making the purpose evident. It distinguishes from some siblings like 'get_drug_details' or 'search_drug_names' by specifying it retrieves all names with pagination, though it could more explicitly differentiate from 'get_all_ndcs' or similar list tools by emphasizing it's for drug names only.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. It doesn't mention when to prefer this over 'search_drug_names' for filtered queries or other sibling tools like 'get_all_ndcs' for different data types. The description implies usage for bulk retrieval but lacks explicit context or exclusions.

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/RowanErasmus/dailymed-mcp-server'

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