Skip to main content
Glama

Generate QR code

generate_qr
Read-only

Convert text or a URL into a QR code image, returning a PNG file ready to scan.

Instructions

Generate a QR code image from text or a URL. Returns a PNG image.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesText or URL to encode in the QR code
scaleNoScaling factor (default: 3)
error_correctionNoError correction level: L (7%), M (15%), Q (25%), H (30%)M
Behavior3/5

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

Annotations provide readOnlyHint=true, which indicates a non-destructive operation. The description adds the return format (PNG image) but no further behavioral details such as limits or side effects. No contradiction exists.

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 consists of two concise sentences that front-load the primary action and output format. There is no unnecessary information.

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?

Given the tool's simplicity, complete schema descriptions, and readOnlyHint annotation, the description adequately covers the tool's purpose and output. No output schema exists, but the description explicitly mentions the PNG return format, compensating for that gap.

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?

All three parameters (text, scale, error_correction) have descriptions in the schema, covering 100% of params. The tool description does not add additional meaning or examples beyond the schema.

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 generates a QR code image from text or a URL, with a specific verb and resource. It distinguishes itself from siblings by naming QR code, unlike generate_barcode which likely handles barcodes.

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 use for encoding text/URLs into QR codes but does not explicitly compare to alternatives like generate_barcode or decode_image. There is no clear 'when not to use' guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/domdomegg/barcode-scanner-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server