Skip to main content
Glama
ChemInventory MCP Server

ChemInventory MCP Server

by niclas-gr

add_to_collection_by_barcode

Add chemical containers to My Collection using case-insensitive barcodes and get back any barcodes that matched no container.

Instructions

Add containers to 'My Collection' by barcode (case-insensitive). Returns the barcodes that matched no 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": {
      "barcodes": "<barcodes>"
    },
    "name": "add_to_collection_by_barcode"
  }
}

Input Schema

NameRequiredDescriptionDefault
barcodesYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/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 two genuinely useful traits beyond them — matching is case-insensitive, and the call is partial-success (unmatched barcodes are returned rather than failing the whole batch). It does not say whether already-collected containers are skipped or what permissions are needed.

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, zero filler, with the core action front-loaded and the return-value caveat immediately after. Every sentence earns its place.

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

Completeness4/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 in detail, and the description still flags the salient unmatched-barcode outcome. For a single-parameter, non-destructive mutation tool the main missing piece is permission/idempotency behavior.

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 description coverage is 0%, so the description must carry parameter meaning. It contributes the case-insensitive matching rule and confirms plural/batch input, but adds nothing about item format, duplicates within the array, or maximum batch size beyond minItems=1.

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?

States a specific verb and resource ('Add containers to 'My Collection'') plus the addressing mode ('by barcode'), which separates it from the generic add_to_collection sibling. It stops short of naming or contrasting that sibling explicitly, so it is clear but not fully differentiated.

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 barcode-list input suggests a scan/batch workflow, but there is no explicit statement of when to prefer this over add_to_collection or add_containers, and no prerequisites such as whether containers must already exist or be unassigned.

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