Skip to main content
Glama

Generate Local QR Code (PNG / SVG)

qr_generate

Create QR codes offline for URLs, Wi-Fi, vCards, or plain text and save them as PNG or SVG. Generates codes locally so content stays on disk without uploads.

Instructions

Generate a QR code completely offline as PNG or SVG (supports URLs, Wi-Fi payloads "WIFI:T:WPA;S:ssid;P:pass;;", vCards, plain text). PNG up to scale 8 (~256-512px) is Free; SVG vector export & ultra-HD (>scale 8) require ThisMyOwn PRO. Powered by CreateMy-QR.

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>",
      "outputPath": "<outputPath>"
    },
    "name": "qr_generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesContent to encode inside the QR code
scaleNoModule pixel scale (1-8 Free, >8 PRO)
formatNoOutput format: png (Free) or svg (PRO)png
marginNo
bgColorNoBackground hex color#ffffff
eclevelNoQR error correction levelM
fgColorNoForeground hex color#000000
outputPathYesDestination file path (.png or .svg)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does meaningful work: it discloses offline/local execution, the free-vs-PRO split for SVG and ultra-HD, and the effective resolution range. It stops short of stating whether an existing file at outputPath is overwritten, what is returned, or what errors occur on license failure.

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?

The core capability is front-loaded in the first clause and the payload examples are compactly parenthesized. The trailing 'Powered by CreateMy-QR.' is pure branding that earns no place in a tool definition, and the PRO pricing language is dense but functional.

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 an 8-parameter, no-annotation, no-output-schema file-writing tool, the description covers licensing gates and format limits but leaves the agent guessing on write semantics (overwrite behavior, output confirmation) and on failure modes. Adequate to invoke, not complete enough to predict side effects.

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 88%, so the schema already documents text, scale, format, colors, eclevel, and outputPath, including the free/PRO limits on scale and format. The description adds only a redundant restatement of the PNG/SVG and scale-8 thresholds, which is the expected baseline when the schema does the heavy lifting.

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?

The description opens with a specific verb and resource ('Generate a QR code') and immediately scopes it ('completely offline as PNG or SVG'), plus enumerates supported payload types (URL, Wi-Fi, vCard, text). It does not distinguish itself from siblings like qr_batch_generate, qr_structured_generate, or barcode_generate, which is the only thing keeping it from a 5.

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: single-code generation with the payload formats listed, plus a clear gating rule that SVG and scale >8 require PRO. However there is no explicit when-to-use or when-not guidance pointing at qr_batch_generate or qr_structured_generate, so an agent must infer the boundary from sibling names alone.

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