Skip to main content
Glama

QR Code Reader API - decode QR codes from an image

qr_code_reader
Read-onlyIdempotent

Find and decode every QR code in a photo or screenshot: content, type (link, Wi-Fi, SEPA, text...), position. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.002/call via x402 at https://radarbg.com/x402/qr-code-reader.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "fileName": "qr.png",
      "fileContent": "iVBORw0KGgoAAAANSUhEUgAAAhAAAAIQAQAAAAD4e2okAAABlUlEQVR42u3dQU4DMQwF0BH3vzMsEEq+nXRTCYH8RqKo0/AWWXw5TqY8n29fDwKBQCAQCAQCgUAgEAjErxBPXOvuer2N+XjevhAIxH8gSjJkSnx//vN6GiMvEIipebESIlNjfV7HyAsEQl6sqmIfJS8QCHnxur7Y+xfyAoGQF703kRlx63HICwRiZl7k3fPP6S9NJwIxLS/aRmvUEq9Gmk4EYl5erHd75yLrjbqrKi8QiKnrkXtVse+truSQFwjE3PVIntPqFcb6rd+JQKgvsnKo3dDe2ZAXCMTMvDjtf/Qehv1UBEJeZArsK5M87Vl7o/ICgZi7HtmrjDwV3rue8gKBmFxf9GfYT1mif4FAqC9uZzqzs1HTxHQiEHPri/v58N7hkBcIxNz6otYQmRfnZ89MJwIxLy9Oe6X7aqSf9JQXCMTcvMi1x3p3qj3kBQIhL3LN0c9e1KdH5AUCIS8yI7LWUF8gEPKiZkc/gZF35QUCMTUv+t3zd/TVEximE4GYlhf+dxMCgUAgEAgEAoFAIBCIP0p8AYpI1hVg0lZtAAAAAElFTkSuQmCC"
    },
    "name": "qr_code_reader"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNoOr several files: [{fileName, fileContent (base64)}] (up to 60 files, 20 MB total)
fileNameNoFile name with extension, e.g. report.pdf
fileContentNoThe file as base64 (a data: URI is fine; 20 MB total decoded limit per call)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / fileContent / description
      Previous value: -"The file as base64 (a data: URI is fine)"New value: +"The file as base64 (a data: URI is fine; 20 MB total decoded limit per call)"
    • changedInput schema / properties / files / description
      Previous value: -"Or several files: [{fileName, fileContent (base64)}]"New value: +"Or several files: [{fileName, fileContent (base64)}] (up to 60 files, 20 MB total)"
    • addedInput schema / properties / files / maxItems
      Added value: +60
  2. First observed

TDQS

A4/5.0
Behavior5/5

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

Well beyond annotations (readOnly/openWorld/idempotent), it discloses server-side processing, immediate file deletion with nothing stored, a concrete per-IP rate limit, and the two authentication paths (X-API-Key header vs x402 per-call payment). These are exactly the operational facts an agent needs before sending an image to a third-party endpoint.

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?

Front-loaded with the core capability, then behavior, then pricing — a sensible order, and every sentence is functional. The pricing/URL block is dense and slightly promotional but is genuinely needed for auth decisions, so no real waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 still names what comes back (content, type with example categories, position), and it covers the privacy, rate-limit and authentication facts that determine whether a call will succeed. Nothing material is missing for a 3-parameter stateless decoder.

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 fileName, fileContent and files each documented including the 60-file / 20 MB limits, so the schema carries the parameter burden. The description adds no additional parameter semantics such as precedence between files and the single-file fields; baseline 3 applies.

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?

"Find and decode every QR code in a photo or screenshot" states a specific verb (decode), resource (QR codes in an image) and scope (all codes, not just the first), plus the return contents (content, type, position). It is immediately distinguishable from qr_code_generator by direction of the operation, but no sibling is named explicitly, so it falls short of a 5.

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 operational context (free 5 calls/day per IP, paid via API key or x402) but never says when to pick this over alternatives such as epc_qr_code or swiss_qr_bill, nor when not to use it. Usage is implied by the phrase "photo or screenshot" but no selection guidance is offered.

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