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 €9/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)}]
fileNameNoFile name with extension, e.g. report.pdf
fileContentNoThe file as base64 (a data: URI is fine)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint/idempotentHint annotations, the description adds exactly the operational context an agent needs: processing happens server-side, uploaded files are deleted right after the call with nothing stored, and there is a hard rate limit of 5 free calls/day per IP plus two paid auth mechanisms with pricing. These are privacy, quota, and auth facts that annotations cannot convey.

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?

It is front-loaded with the purpose and outputs, then behavior/privacy, then commercial terms, so an agent can stop reading early. The pricing sentence with a URL and two payment schemes is somewhat dense and commercially verbose, but it is still one compact sentence rather than padding.

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 compensates by naming the returned fields (content, type, position) and the supported QR payload categories. It is nearly complete for a simple image-in/data-out tool, though it omits what happens when no code is found and does not mention the multi-file input path.

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%, so fileName, fileContent (base64/data URI), and the files array are already fully documented in the schema. The description adds only the general notion that the input is a photo or screenshot; it says nothing about the multi-file array or how multiple codes across files are returned, so the baseline of 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?

"Find and decode every QR code in a photo or screenshot" gives a specific verb (decode) plus resource (QR codes in an image), and it enumerates the returned fields (content, type such as link/Wi-Fi/SEPA/text, position). This clearly distinguishes it from the sibling qr_code_generator, which produces rather than reads codes.

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 makes the input context clear (photo or screenshot) and documents the access paths (free IP-limited tier, Radar API key via X-API-Key, or x402 pay-per-call), which helps an agent know how the call will be authorized. However, it never explicitly states when to prefer this tool over alternatives, nor any exclusion such as unsupported image formats or multi-code behavior.

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