Skip to main content
Glama
RowanErasmus

DailyMed MCP Server

by RowanErasmus

get_rxnorm_mappings_by_pharmacologic_class

Find RxNorm mappings for drugs within a specific pharmacologic class using the FDA DailyMed database to identify standardized drug codes.

Instructions

Find RxNorm mappings for drugs that belong to a specific pharmacologic class SET ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pharmaSetIdYesThe pharmacologic class SET ID to find RxNorm mappings for

Implementation Reference

  • The handler function that executes the logic to retrieve RxNorm mappings by pharmacologic class.
    getRxNormMappingsByPharmacologicClass(pharmaSetId: string): {
      pharmaSetId: string;
      splSetIds: string[];
      rxNormMappings: RxNormMapping[];
      fdaContext: {
        definition: string;
        explanation: string;
        classification: string[];
      };
    } {
      const splSetIds = this.pharmaSetIdToSplSetIds.get(pharmaSetId) || [];
      const allRxNormMappings: RxNormMapping[] = [];
      
      for (const splSetId of splSetIds) {
        const rxNormMappings = this.getRxNormMappings(splSetId);
        allRxNormMappings.push(...rxNormMappings);
      }
      
      return {
        pharmaSetId,
        splSetIds,
        rxNormMappings: allRxNormMappings,
        fdaContext: {
          definition: "A pharmacologic class is a group of active moieties that share scientifically documented properties",
          explanation: "According to FDA guidelines, pharmacologic classes provide clinically meaningful and scientifically valid drug classifications based on three key attributes: Mechanism of Action (MOA), Physiologic Effect (PE), and Chemical Structure (CS)",
          classification: [
            "Mechanism of Action (MOA): How the drug works at the molecular level",
            "Physiologic Effect (PE): The body's response to the drug",
            "Chemical Structure (CS): Structural characteristics of the active moiety",
            "Source: National Drug File Reference Terminology (NDF-RT)"
          ]
        }
      };
    }
  • src/tools.ts:558-566 (registration)
    The tool definition registration for 'get_rxnorm_mappings_by_pharmacologic_class'.
    {
      name: "get_rxnorm_mappings_by_pharmacologic_class",
      description: "Find RxNorm mappings for drugs that belong to a specific pharmacologic class SET ID",
      inputSchema: {
        type: "object",
        properties: {
          pharmaSetId: {
            type: "string",
            description: "The pharmacologic class SET ID to find RxNorm mappings for",
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 describes a read operation ('Find') but does not cover aspects like rate limits, error handling, response format, or data scope (e.g., whether it returns all mappings or a subset). This leaves significant gaps in understanding how the tool behaves.

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, clear sentence that efficiently conveys the tool's purpose without unnecessary words. It is front-loaded and wastes no space, making it highly concise and well-structured.

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 what the tool returns (e.g., format, structure of mappings) or behavioral traits like performance or limitations. For a tool with no structured support, more detail is needed to fully inform usage.

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 description mentions 'pharmacologic class SET ID', which aligns with the single parameter 'pharmaSetId' in the schema. Since schema description coverage is 100%, the schema already documents the parameter adequately. The description adds minimal value beyond the schema, meeting the baseline for high 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 ('Find RxNorm mappings') and the target ('drugs that belong to a specific pharmacologic class SET ID'), making the purpose evident. However, it does not explicitly differentiate from sibling tools like 'get_pharmacologic_class_mappings_for_setid' or 'get_rxnorm_mappings_for_setid', which might have overlapping functionality, so it lacks full sibling distinction.

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_pharmacologic_class_mappings_for_setid' or 'search_drugs_by_pharmacologic_class'. It mentions the parameter but does not specify prerequisites, exclusions, or comparative contexts, leaving usage unclear.

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