Skip to main content
Glama

image_tools_qr_read

Decode the QR code in a photo or screenshot: its text, what kind of code it is (link, Wi-Fi, contact, plain text) and where it sits in the image. Handles small, dark-background and low-contrast codes. Price: $0.01 USDC via x402, charged only on success. Part of Image tools: Everyday image work for sites and apps: convert and compress to WebP/AVIF/JPEG/PNG, responsive srcset sets with ready markup, colour palettes, pixel diffs for visual regression, SVG to PNG, QR codes, blur placeholders, and an inspection that says what to fix before shipping an image..

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

Input Schema

NameRequiredDescriptionDefault
imageNoImage file as base64 (PNG, JPEG, WebP, AVIF, GIF, TIFF or SVG).
imageUrlNoLink to the image.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description does real work: it states robustness conditions (small, dark-background, low-contrast codes) and a payment model ($0.01 USDC via x402, charged only on success), which is exactly the kind of billing/auth context an agent needs before calling. It does not say what happens when no code is found (error vs empty result), which is the main remaining gap for a no-annotation tool.

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

Conciseness3/5

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

The functional part is front-loaded and tight, but it is followed by a long generic catalog blurb about the whole Image tools suite (WebP/AVIF conversion, srcset, palettes, diffs, SVG to PNG, blur placeholders) that has nothing to do with QR decoding and dilutes the signal. Roughly half the text does not earn its place for this tool.

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 tool with full schema coverage and no output schema, the description covers what matters: inputs are images, outputs are decoded text, code type and position, plus robustness and pricing. Only the failure/empty-result behavior and image-vs-imageUrl precedence are missing.

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% for the two parameters (base64 image and imageUrl), so the schema already documents formats and the URI format. The description adds nothing about either parameter, including no guidance on which to prefer when both or neither are supplied — 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 first sentence gives a specific verb ('Decode') and resource ('QR code in a photo or screenshot') and even enumerates the three outputs: text, code kind (link, Wi-Fi, contact, plain text) and location in the image. This cleanly separates it from the sibling image_tools_qr (generation) without needing to name it.

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?

Usage is implied by the capability notes: reach for it when a code is small, on a dark background or low contrast. There is no explicit when-not guidance and no alternative named (e.g. doc_tools_ocr for general text-in-image extraction), so an agent must infer the boundary itself.

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