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

openfda-substance-registry-mcp

Search FDA GSRS substances by molecular formula

search_substances_by_formula
Read-onlyIdempotent

Find FDA GSRS chemical substances by exact molecular formula, such as C9H8O4, and limit returned matches to identify compounds from a formula.

Instructions

Search FDA GSRS chemical substances matching an exact molecular formula (e.g. "C9H8O4", "C8H9NO2").

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": {
      "formula": "<formula>"
    },
    "name": "search_substances_by_formula"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax substances to return (default 10).
formulaYesMolecular formula (e.g. "C9H8O4" for aspirin, "C8H9NO2" for acetaminophen).

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?

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds only the exact-match constraint; it says nothing about result ordering, case sensitivity, or that results come from a remote FDA service despite openWorldHint being set.

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, the matching rule, and concrete examples; nothing extraneous.

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 two-parameter read tool with rich annotations this is nearly sufficient, but there is no output schema and the description never indicates what a returned substance record contains or how matches are ranked, leaving the agent to guess at result shape.

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 both parameters are already documented with formulas and the limit default. The examples in the description duplicate the schema's own examples, adding no new meaning; 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 (search) and resource (FDA GSRS chemical substances) with a clear qualifier: matching an exact molecular formula. The 'exact' qualifier implicitly separates it from the sibling search_substances and search_substances_by_code, but no sibling is named explicitly.

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?

The word 'exact' hints that partial/fuzzy formula matching is not supported, which is useful usage information. However, there is no explicit when-to-use vs when-not guidance and no pointer to the sibling code-based or general substance search for other query types.

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