Skip to main content
Glama
ChemInventory MCP Server

ChemInventory MCP Server

by niclas-gr

link_file_to_substance

Associate a file with a substance record using their IDs to keep documentation connected to the correct inventory entry.

Instructions

Link a file to a substance.

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

Input Schema

NameRequiredDescriptionDefault
file_idYes
substance_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.1/5.0
Behavior2/5

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

Annotations only declare openWorldHint=false and destructiveHint=false; the description adds nothing beyond that. It does not say whether the link is idempotent, whether a file may be linked to multiple substances, what happens if the link already exists, or whether any permissions are required. For a mutation tool the description carries meaningful remaining burden and does not meet it.

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?

The sentence is short and front-loaded with the action, so there is no wasted wording. However, the brevity is under-specification rather than useful conciseness given the complexity of a linking mutation.

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 explained, but a mutation tool with two undocumented parameters needs prerequisite and effect information the description entirely omits. Relative to its complexity, the definition is incomplete.

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 both required integer parameters (file_id, substance_id). The description only implies which object each ID refers to; it gives no guidance on where those IDs come from (e.g., from file_substances or get_substance) or on accepted formats, so it fails to compensate for the coverage gap.

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

Purpose2/5

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

The description 'Link a file to a substance' essentially restates the tool name link_file_to_substance with no additional specificity. It does not distinguish the operation from the sibling unlink_file_from_substance beyond the obvious verb, and says nothing about what linking means in this domain.

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, no mention of the inverse operation (unlink_file_from_substance), and no stated prerequisites such as needing an existing file and substance record. The agent must infer the usage context entirely from the name.

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