Skip to main content
Glama

Create a local QR code

abox_qr_generate

Generate a verified SVG or PNG QR code from exact UTF-8 text in a local file, with no redirects or hosted service. Decodes modules to confirm validity, supports color and scale options, and keeps payload out of results.

Instructions

Read exact UTF-8 payload text from a local file and generate a new SVG or PNG QR code using the website encoder. No redirect or hosted QR service. Verify by decoding the generated modules; PNG also verifies rendered pixels. SVG requires no browser; PNG uses the installed local browser. Payload contents never enter the tool result. Includes a minimum four-module quiet zone.

Input Schema

NameRequiredDescriptionDefault
levelNoM
quietNo
scaleNo
formatNosvg
backgroundNo#ffffff
foregroundNo#000000
input_pathYesAbsolute path of the UTF-8 payload file. Text is kept exact, including any final newline.
output_pathYesAbsolute local filesystem path. URLs and network shares are refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.0

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that payload contents never enter the tool result (a privacy guarantee the agent could not otherwise assume), that output is verified by decoding modules and, for PNG, rendered pixels, and that PNG requires a local browser while SVG does not. These are exactly the operational facts that change how an agent plans the call.

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?

Six tightly packed sentences with the core action front-loaded and no filler. The density is high but nearly every clause carries a distinct operational fact; the quiet-zone sentence tacked on at the end is the weakest placement.

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 write-a-file tool with no output schema and low schema coverage, the description supplies the verification story, the browser dependency, the privacy guarantee, and the quiet-zone floor. The only real omission is whether an existing file at output_path is overwritten, which is minor against what is covered.

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 only 25%, so the description must carry more weight; it adds meaning for format (browser dependency) and quiet (four-module minimum), but says nothing about level, scale, foreground, or background, leaving half the parameters undocumented anywhere. The error-correction enum L/M/Q/H in particular gets no explanation.

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?

States a specific verb and resource with scope: it reads a UTF-8 payload file and emits an SVG or PNG QR code via a local encoder. The closest sibling, abox_barcode_generate, is never named or contrasted, so an agent must infer the QR-vs-barcode split from the tool name alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives real selection guidance for the format choice ('SVG requires no browser; PNG uses the installed local browser') and rules out a class of alternatives with 'No redirect or hosted QR service.' It stops short of explicit when-not conditions or naming barcode_generate as the alternative for non-QR symbologies.

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