Skip to main content
Glama

NIH NCATS GSRS Pharmaceutical Substances MCP

Get GSRS substance codes

get_gsrs_substance_codes
Read-onlyIdempotent

Retrieve external regulatory and cheminformatics registry codes such as WHO-ATC, CAS, RxCUI, DrugBank, and PubChem for a 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_gsrs_substance_codes"
  }
}

Input Schema

NameRequiredDescriptionDefault
uniiYesFDA/NCATS Unique Ingredient Identifier (for example "R16CO5Y76E").
limitNoMaximum codes to return (default 25, max 100).
code_systemNoOptional code system filter (for example "WHO-ATC", "CAS", "RXCUI", or "DRUGBANK").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/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 covered. The description adds that the codes come from external authorities, which matters for trust/coverage expectations. It says nothing about rate limits, auth needs, or behavior when a code system is unavailable.

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 sentence that front-loads the verb and resource and spends no words on filler. Nothing is redundant with the title.

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 simple read-only lookup with full schema coverage and rich annotations, the description covers what the tool returns conceptually (registry code pairs) without needing an output schema. Minor gap: no indication of items not found or empty results.

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 all three parameters (unii, limit, code_system) are already documented in the schema, including examples. The description's enumeration of code systems loosely reinforces the code_system filter but adds no syntax or constraint information beyond the schema, so 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?

A specific verb ('Retrieve') plus resource ('external regulatory and cheminformatics registry codes') anchored to a UNII, with concrete examples (WHO-ATC, CAS, RxCUI, DrugBank, PubChem). It is clearly distinguishable from siblings like get_gsrs_substance_names or get_gsrs_substance_relationships, though it never explicitly contrasts itself with them.

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: an agent with a UNII who needs external registry identifiers will recognize this tool. However, there is no explicit when-to-use guidance, no mention of when the sibling lookups are preferable, and no note about when code_system filtering is warranted.

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.