Skip to main content
Glama

Tidy Byte Tools API

GTIN / EAN / UPC checksum

gtin_checksum
Read-onlyIdempotent

Check or fill the check digit on a barcode number.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gtin_checksum"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoThe barcode digits (7 to 14 of them). Spaces and dashes are ignored.
actionNoWhat to do: "check" (the default) to test the last digit, or "fill" to add the missing check digit.

Output Schema

NameRequiredDescriptionDefault
okYes
toolYes
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / action / description
      Added value: +"What to do: \"check\" (the default) to test the last digit, or \"fill\" to add the missing check digit."
    • addedInput schema / properties / code / description
      Added value: +"The barcode digits (7 to 14 of them). Spaces and dashes are ignored."
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the pure-computation, side-effect-free nature is fully covered structurally. The description adds no behavioral context beyond that traversal — no statement about error behavior for malformed lengths or whether input normalization (spaces/dashes) is total. No contradiction with annotations.

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 front-loaded sentence with no filler, and the two operation modes come first. Its terseness flirts with under-specification, but nothing is redundant or buried.

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?

An output schema exists and annotations are rich, so return values and safety profile need not be explained. However, for a validation utility the description leaves format coverage and edge-case behavior unstated, which is the main remaining gap given how thin the prose is.

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 100%, with both parameters documented including the 7–14 digit length and default action, so the baseline is 3. The description adds no parameter meaning beyond the schema — it does not restate the length constraint or clarify which digit index is validated.

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 two specific verbs (check, fill) and the exact resource (the check digit on a barcode number), which is enough for an agent to know it is a barcode validation utility rather than a formatter or encoder. It does not explicitly differentiate itself from siblings, but the domain is narrow enough that confusion is unlikely.

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: an agent can infer 'check' for validation and 'fill' for computing a missing digit, but the description states no when-to-use conditions, no supported symbologies (EAN-8/UPC-A/EAN-13/GTIN-14), and no guidance on what happens if the input already has a check digit in fill mode. The schema carries the action split, so the gap is moderate rather than severe.

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.