Skip to main content
Glama
ChemInventory MCP Server

ChemInventory MCP Server

by niclas-gr

check_barcode

Read-only

Look up a barcode value to find existing containers, locations, and users, helping prevent duplicate or conflicting barcode assignments.

Instructions

Containers, locations and users that already carry a barcode, keyed by barcode value.

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": {
      "barcode": "<barcode>"
    },
    "name": "check_barcode"
  }
}

Input Schema

NameRequiredDescriptionDefault
barcodeYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations declare readOnlyHint=true and openWorldHint=false, so the safety profile is already covered. The description adds useful context about what is scanned (containers, locations, users) and that results are keyed by barcode value, but says nothing about no-match behavior, result cardinality, or whether multiple entity types can match simultaneously.

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?

A single compact sentence with no wasted words, and the entity scope is front-loaded. It is fragmentary rather than a complete statement, but that costs little.

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?

With an output schema present, the description does not need to explain return structures, and its main job - conveying that this checks which entities already carry a given barcode - is done. Only the no-match and multi-match semantics remain unstated.

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% for the single 'barcode' parameter, but the description partially compensates by stating results are 'keyed by barcode value', implying the input is an exact barcode string. It does not state whether exact match, prefix match, or normalization applies.

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 names the resource being looked up (containers, locations and users) and the key (barcode value), so an agent can tell this is a barcode-based existence/lookup check. It is a noun phrase rather than a verb+resource statement, and it does not distinguish itself from lookalike siblings such as duplicate_barcodes, assigned_barcodes or add_to_collection_by_barcode.

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 stated prerequisite, and no mention of an alternative tool. The agent must infer from the name that this is a pre-check before barcode-based operations.

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