Skip to main content
Glama

Decode QR code

decode_qr

Decode a QR code from a PNG image (base64). Returns the raw payload and its detected content type (url, wifi, vcard, sms, geo, event, ...).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
image_base64YesBase64-encoded PNG image (data URI prefix allowed)

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden. It discloses the input format (PNG base64), the operation (decoding), and the output (raw payload and content type). This goes beyond the tool name, though it omits potential error cases or side-effect statements, which are less critical for a simple decode operation.

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?

The description is a single, information-dense sentence that starts with the primary action and includes essential output details. Every word contributes, with no fluff or repetition.

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?

For a tool with one parameter and no output schema, the description covers both input and output, including a list of expected content types. It is self-contained and sufficient for an agent to understand the tool's behavior and expected results.

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?

The schema already provides 100% coverage with a detailed description of image_base64. The description adds a brief mention that the input is a PNG image in base64, but this largely repeats what the schema states. Since schema coverage is high, a baseline of 3 is appropriate, and the description adds marginal extra meaning.

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 clearly states the tool's function with a specific verb and resource: 'Decode a QR code from a PNG image'. It also mentions the return value (raw payload and content type), and the sibling tools (e.g., generate_qr) confirm the distinct purpose of decoding vs generation.

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 implies usage by its contrast with sibling tools like generate_qr, but it does not explicitly state when to use this tool over alternatives or any exclusions. There is no mention of prerequisites or when not to use it, so guidance is merely 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.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool has a distinct purpose: decode_qr is for reading, generate_qr is standard generation, generate_pixel_art_qr is artistic generation, and list_icons/list_themes provide supporting metadata. The two generation tools are clearly differentiated by name and description.

Naming Consistency5/5

All tool names follow a consistent lowercase_snake_case verb_noun pattern (decode_qr, generate_qr, generate_pixel_art_qr, list_icons, list_themes). No mixed conventions or vague verbs.

Tool Count5/5

5 tools is an ideal size for a focused QR code utility. It covers generation, artistic generation, decoding, and option discovery without unnecessary bloat.

Completeness5/5

The domain of QR code creation/decoding is well covered: standard generation, pixel-art generation with customization, decoding with content type detection, and lookups for available icons/themes. No critical operations are missing.

Resources