Skip to main content
Glama
ChemInventory MCP Server

ChemInventory MCP Server

by niclas-gr

file_substances

Read-only

Retrieve substances linked to a specific file using its file ID to identify file-to-substance associations in a chemical inventory.

Instructions

Substances a file is linked to.

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": {
      "file_id": "<file_id>"
    },
    "name": "file_substances"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered, but the description adds nothing beyond them: no indication of whether results are paginated, what happens for a file with no substances, or what a substance record contains. With annotations present the bar is lower, yet the description contributes essentially zero behavioral context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is short and front-loaded, but it is a fragment rather than a complete statement, so brevity comes at the cost of specification rather than from efficient editing.

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

Completeness2/5

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

An output schema exists, so return values need not be described, but for a tool whose entire purpose hinges on one undocumented parameter and an unclear relationship direction, the description leaves too much to inference. It does not say whether "linked to" means the file references substances or substances reference the file.

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?

There is a single required file_id parameter with 0% schema description coverage, and the description only alludes to it via "a file." It does not clarify whether file_id is a numeric internal ID (as the schema type suggests) rather than a path, barcode, or business key, which is a real ambiguity for a file-oriented API.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Substances a file is linked to" names the resource pair (file, substances) but is a noun fragment with no verb, so the agent must infer this is a read/listing operation. It does not distinguish itself from the closely related link_file_to_substance / unlink_file_from_substance siblings, which an agent could easily confuse with it.

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?

No when-to-use guidance, no prerequisites, and no mention of the related link/unlink tools. The agent gets no signal about whether this is the correct way to inspect a file's substance associations versus reading the file itself.

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