Skip to main content
Glama
RowanErasmus

DailyMed MCP Server

by RowanErasmus

get_all_rxcuis

Retrieve RxCUI codes from the FDA DailyMed database with pagination to access standardized drug identifiers for integration and analysis.

Instructions

Get all available RxCUI 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_rxcuis in the RxNorm client.
    async getAllRxCUIs(page: number = 1, pageSize: number = 25): Promise<PaginatedRxCUIResponse> {
      return this.searchRxCUIs({ page, pageSize });
    }
  • src/tools.ts:144-155 (registration)
    Registration of the get_all_rxcuis tool definition.
    name: "get_all_rxcuis",
    description: "Get all available RxCUI 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",
Behavior3/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. It discloses pagination support, which is useful behavioral context. However, it lacks details on rate limits, authentication needs, error handling, or the format/scope of returned data (e.g., whether it includes metadata or just codes).

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 and includes essential behavioral context (pagination). There is no wasted verbiage or redundancy.

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

Completeness3/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 minimal but adequate for a read-only list tool. It covers the purpose and pagination but lacks details on response format, total count availability, or error conditions. It meets minimum viability but has clear gaps.

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 when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Get all available RxCUI codes'), the resource ('in the DailyMed database'), and includes a key behavioral trait ('with pagination support'). It distinguishes itself from sibling tools like 'search_rxcuis' by emphasizing retrieval of all codes rather than searching/filtering.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for retrieving all RxCUI codes with pagination, which differentiates it from search tools. However, it does not explicitly state when to use this tool versus alternatives like 'search_rxcuis' or 'get_mappings_by_rxcui', nor does it mention any prerequisites or exclusions.

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