Skip to main content
Glama
ChemInventory MCP Server

ChemInventory MCP Server

by niclas-gr

retrieve_substance_info

Fetches structure, synonyms, and isomeric SMILES for a substance by identifier, helping you verify chemical details before inventory or ordering tasks.

Instructions

Fetch structure and synonyms for a substance with a CAS number. Returns the isomeric SMILES.

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": {
      "substance_id": "<substance_id>"
    },
    "name": "retrieve_substance_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
substance_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=false and openWorldHint=false, so the agent knows this is a bounded, non-destructive read. The description adds that the payload includes structure and synonyms, but says nothing about caching, missing substances, or error behavior when the identifier is unknown.

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?

Two short sentences, front-loaded with the operation and followed by the return hint; nothing is padded. The second sentence is slightly redundant given an output schema exists, but it is not harmful.

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?

Because an output schema exists, the description need not explain return values, and it covers the basic contract. The unresolved identifier ambiguity and the absence of any routing guidance against get_substance or update_substance_structure leave real gaps for a tool in this dense a sibling set.

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

Parameters2/5

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

Schema description coverage is 0% for the single parameter, so the description must carry the meaning and instead introduces ambiguity: it says the substance is identified "with a CAS number," but the schema parameter is an integer named substance_id, and a CAS number is not an integer. An agent cannot tell whether to pass an internal ID or a CAS-derived value.

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: "Fetch structure and synonyms for a substance," plus the returned format (isomeric SMILES). It does not distinguish itself from the closely named sibling get_substance, leaving the agent to guess which one returns substance records versus structure data.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, and no mention of get_substance or update_substance_structure, both of which plausibly overlap. The only implied guidance is that the caller must already have a CAS number, which is thin for a catalog with near-duplicate siblings.

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