Skip to main content
Glama

Batch resolve FDA UNII codes

batch_lookup_uniis
Read-onlyIdempotent

Resolve up to 10 FDA UNII codes in one query to verify ingredients, support formulary checks, and validate SPL labeling data.

Instructions

Resolve up to 10 FDA 10-character UNII codes in a single query for formulary, SPL labeling, and ingredient verification.

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": {
      "uniis": "<uniis>"
    },
    "name": "batch_lookup_uniis"
  }
}

Input Schema

NameRequiredDescriptionDefault
uniisYesArray of 1 to 10 FDA UNII codes (e.g. ["R16CO5Y76E", "WK2XYI10QM"]).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.5/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 fully covered without prose. The description adds the batch-size constraint and the domain use cases, but says nothing about how partial failures or unknown codes are handled, nor about the shape of results.

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?

One sentence with the resource and the batch limit front-loaded, and no filler. The trailing use-case list is compact rather than padded, though it could be trimmed without loss.

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

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter, read-only batch lookup with full schema coverage and rich annotations, the definition supplies what an agent needs to select and call it. The remaining gap is result behavior (no output schema and no mention of partial or invalid results), which is minor here.

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 coverage is 100% and the single parameter already carries bounds (minItems 1, maxItems 10) and examples. The description contributes the '10-character' format constraint, which is a genuine detail not in the schema, but it does not clarify case sensitivity or handling of malformed codes.

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 names a specific verb and resource ('Resolve ... FDA 10-character UNII codes') and makes the batch nature explicit ('up to 10 ... in a single query'), which implicitly separates it from single-code siblings. It stops short of naming an alternative such as get_unii_by_code, so differentiation requires a small inference.

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

Usage Guidelines3/5

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

It gives intended contexts (formulary, SPL labeling, ingredient verification), which implies when to reach for it. There is no explicit when-not guidance, no mention of when to prefer the single-code lookup, and no stated prerequisites for the input codes.

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