Skip to main content
Glama

QR code generator

generate_qr_code
Read-only

Generate a QR code from text or a URL and get a PNG image plus SVG source, with controls for size, colors, and error correction.

Instructions

Generate a QR code for text or a URL. Returns a PNG image and the SVG source. (Same as IT-Tools /qrcode-generator.)

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_qr_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNoPNG width in pixels
textYes
backgroundNo#ffffff
foregroundNo#000000
errorCorrectionNoM

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful return-format context ('Returns a PNG image and the SVG source') that no output schema provides, but it does not say how the image is delivered (base64, file path, attachment) or how the PNG/SVG pair is structured.

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 short sentences with the core action and return values front-loaded; nothing is padded. The trailing IT-Tools parity note is marginal value but brief enough not to hurt.

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?

Return values are covered in prose, which matters because there is no output schema. However, for a five-parameter tool with only 20% schema documentation, the description leaves the color and error-correction options entirely unexplained, so an agent cannot confidently use the full surface.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 20% — just 'size' is documented. Four parameters (background, foreground, errorCorrection, and text semantics beyond 'text or URL') get no explanation in either schema or description; notably the L/M/Q/H error-correction tradeoff and color formats are never mentioned, so the description does not compensate for the coverage gap.

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

Purpose5/5

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

States a specific verb ('Generate') and resource ('a QR code') plus the accepted input kinds (text or URL). The resource is unambiguous against every sibling (uuid, token, rsa_key_pair, etc.), so an agent can select it without opening the schema.

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?

The phrase 'for text or a URL' implies the applicable input domain, but there is no explicit when-to-use/when-not guidance and no named alternative (e.g. get_it_tool_link or search_it_tools for finding other tools). Usage is inferable rather than stated.

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