Skip to main content
Glama

RegDataLab – FDA Compliance Data

Substance lookup

fda_substance_lookup
Read-onlyIdempotent

Find FDA substance records and Unique Ingredient Identifier (UNII) codes by name or identifier. A substance identifier does not establish product approval or safety. Requires at least one of unii or substance_name; a call with only offset and limit is rejected.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "fda_substance_lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
uniiNoUNII code (exact match)
limitNoMax results to return (1-500)
offsetNoResult offset for pagination (0-10000)
substance_nameNoSubstance name (fuzzy match)

Output Schema

NameRequiredDescriptionDefault
dataYesTool result including records, provenance, freshness and matching limits when available

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / offset / description
      Previous value: -"Result offset for pagination"New value: +"Result offset for pagination (0-10000)"
    • changedInput schema / properties / offset / maximum
      Previous value: -9007199254740991New value: +10000
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "additionalProperties": {},
      +      "description": "Tool result including records, provenance, freshness and matching limits when available",
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "data"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the safety profile is carried. The description adds two useful pieces: the pagination-only rejection rule and the disclaimer that a substance identifier does not establish product approval or safety, which is a meaningful interpretation caveat. It says nothing about result volume, truncation, or what a miss looks like, so it is additive but not rich.

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?

Three short sentences, front-loaded with purpose, then the semantic caveat, then the hard precondition. No filler and nothing buried mid-sentence.

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?

An output schema exists so return values need no explanation, and all four parameters are schema-documented. The description covers purpose, the mandatory-key rule, and the approval/safety caveat, which is sufficient for a two-key lookup. Only the exact-vs-fuzzy choice and pagination behavior remain implicit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so per-parameter meaning (exact-match UNII, fuzzy substance_name, pagination bounds) is already documented and the baseline of 3 applies. The description earns above baseline by adding a cross-field constraint the schema does not express: the object declares no required properties, but at least one lookup key is in fact mandatory.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Find FDA substance records and Unique Ingredient Identifier (UNII) codes') plus the lookup keys ('by name or identifier'). The substance/UNII entity is clearly distinct from sibling tools that cover devices, companies, product codes, and recalls, so an agent can route here without opening a schema.

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

Usage Guidelines4/5

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

Gives an explicit call precondition: at least one of unii or substance_name must be supplied, and offset/limit-only calls are rejected. It does not compare itself to sibling tools or say when to prefer exact UNII vs fuzzy name, so it stops short of full when/when-not guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.