Skip to main content
Glama
ChemInventory MCP Server

ChemInventory MCP Server

by niclas-gr

update_substance_structure

Destructive

Sets a substance's chemical structure from a Molfile or SMILES and returns the matching substance ID, helping identify whether the structure already exists.

Instructions

Set the structure of a substance. Returns the substance ID, which is an existing substance's ID if the structure matches one.

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>",
      "structure": "<structure>"
    },
    "name": "update_substance_structure"
  }
}

Input Schema

NameRequiredDescriptionDefault
structureYesMolfile or SMILES
substance_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already flag this as a destructive, non-open-world mutation, and the description does add real behavioral value by disclosing the dedupe/return-existing-ID behavior, which an agent could not infer from the schema. It omits what happens to the substance's previous structure (overwrite vs. replace vs. error on mismatch) and any permission requirements, which matter for a destructiveHint=true tool.

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?

Two sentences with no filler; the action is front-loaded and the second sentence carries only the return semantics that actually change how an agent interprets the result. Nothing could be cut without losing meaning.

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?

An output schema exists, so the description is not obligated to explain return values, though the ID-matching nuance it does include is semantic rather than structural and therefore justified. For a destructive mutation with only half of its parameters documented, the description should also say what happens to the prior structure and whether a match causes any write at all.

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 coverage is 50%: the structure parameter is documented as "Molfile or SMILES" while substance_id is bare. The description implies substance_id names the substance to modify but adds no format, range, or validity constraints beyond the schema, so the baseline 3 applies rather than a higher score.

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?

The description gives a specific verb plus resource ("Set the structure of a substance") and adds a genuinely non-obvious return behavior: the returned substance ID may be an existing substance's ID when the structure matches. That distinguishes it from a plain create/set operation. It does not explicitly contrast with siblings such as update_container or get_substance, but the purpose is unambiguous.

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 only implied: the returned-ID-on-match behavior hints that this tool is the right choice when you want to attach a structure without risking a duplicate substance, but the description never states when to use this versus another tool, nor does it list exclusions or prerequisites. No alternative sibling is named.

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