Skip to main content
Glama

compile_permanent_qr_asset

Idempotent

Compiles permanent static QR codes for URL, Wi-Fi, vCard, email, phone, or text into vector SVG and optional 300-DPI PNG with no third-party redirect dependencies.

Instructions

Compiles a permanent static ISO/IEC 18004 QR code (direct URL, Wi-Fi WPA, vCard 3.0, mailto, tel, or text) into a crisp vector SVG and optional 300-DPI binary PNG with zero third-party redirect dependencies.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "compile_permanent_qr_asset"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoPayload schema to compile ("url", "text", "wifi", "vcard", "mailto", or "tel"; defaults to "url").
maskNoOptional explicit ISO/IEC 18004 mask pattern (0..7); omit for automatic N1..N4 minimum-penalty selection.
wifiNoStructured Wi-Fi parameters when kind="wifi".
vcardNoStructured vCard 3.0 contact fields when kind="vcard".
bgColorNoBackground hex color (defaults to "#FFFFFF").
ecLevelNoError correction level (defaults to "H" when logoText is set, else "M").
fgColorNoModule hex color (defaults to "#141821").
payloadNoDirect URL, text, email, or phone number (used when kind is "url", "text", "mailto", or "tel").
logoTextNoOptional 1–4 character center monogram rendered inside a Reed-Solomon safe cutout.
logoAreaPctNoTarget center cutout area percentage when logoText is provided (defaults to 12).
outputPngPathNoOptional local filesystem path where the 300-DPI binary .png file should be written.
outputSvgPathNoOptional local filesystem path where the compiled vector .svg file should be written.
stripTrackingNoWhen true (default for kind="url"), strips utm_*, fbclid, gclid, and spm tracking clutter before encoding.
returnPngBase64NoWhen true, includes the 300-DPI binary PNG encoded as Base64 in the JSON response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false, so safety is largely covered; the description usefully adds that the code is "permanent static" with data embedded rather than a redirect, which is real behavioral context. It does not disclose write semantics for outputSvgPath/outputPngPath — whether existing files are overwritten, whether parent directories are created, or what is returned when a path is omitted.

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?

A single dense sentence, front-loaded with the action and output formats, with no filler. It is jargon-heavy (ISO/IEC 18004, Reed-Solomon appears in schema only) but every clause carries information.

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?

For a 14-parameter tool with nested objects and no output schema, the description covers inputs and the static/permanent nature of the result but says nothing about the response shape (base64, paths, SVG string) or error behavior for malformed vCard/Wi-Fi payloads. Since there is no output schema, that omission is a real completeness 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?

Schema description coverage is 100% and every parameter (kind, mask, wifi/vcard nested fields, colors, ecLevel, stripTracking, returnPngBase64) is documented in the schema, so baseline 3 applies. The description echoes the kind list but adds no encoding constraints, defaults, or interactions beyond what the schema already states.

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?

"Compiles a permanent static ISO/IEC 18004 QR code ... into a crisp vector SVG and optional 300-DPI binary PNG" gives a precise verb, resource, and output format, and the parenthetical enumerates exactly which payload kinds are supported. The phrase "zero third-party redirect dependencies" implicitly separates it from redirect/shortener-based tooling, but no sibling is named, so the differentiation against clean_qr_tracking_url or compile_a4_batch_sticker_sheet is left to inference.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use statement: nothing says to run clean_qr_tracking_url first, or to use compile_a4_batch_sticker_sheet when producing sheets. Usage is only implied by listing the payload kinds and output targets. An agent must infer the routing itself.

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