Skip to main content
Glama

read_barcode

Read every barcode in a base64 PNG, JPEG or WebP (or data URL). At most 2 MB decoded and 4000 by 4000 pixels. Returns text, format, corner positions and GS1 product number, expiry and lot when present. (API Tool Calls, by Cowerx)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
imageYesBase64 PNG/JPEG/WebP or image data URL; 2 MB decoded maximum.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose meaningful traits: decoding limits and the exact return payload (text, format, corner positions, GS1 product number, expiry, lot). It omits behavior when no barcode is found, multiple-barcode handling, and any auth/rate-limit context, so it is strong but not exhaustive.

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

Conciseness5/5

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

Two sentences, both front-loaded with the action and the constraints first, then the return contents. No filler, no repetition of the tool name, and the trailing attribution is negligible.

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 no output schema, the description usefully enumerates return fields and covers the input constraints, so an agent can call it correctly. It stops short of describing failure or multi-barcode cases, which is a minor gap for a single-parameter read tool.

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?

There is only one parameter and schema description coverage is 100%, so the schema already documents the accepted encodings and size limit. The description restates the same constraints without adding format syntax or examples beyond the schema, making the baseline 3 correct.

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

Purpose5/5

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

States a specific verb and resource ('Read every barcode') plus the accepted input encodings and formats. This is unmistakably distinct from the sibling make_barcode, which generates rather than decodes.

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 gives hard input constraints (formats, 2 MB decoded cap, 4000x4000 pixel cap), which implies when the tool is applicable. However, it never explicitly says when to use this versus make_barcode/make_qr or what to do for unsupported inputs, so usage is only implied.

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