Skip to main content
Glama
RowanErasmus

DailyMed MCP Server

by RowanErasmus

get_rxnorm_mappings_for_setid

Retrieve RxNorm medication identifiers for a specific SET ID to map drug information from the FDA DailyMed database for accurate drug data integration.

Instructions

Get RxNorm mappings for a specific SET ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
setIdYesThe SET ID to get RxNorm mappings for

Implementation Reference

  • The actual implementation of the tool, calling the mapping service.
    async getRxNormMappingsForSetId(setId: string) {
      return this.mappingService.getRxNormMappings(setId);
    }
  • src/tools.ts:516-529 (registration)
    The tool registration and input schema definition.
    {
      name: "get_rxnorm_mappings_for_setid",
      description: "Get RxNorm mappings for a specific SET ID",
      inputSchema: {
        type: "object",
        properties: {
          setId: {
            type: "string",
            description: "The SET ID to get RxNorm mappings for",
          },
        },
        required: ["setId"],
      },
    },
  • The handler logic in the main switch statement that calls the client method.
    case "get_rxnorm_mappings_for_setid":
      const rxNormMappings = await this.client.getRxNormMappingsForSetId(
        args.setId as string,
      );
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(rxNormMappings, null, 2),
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states what the tool does but doesn't describe any behavioral traits such as whether it's a read-only operation, potential rate limits, authentication requirements, error handling, or what the output format looks like. For a tool with no annotation coverage, this is a significant gap.

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 directly states the tool's purpose without any unnecessary words. It's appropriately sized and front-loaded, making it easy to understand at a glance.

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 doesn't explain what RxNorm mappings are, what the output looks like, or any behavioral aspects. For a tool in a domain with many similar siblings, more context is needed to help an agent use it correctly.

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 schema description coverage is 100%, with the single parameter 'setId' fully documented in the schema. The description adds no additional semantic context about the parameter beyond what's in the schema (e.g., what a SET ID represents, format examples, or valid ranges). With high schema coverage, the baseline score of 3 is appropriate.

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 verb ('Get') and resource ('RxNorm mappings'), and specifies the scope ('for a specific SET ID'). However, it doesn't differentiate from sibling tools like 'get_mappings_by_rxcui' or 'get_pharmacologic_class_mappings_for_setid', which appear to be related mapping tools. The purpose is clear but lacks sibling differentiation.

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. With multiple sibling tools that involve mappings (e.g., 'get_mappings_by_rxcui', 'get_pharmacologic_class_mappings_for_setid'), the description offers no context about prerequisites, when this tool is appropriate, or what distinguishes it from similar tools.

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