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

openfda-substance-registry-mcp

Search FDA GSRS substance registry

search_substances
Read-onlyIdempotent

Search FDA GSRS chemical and biologic substances by name, UNII, external code, or substance class to identify and filter relevant records.

Instructions

Search OpenFDA Global Substance Registration System (GSRS) chemical and biologic substances by name, UNII, external code, or substance class.

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": {
      "query": "<query>"
    },
    "name": "search_substances"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax substances to return (default 5).
queryYesSubstance name, synonym, UNII, or CAS code (e.g. "aspirin", "semaglutide", "50-78-2").
substance_classNoOptional GSRS substance class filter.

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?

The annotations already declare read-only, open-world, idempotent, and non-destructive behavior, so the safety profile is covered. The description adds useful scope by identifying the searchable substance attributes, but it does not add behavioral context such as result limits, pagination, or what happens when a search is broad. It does not contradict the annotations.

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?

The description is a single, front-loaded sentence with no filler. It efficiently states the resource and the main search dimensions. It could be slightly stronger if it used the available space to add usage differentiation, but it is not verbose.

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 three-parameter search tool with full schema descriptions and rich annotations, the definition is largely complete. The main missing context is why an agent should choose this general search over the more specific sibling search tools, but the essentials for invocation are present.

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 complete, so the parameter definitions already explain query, limit, and substance_class. The description reinforces the queryable fields but adds no constraints or syntax beyond the schema. A baseline 3 is appropriate because the schema is doing the detailed parameter documentation.

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 clear verb and resource: search FDA GSRS chemical and biologic substances. It also names the key lookup fields, including name, UNII, external code, and substance class, so the tool's purpose is easy to grasp. It does not explicitly distinguish itself from the similar sibling search tools, which keeps it from a 5.

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 search fields and the registry context, but the description does not state when to use this tool instead of siblings such as search_substances_by_code, search_substances_by_formula, or get_substance_by_unii. There are no exclusions, prerequisites, or explicit routing guidance.

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