Skip to main content
Glama

Search FDA UNII records

search_unii_records
Read-onlyIdempotent

Search OpenFDA UNII records by pharmaceutical active ingredient name or UNII code to resolve ingredient identifiers and retrieve matching FDA records.

Instructions

Search OpenFDA Unique Ingredient Identifier (UNII) records by pharmaceutical active ingredient name or UNII code.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_unii_records"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax records to return (default 10).
queryYesIngredient name or UNII code (e.g. "aspirin", "metformin", "R16CO5Y76E").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds that the source is OpenFDA and that matching is by ingredient name or code, but says nothing about match semantics (exact vs substring), empty-result behavior, or rate limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler or redundancy. It is efficient, though its brevity leaves real gaps rather than being optimally sized for the sibling landscape.

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?

For a two-parameter read-only search with a fully documented schema and no output schema, this is minimally sufficient. The notable omission is disambiguation from three similarly named siblings, which is exactly what the description should resolve.

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 both query and limit are already documented with examples and bounds. The description merely restates that query accepts an ingredient name or UNII code, adding no new semantics beyond the schema.

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?

States a specific verb and resource ("Search OpenFDA Unique Ingredient Identifier (UNII) records") and names the two accepted search keys. It is clear on its own, but it does not distinguish itself from siblings like get_unii_by_code or lookup_unii_by_name, which sound like they accept the same inputs.

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?

There is no when-to-use guidance at all: nothing says whether this is a fuzzy/partial search versus the exact-lookup siblings, nor when batch_lookup_uniis is preferable. The agent must infer the choice from sibling names alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.