Skip to main content
Glama
ChemInventory MCP Server

ChemInventory MCP Server

by niclas-gr

generate_barcodes

Destructive

Generates unused barcode values for a specified prefix and count, saving the prefix as the inventory's barcode prefix when permitted.

Instructions

Unused barcode values. Saves prefix as the inventory's barcode prefix if permitted.

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": {
      "prefix": "<prefix>",
      "count": "<count>",
      "starting_number": "<starting_number>"
    },
    "name": "generate_barcodes"
  }
}

Input Schema

NameRequiredDescriptionDefault
countYes
prefixYes
starting_numberYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.3/5.0
Behavior3/5

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

Annotations already flag destructiveHint=true, but the description adds genuinely new behavioral information: the call persists the prefix onto the inventory record, which implies overwrite of an existing prefix. However, it never states what the destructive aspect actually destroys, what "if permitted" depends on (permissions? existing prefix?), or whether the save fails the whole call or is silent. Given a destructive tool with an explicit side effect, the disclosure is partial.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The text is short and front-loads the resource, but it is written as a sentence fragment rather than a usable definition, so brevity here reflects under-specification rather than economy.

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?

An output schema exists so return values needn't be explained, but for a destructive mutation with three entirely undocumented parameters, the description should cover the side effect, permission condition, and how count/starting_number determine output. Those gaps leave the definition incomplete for the tool's complexity.

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 0%, so the description carries the full burden, yet it only touches on prefix (indirectly, as something saved). It says nothing about count, starting_number, the 6-character prefix limit, or how those values shape the generated barcodes.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Unused barcode values." names the resource but omits the action entirely — no verb such as generate or reserve appears, and the title is null, so the reader must infer the operation from the tool name alone. It also gives no signal distinguishing this from siblings like assigned_barcodes, duplicate_barcodes, or check_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 statement of when to call this versus the related barcode tools, no prerequisite context beyond the vague "if permitted," and no exclusions. The reader is left to guess the workflow position of this tool.

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