Skip to main content
Glama

Barcode Pro: barcodes and QR codes

Check or complete an EAN/UPC number

check_barcode_number
Read-only

For EAN13, EAN8, UPC or ITF14: give the full number to check its check digit, or the number without the last digit to get the check digit and the full number.

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": {
      "format": "<format>",
      "number": "<number>"
    },
    "name": "check_barcode_number"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatYes
numberYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description usefully adds that the call returns a check digit and the completed full number, but it does not say what happens when a supplied check digit is wrong (error vs. negative result) or how the result is shaped. That is a meaningful behavioral gap for a validation tool.

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 sentence, front-loaded with the supported formats and then the two input modes. No filler, though the phrasing is slightly compressed and would read more cleanly split into two clauses.

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 simple two-parameter, read-only tool with no output schema, the description covers the supported formats, both input modes, and what is returned. It is missing failure behavior when a check digit does not match and any note on the accepted character pattern, which leaves the agent guessing at edge-case outcomes.

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 carries the burden here. It explains the crucial 'number' semantics (with vs. without the final check digit), which is the non-obvious part, but it only repeats the enum values for 'format' without adding meaning and says nothing about tolerated separators or spaces despite the schema pattern allowing them.

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 concrete dual behavior: validate the check digit of a complete EAN13/EAN8/UPC/ITF14 number, or derive the check digit and return the full number when the last digit is omitted. That is specific enough to distinguish it from the generate_barcode sibling, which produces barcodes rather than validating numbers, although the description never names that sibling itself.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is clearly conditional on the input: supply the full number to check, or drop the last digit to complete it. This tells the agent how to invoke each mode. It stops short of explicitly routing against generate_barcode or stating prerequisites, so it is clear context rather than full when/when-not guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources