Skip to main content
Glama
ChemInventory MCP Server

ChemInventory MCP Server

by niclas-gr

update_container

Destructive

Change a single field on a ChemInventory container by supplying its ID, field name, and new value; optionally include a unit when updating container size.

Instructions

Change one field of a container.

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": {
      "container_id": "<container_id>",
      "field": "<field>",
      "value": "<value>"
    },
    "name": "update_container"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitNoUnit name for containersize, e.g. 'g'
fieldYescontainername, cas, containersize, barcode, supplier, dateacquired, comments, cf-<id> (container custom field) or sf-<id> (substance custom field)
valueYesNew value; for containersize the size, e.g. '250'
container_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and openWorldHint=false, so the safety profile is covered. The description adds the useful behavioral constraint that only one field is changed at a time, but it does not explain that the previous value is overwritten, whether changes are reversible, or any permission requirements.

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?

The single sentence is front-loaded, clear, and free of waste. It is extremely terse for a destructive four-parameter mutation, but conciseness itself is not the problem.

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?

Given a destructive mutation with four parameters and only 75% schema coverage, the description does far too little. It omits usage guidance and behavioral details about overwriting values or field constraints, even though the output schema means return values need not be explained.

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 75%, and the description adds no parameter meaning beyond the schema. It does not clarify the allowed field names, the field-dependent nature of value (e.g., size for containersize), or the undocumented container_id.

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 uses a specific verb ("Change") and resource ("container") and adds the scope constraint "one field," so the agent knows this is a single-field mutation. It does not differentiate the tool from sibling update operations like update_substance_structure or update_user, which keeps it from a 5.

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 guidance, no mention of alternatives for updating other record types, and no prerequisites or exclusions. The agent must infer entirely from the name and schema when this tool is appropriate.

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