Skip to main content
Glama

qr_generate

Generate QR codes from text with configurable error correction, colors, size, quiet zone, and PNG/SVG/ASCII output, optionally saving files to a sandbox directory.

Instructions

Generate a QR code. Supports error-correction level, fixed version/mask, scale, quiet zone, colors and PNG/SVG/ASCII output. Optionally saves to the sandbox output directory.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "text": "<text>"
    },
    "name": "qr_generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
darkNoDark module color (#RRGGBB or a CSS name)#000000
maskNoForce mask pattern 0-7, or auto
saveNoWrite the file to disk
textYesContent to encode
errorNoError correction levelM
lightNoLight module color; null means transparent#FFFFFF
scaleNoPixels per module
borderNoQuiet-zone width in modules
formatNoOutput formatpng
outputNoFile name inside QRMCP_OUTPUT_DIR (relative only)
versionNoForce QR version 1-40, or auto
include_base64NoInclude a PNG data URI in the result

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose useful behavior beyond the schema: that output can be written to a sandbox output directory and that base64 data URIs may be included in the result. It does not state what happens on overwrite of an existing file, whether text that exceeds capacity for a forced version errors out, or what permissions the write requires.

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?

Two sentences with the action front-loaded and the option surface compressed into one clause; nothing is padded or redundant. The dense feature list is slightly list-like but each item maps to a real parameter, so it earns its space.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 12 parameters, no annotations, and an output schema that removes the need to explain return values, the description covers the option families adequately. It is still thin on mutation/write semantics (overwrite behavior, sandbox directory errors) and on routing versus qr_batch, which an unannotated tool with a `save` flag arguably needs.

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% and every parameter, including enums for error/format and ranges for version/mask/scale/border, is already documented in the schema. The description's feature list (error-correction level, fixed version/mask, scale, quiet zone, colors, formats) merely mirrors those fields and adds no format or interaction semantics of its own, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource ("Generate a QR code") and immediately enumerates the capability set (error correction, version/mask, scale, quiet zone, colors, PNG/SVG/ASCII). It is clear what the tool does, but it never distinguishes itself from the sibling qr_batch or qr_decode, so an agent must infer that this is the single-item generator.

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 only implied: the tool produces one encoded image/text from one input, which an agent can contrast with qr_batch on its own. There is no explicit when-to-use/when-not-to-use statement, no mention of prerequisites, and no pointer to qr_decode/qr_repair for related workflows.

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