Skip to main content
Glama
ChemInventory MCP Server

ChemInventory MCP Server

by niclas-gr

add_containers

Add one or more containers of a substance to a specified location and return the new container IDs, useful for registering multiple stock items in a single call.

Instructions

Add containers of one substance to one location. Returns the new container IDs.

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": {
      "location_id": "<location_id>",
      "substance_id": "<substance_id>",
      "containers": "<containers>"
    },
    "name": "add_containers"
  }
}

Input Schema

NameRequiredDescriptionDefault
containersYes
location_idYes
substance_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

The annotations only declare openWorldHint=false and destructiveHint=false, leaving the mutation/auth profile largely unstated. The description does contribute one genuine behavioral fact beyond the annotations: the batch must be for a single substance at a single location, and the call returns newly created container IDs. It omits uniqueness constraints on barcodes, permission requirements, and partial-failure behavior for an array insert.

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 short sentences, front-loaded with the action and scope, with the return value appended. Every clause carries information and there is no filler.

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?

For a mutation tool with an output schema, the definition covers the essentials (what it creates, the batch constraint, what it returns). It falls short on the operational details an agent would need: prerequisites for the referenced IDs and how the request fails when one container in the array is invalid.

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?

Top-level schema description coverage is 0%, so the schema gives no meaning for location_id, substance_id, or containers beyond their names and types. The description compensates partially by explaining that location_id and substance_id are single values applying to the whole containers array, but it adds nothing about ID formats, lookup tools, or the shape of each container entry.

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 states a specific verb and resource ('Add containers') and pins down the scope ('one substance to one location') plus the return value ('new container IDs'). It is clearly distinguishable from siblings like move_containers or delete_containers, though it never names an alternative explicitly.

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?

Nothing says when to use this versus add_to_collection_by_barcode or move_containers, and no prerequisites are given (e.g. that the substance and location must already exist, or how to obtain their IDs). Usage is only implied by the verb 'Add'.

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