Skip to main content
Glama

Read back barcodes from an image

barcode_verify
Read-onlyIdempotent

Decode barcodes from a photo or scan of a PRINTED label (PNG, JPEG, BMP or GIF) and report what a software decoder reads back. Honest by design: 'read' does not guarantee every handheld scanner will read it, and 'not read' does not condemn the label (photo angle/focus matter) — the response says so.

Input Schema

NameRequiredDescriptionDefault
image_base64YesBase64-encoded image bytes. A data:image/...;base64, prefix and line breaks are accepted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / image_base64 / description
      Previous value: -"Base64-encoded image bytes"New value: +"Base64-encoded image bytes. A data:image/...;base64, prefix and line breaks are accepted."
  2. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), but the description adds real behavioral context beyond them: the decode is performed by a software decoder, results are indicative and influenced by photo angle/focus, and the response itself carries that caveat. That is meaningful disclosure about what the output means.

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?

Two compact sentences, front-loaded with the operation and input types, followed by the interpretive caveat. Nothing is redundant, though the caveat sentence is slightly long relative to the operation description.

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 single-parameter, read-only tool this is largely sufficient, but with no output schema the description should hint at the shape of the result (e.g., decoded values plus a status per symbology). The phrase 'the response says so' gestures at this without informing the agent what it will actually receive.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

One parameter at 100% schema coverage sets a baseline of 4; the description slightly extends it by enumerating accepted formats (PNG, JPEG, BMP, GIF). No syntax details beyond what the schema already documents.

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?

Specific verb ('Decode barcodes'), specific resource ('a photo or scan of a PRINTED label'), plus supported formats. It does not differentiate from the sibling barcode_png, which reads as a closely related tool, so an agent cannot fully disambiguate from the name alone.

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?

The description frames the use case (verifying printed labels via software decode) and its interpretive limits, but never states explicitly when to pick this over barcode_png or the validate/preview siblings. Usage is implied rather than prescribed.

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.