Skip to main content
Glama

AI SENSE Free Public Tools

Read QR codes and barcodes in an image

read_qr_code
Read-onlyIdempotent

Read the QR codes and barcodes, Code 128 and EAN-13 included, in a PNG, JPEG, GIF or WebP image. Several codes come back joined by newlines. Give image_base64 or storage_id. No API key, no account and no sign up.

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": "read_qr_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
storage_idNoA storage_id from store_file, from a previous tool result, or from REST /storage. Objects expire 24 hours after they were stored.
image_base64NoThe file as standard base64, at most about 190 KB of file through MCP. For a larger file, store it with REST POST /services/v1/storage first and pass storage_id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so safety and repeatability are covered. The description adds real value with 'Several codes come back joined by newlines' and the auth-free statement, though it omits what happens when no code is detected (empty result vs error).

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?

Three short sentences: capability plus formats first, return behavior second, input requirement third. No filler, and the most decision-relevant information is front-loaded.

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?

For a two-parameter read tool with no output schema, the description supplies the return-value shape (newline-joined codes) and the accepted formats, which is most of what an agent needs. Only the no-result behavior and any size/timeouts beyond the schema's note are left implicit.

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 coverage is 100%, so both parameters and their size/expiry caveats are already documented in the schema. The description only restates the either/or input choice ('Give image_base64 or storage_id') without adding syntax or limits, so the baseline 3 applies.

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?

The description opens with a specific verb and resource ('Read the QR codes and barcodes') and enumerates supported symbologies (Code 128, EAN-13) and input formats (PNG, JPEG, GIF, WebP). This clearly separates it from the sibling create_qr_code, which produces rather than decodes codes.

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?

It gives a direct input-selection rule ('Give image_base64 or storage_id') and notes the no-key/no-account access model, which sets expectations about prerequisites. It does not explicitly state when to prefer this over read_stored_file or other image-inspecting siblings, so it stops short of full alternative routing.

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.