Skip to main content
Glama

generate_qr_code

QR Code Generator — Generate a QR code from a URL, text, or vCard data as a PNG image. [category: generate]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNoWidth and height of the square image, in pixels.
levelNoError-correction levelM
contentYesThe URL, text, or vCard data to encode

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / size / x-ui
      Added value: +{
      +  "unit": "px"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / size / description
      Previous value: -"Image size in pixels (max 2000)"New value: +"Width and height of the square image, in pixels."
    • changedInput schema / properties / size / minimum
      Previous value: -1New value: +200
  3. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare non-read-only and non-destructive behavior; the description adds that output is a PNG image and inputs span URL/text/vCard. However, it does not disclose where the generated PNG is delivered (file path, base64, binary), whether a file is written to the workspace, or how invalid content is handled.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core sentence is tight and information-dense, but the leading 'QR Code Generator' repeats the title attribute and the trailing '[category: generate]' tag adds no decision-relevant value for an agent. Two of the three segments are redundant.

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?

With no output schema, the description bears the burden of explaining the result; 'as a PNG image' partially covers this but omits the return mechanism (file reference vs. inline data). For a simple 3-parameter generator whose schema documents all parameters, this is adequate but leaves a real 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%, so the baseline 3 applies. The description's phrase 'URL, text, or vCard data' merely echoes the schema's own content description ('The URL, text, or vCard data to encode') and adds no parameter-level detail beyond it.

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?

The description states a specific verb (Generate), resource (QR code), accepted input types (URL, text, vCard data), and output format (PNG image). This clearly distinguishes it from siblings like generate_barcode and generate_placeholder_image without needing to open any 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 input types (URL, text, vCard) imply when the tool applies, but there is no explicit when-to-use guidance, no mention of alternatives, and no exclusionary conditions (e.g., 'for barcodes use generate_barcode'). Usage context is present but left to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources