Skip to main content
Glama
qr-code-mcp

qr-code-mcp

by ChaseC99

generate_text_qr

Encode arbitrary text into a QR code image with customizable colors, size, margins, and error correction, output as PNG or SVG.

Instructions

Generate a QR code that encodes arbitrary text.

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": "generate_text_qr"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText to encode
widthNoImage width in pixels (PNG only)
formatNoOutput format: base64 PNG or SVG stringpng
marginNoQuiet zone margin in modules
backgroundColorNoBackground color (hex, e.g. #ffffff)#ffffff
errorCorrectionNoError correction level: L(7%), M(15%), Q(25%), H(30%)M
foregroundColorNoForeground color (hex, e.g. #000000)#000000

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and it discloses almost nothing: no statement that the tool returns image data rather than a URL, no note that the output is a base64 PNG or an SVG string, no size or payload-length limits. The only behavioral information available comes from the schema's format and width descriptions, not the description itself.

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 front-loaded sentence with zero filler or repetition. It is efficient, though its brevity reflects under-specification rather than disciplined economy.

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 simple generator with a fully documented seven-parameter schema and no output schema, a one-line description is thin but not fatal — the schema covers all inputs. What is missing is the return shape (base64 PNG vs SVG string) and any payload size limits, which matter because there is no output schema and no annotations.

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 all seven parameters carry their own descriptions, enums, defaults, and min/max bounds, so the baseline of 3 applies. The description adds no meaning beyond the schema, not even clarifying what the required "text" field accepts in terms of length or encoding.

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 gives a specific verb ("Generate") and resource ("QR code") plus the payload type ("arbitrary text"), which implicitly separates it from the typed siblings like generate_url_qr or generate_vcard_qr. It stops short of naming any sibling explicitly, so differentiation relies on the reader inferring that structured payload types belong elsewhere.

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?

"Arbitrary text" hints at the intended case (freeform text rather than URL, email, wifi, etc.), but there is no explicit when-to-use or when-not-to-use statement and no mention of the sibling generators. Usage must be inferred from the content-type qualifier alone.

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