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

openfda-substance-registry-mcp

Search FDA GSRS substances by external code

search_substances_by_code
Read-onlyIdempotent

Look up FDA GSRS substance records by external identifier such as CAS Registry Number, EINECS, RxNorm, or PubChem codes. Returns matching substances with optional limit and code-system filtering.

Instructions

Look up FDA GSRS substance records by external identifier such as CAS Registry Number, EINECS, RxNorm, or PubChem.

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": {
      "code": "<code>"
    },
    "name": "search_substances_by_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesExternal code value (e.g. CAS "50-78-2", "103-90-2").
limitNoMax substances to return (default 5).
code_systemNoOptional code system name (e.g. "CAS", "PUBCHEM", "RXCUI", "EINECS").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.3/5.0
Behavior2/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 and openness profile is fully covered. The description adds nothing behavioral beyond that: no statement about what a miss returns, whether openWorld external lookups can hit network limits, or how paging/limit behaves.

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 resource and the disambiguating qualifier ('by external identifier') stated first and examples trailing. Zero filler and nothing restated from the title unnecessarily.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read-only lookup with three fully documented parameters and no output schema, the description is adequate but thin. It omits whether code_system is required for reliable matching or how to interpret empty results, which would matter in practice.

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 the schema already documents code, code_system and limit including examples and bounds. The description's list of identifier systems loosely maps to code_system but adds no new syntax or constraints beyond the schema, so the 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 and resource ('Look up FDA GSRS substance records') and qualifies it with 'by external identifier', which distinguishes it from sibling tools like search_substances_by_formula and search_substances. It gives examples of identifier types, so an agent knows the retrieval key without opening the schema.

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 only implied: an agent infers it should call this when it holds an external code rather than a name or formula. It never names an alternative tool or states when-not to use this one, so routing between search_substances, search_substances_by_formula and this tool is left to inference.

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