Skip to main content
Glama
RowanErasmus

DailyMed MCP Server

by RowanErasmus

get_mapping_statistics

Retrieve statistics about loaded mapping files to monitor data integration status and verify connections between drug identifiers in the DailyMed database.

Instructions

Get statistics about loaded mapping files

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The actual implementation of the mapping statistics retrieval logic in the MappingService class.
    getStatistics(): {
      pharmacologicClassMappings: number;
      rxNormMappings: number;
      uniqueSetIds: number;
      uniqueRxCUIs: number;
      uniquePharmacologicClasses: number;
    } {
      let totalPharmaMappings = 0;
      let totalRxNormMappings = 0;
      
      for (const mappings of this.pharmacologicClassMappings.values()) {
        totalPharmaMappings += mappings.length;
      }
      
      for (const mappings of this.rxNormMappings.values()) {
        totalRxNormMappings += mappings.length;
      }
      
      return {
        pharmacologicClassMappings: totalPharmaMappings,
  • The DailyMedClient method that calls the mapping service to get statistics.
    async getMappingStatistics() {
      return this.mappingService.getStatistics();
    }
  • src/tools.ts:494-501 (registration)
    Tool registration for get_mapping_statistics.
    {
      name: "get_mapping_statistics",
      description: "Get statistics about loaded mapping files",
      inputSchema: {
        type: "object",
        properties: {},
      },
    },
  • The index handler where the tool call is dispatched to the client.
    case "get_mapping_statistics":
      const mappingStats = await this.client.getMappingStatistics();

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