Skip to main content
Glama
openfda-substance-registry-mcp

openfda-substance-registry-mcp

Get FDA GSRS substance by UNII

get_substance_by_unii
Read-onlyIdempotent

Retrieve complete FDA GSRS substance details by 10-character UNII, including preferred names, synonyms, chemical structure, and external regulatory codes.

Instructions

Fetch full FDA GSRS substance record including preferred names, synonyms, chemical structure, and external regulatory codes by 10-character UNII.

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_substance_by_unii"
  }
}

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.6/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 externally. The description adds useful payload context (what fields come back) since there is no output schema, but says nothing about behavior on an unknown/malformed UNII or about upstream availability/rate limits for an open-world lookup.

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 front-loaded sentence with the verb, the resource, the key, and the returned content; nothing is redundant or padded.

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 one-parameter lookup with no output schema, the description usefully enumerates the returned fields and the identifier format, which is what an agent needs to decide relevance. The only real omission is failure behavior (invalid or unknown UNII), a minor gap at this complexity level.

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?

With a single parameter at 100% schema description coverage, the schema already documents the UNII format and example. The description only restates the length/characters, adding essentially no meaning beyond the schema — 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 (Fetch) and resource (full FDA GSRS substance record), keyed by a 10-character UNII, and enumerates the payload (preferred names, synonyms, chemical structure, external regulatory codes). It does not name the sibling search tools or explain how it differs from search_substances_by_code, so it stops short of full differentiation.

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 phrase 'by 10-character UNII' — the agent must already hold an exact UNII, which distinguishes it in practice from the search_* siblings. There is no explicit when-to-use/when-not or named alternative, so guidance remains inferred rather than stated.

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