Skip to main content
Glama
RowanErasmus

DailyMed MCP Server

by RowanErasmus

get_all_uniis

Retrieve all UNII codes from the FDA DailyMed database with pagination support for systematic access to unique substance identifiers.

Instructions

Get all available UNII codes 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: 25, max: 100)

Implementation Reference

  • The handler implementation for 'get_all_uniis' in the UNIIClient, which delegates to searchUNIIs.
    async getAllUNIIs(page: number = 1, pageSize: number = 25): Promise<PaginatedUNIIResponse> {
      return this.searchUNIIs({ page, pageSize });
    }
  • src/tools.ts:164-182 (registration)
    Tool registration for 'get_all_uniis'.
      name: "get_all_uniis",
      description: "Get all available UNII codes 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",
            description: "Number of results per page (default: 25, max: 100)",
            minimum: 1,
            maximum: 100,
          },
        },
      },
    },
Behavior2/5

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

With no annotations, the description carries full burden but only mentions pagination support. It lacks details on permissions, rate limits, response format, or error handling. For a tool that likely returns a large dataset, this is insufficient behavioral disclosure.

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 UNII codes') and includes essential context ('in the DailyMed database with pagination support'). There is zero waste, 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 no annotations and no output schema, the description is incomplete. It doesn't explain what UNII codes are, the return format, or how to handle large result sets beyond pagination. For a tool with potential complexity in data retrieval, more context is needed.

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?

Schema description coverage is 100%, so the schema fully documents the two parameters (page and pageSize). The description adds no additional parameter semantics beyond implying pagination, which is already covered in the schema. Baseline 3 is appropriate as the schema does the heavy lifting.

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 'all available UNII codes in the DailyMed database', making the purpose specific. It distinguishes from sibling tools like 'search_uniis' by implying this retrieves all codes rather than searching, though it doesn't explicitly name the alternative.

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 like 'search_uniis' or other 'get_all_' tools. The description mentions pagination support but doesn't specify use cases, prerequisites, or exclusions, leaving the agent without contextual direction.

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