Skip to main content
Glama

Resolve ingredient name to FDA UNII

lookup_unii_by_name
Read-onlyIdempotent

Resolve an exact or partial pharmaceutical active ingredient name to its official FDA UNII identifier(s) for formulary, labeling, and regulatory workflows.

Instructions

Resolve an exact or partial pharmaceutical active ingredient name to its official FDA UNII identifier(s).

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": {
      "substance_name": "<substance_name>"
    },
    "name": "lookup_unii_by_name"
  }
}

Input Schema

NameRequiredDescriptionDefault
exactNoWhen true, match substance_name.exact (default false).
limitNoMax matches to return (default 10).
substance_nameYesActive ingredient name (e.g. "ASPIRIN", "SEMAGLUTIDE", "IBUPROFEN").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, open-world, non-destructive, so the safety profile is covered. The description adds that matching may be partial and that multiple identifiers can come back, but it does not explain ambiguity handling, result ordering, or what happens when no match is found.

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?

A single sentence with zero filler, front-loading the verb and the resource. Nothing is repeated from annotations or schema.

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 simple read-only, three-parameter lookup with full schema coverage and rich annotations, the description covers the essential purpose and the exact/partial distinction. It could say more about multi-match results (relevant given the limit parameter and 'identifier(s)' plural), which is the main remaining gap.

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 all three parameters are already documented in the schema. The description's 'exact or partial' phrasing loosely maps to the exact flag but adds no format or syntax detail beyond what the schema states, so baseline 3 applies.

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 ('Resolve') and a precise resource ('pharmaceutical active ingredient name to its official FDA UNII identifier(s)'), and notes both exact and partial matching. It does not name a sibling to distinguish itself from, so the agent must infer that get_unii_by_code handles other identifier types.

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?

Usage is implied by the phrasing 'Resolve ... name to its UNII' — it is clearly the name-based entry point. There is no explicit when-to-use, when-not-to-use, or reference to alternatives such as batch_lookup_uniis for multiple names or get_unii_by_code for other identifier systems.

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