Skip to main content
Glama

Get FDA UNII record by code

get_unii_by_code
Read-onlyIdempotent

Fetch official FDA UNII metadata by exact 10-character code to verify ingredient identifiers and support formulary, labeling, or regulatory workflows.

Instructions

Fetch official FDA Unique Ingredient Identifier (UNII) metadata by exact 10-character 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": {
      "unii": "<unii>"
    },
    "name": "get_unii_by_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
uniiYes10-character alphanumeric FDA UNII code (e.g. "R16CO5Y76E").

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=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety and determinism profile is covered. The description adds that matching is exact and the source is official FDA data, but says nothing about not-found/empty results, error behavior, or upstream 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?

One sentence, front-loaded with the verb and resource, with the keying constraint trailing it; nothing is redundant or padded. It is slightly dense rather than optimally structured, but every clause earns its place.

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 tool with rich annotations and a fully documented schema, the description covers what is needed to invoke it correctly. The one gap is the return value: 'metadata' does not say which fields come back, and with no output schema the agent has no other source for that.

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% and the single parameter is fully documented with length bounds and an example, so the baseline is 3. The word 'exact' adds genuine matching semantics (no fuzzy or partial matching) that the schema's minLength/maxLength does not convey, but that is the only increment.

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 gives a specific verb (Fetch) and resource (official FDA UNII metadata) plus the keying constraint (exact 10-character UNII code). That distinguishes it from lookup_unii_by_name and search_unii_records implicitly, since those cannot be keyed by an exact code, but no sibling is named explicitly.

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?

The phrase 'by exact 10-character UNII code' implies the precondition that the caller already holds a full UNII, which steers agents away from name/keyword lookups. It never states when not to use it, nor names the name-based or search alternatives as fallbacks when the code is unknown or partial.

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