Skip to main content
Glama
RowanErasmus

DailyMed MCP Server

by RowanErasmus

get_download_links

Retrieve ZIP and PDF download links for specific drug documents from the FDA DailyMed database using the drug's SET ID.

Instructions

Get download links for ZIP and PDF files of a specific drug by its SET ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
setIdYesThe SET ID of the drug to get download links for

Implementation Reference

  • Implementation of the download link generation for ZIP and PDF files in SPLClient.
    async downloadSPLZip(setId: string): Promise<string> {
      if (!setId || typeof setId !== "string") {
        throw new Error("Valid SET ID is required");
      }
    
      return `${this.baseURL}/spls/${setId}.zip`;
    }
    
    async downloadSPLPdf(setId: string): Promise<string> {
      if (!setId || typeof setId !== "string") {
        throw new Error("Valid SET ID is required");
      }
    
      return `${this.baseURL}/spls/${setId}.pdf`;
    }
  • src/index.ts:206-227 (registration)
    Tool handler registration for 'get_download_links' in the DailyMed server.
    case "get_download_links":
      const zipLink = await this.client.downloadSPLZip(
        args.setId as string,
      );
      const pdfLink = await this.client.downloadSPLPdf(
        args.setId as string,
      );
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(
              {
                zipDownload: zipLink,
                pdfDownload: pdfLink,
              },
              null,
              2,
            ),
          },
        ],
      };
  • Tool schema definition for 'get_download_links'.
      name: "get_download_links",
      description:
        "Get download links for ZIP and PDF files of a specific drug by its SET ID",
      inputSchema: {
        type: "object",
        properties: {
          setId: {
            type: "string",
            description: "The SET ID of the drug to get download links for",
          },
        },
        required: ["setId"],
      },
    },
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states what the tool does but lacks details on permissions, rate limits, output format (e.g., structure of links), or any side effects. This is inadequate for a tool that likely involves network operations and file access.

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 key information ('Get download links for ZIP and PDF files') without any wasted words. It is appropriately sized for the tool's complexity and structured for quick comprehension.

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

Completeness2/5

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

Given the lack of annotations and output schema, the description is incomplete. It does not explain the return values (e.g., what the download links look like, any metadata), behavioral traits, or error handling. For a tool with no structured support, more context is needed 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, clearly documenting the single 'setId' parameter. The description adds no additional semantic details beyond implying it's for a drug, which is already covered by the schema's description. Thus, it meets the baseline for high schema coverage without adding value.

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 download links') and the resource ('ZIP and PDF files of a specific drug by its SET ID'), making the purpose unambiguous. However, it does not explicitly differentiate from sibling tools like 'get_drug_media' or 'get_drug_details', which might also involve file retrieval, so it lacks sibling distinction for a perfect score.

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?

The description provides no guidance on when to use this tool versus alternatives, such as 'get_drug_media' or other sibling tools that might handle files. It implies usage for a specific drug by SET ID but offers no exclusions, prerequisites, or comparisons, leaving the agent to infer context.

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