Skip to main content
Glama

qr_code

Generate a QR code PNG for a text or URL. Returns base64 PNG (image/png).

Input Schema

NameRequiredDescriptionDefault
sizeNoimage size in px, 64-1000 (default 300)
textYestext or URL to encode

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose the key behavior an agent needs: the output is a base64-encoded PNG with media type image/png. It does not mention failure modes (e.g. oversized input) or whether the code is generated locally versus remotely, but the critical return contract is covered.

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?

Two short sentences, no waste, and the action is front-loaded before the return-format detail. Everything present earns its place.

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 simple two-parameter generator with full schema coverage and no output schema, the description supplies exactly the missing piece – the return encoding and media type. Nothing further is required to call it correctly.

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% – both 'text' and 'size' (with its 64-1000 range and default 300) are documented in the schema. The description adds only the 'text or URL' nuance, which the schema already states, so 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?

States a specific verb and resource ('Generate a QR code PNG') plus the input domain ('for a text or URL'), which is unambiguous. It cannot be confused with any sibling (pdf_info, pdf_merge, pdf_text, etc.), so no explicit differentiation is needed.

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 name and is effectively self-evident since no sibling tool competes with it. However, there is no guidance on limits such as maximum text length, error-correction level, or when to prefer a URL versus free text.

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.