Skip to main content
Glama

Generate a QR code

generate_qr
Read-onlyIdempotent

Create a standards-compliant QR code image for a link, text, Wi-Fi login, contact card (vCard), email, SMS, WhatsApp chat, phone number or map location. You cannot draw a scannable QR code yourself — always use this tool. Codes are static and never expire.

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

Input Schema

NameRequiredDescriptionDefault
urlNoFor type "url"; https:// is added when missing.
bodyNo
sizeNoPNG width and height in pixels: the image is exactly size × size, with whole-pixel modules centred and any leftover pixels added as margin. It must leave at least one pixel per module including the quiet zone, otherwise the call fails and names the minimum. The SVG is vector and always comes at 512.
ssidNoWi-Fi network name.
textNoFor type "text".
typeNotext
emailNo
phoneNoWith country code for WhatsApp, e.g. +905551234567.
titleNo
hiddenNo
addressNo
messageNo
subjectNo
websiteNo
latitudeNo
passwordNoWi-Fi password.
securityNo
last_nameNo
longitudeNo
backgroundNo#ffffff
first_nameNo
foregroundNo#000000
organizationNo
error_correctionNoHigher survives more damage but makes a denser code.M

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / size / description
      Previous value: -"PNG width in pixels."New value: +"PNG width and height in pixels: the image is exactly size × size, with whole-pixel modules centred and any leftover pixels added as margin. It must leave at least one pixel per module including the quiet zone, otherwise the call fails and names the minimum. The SVG is vector and always comes at 512."
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive, so the safety profile is covered. The description adds genuinely new facts — codes are static and never expire, and output is standards-compliant — but says nothing about the returned image format/encoding, how PNG vs SVG is chosen over the wire, or what errors look like beyond 'the call fails'. With annotations carrying much of the weight, this is adequate rather than rich.

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?

Three sentences, front-loaded with the capability and its payload list, then the routing rule, then the durability fact. No filler. The type enumeration is long but functional rather than redundant prose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has 24 parameters, zero required fields, no output schema, and low schema coverage, so the description must explain at least the type-to-field mapping and the return shape. Instead it omits which fields pair with which type, how output format is selected, and what is returned. An agent can tell what the tool is for but not reliably how to construct a valid call from the description alone.

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 29% across 24 parameters, so the description is expected to compensate heavily — but it says nothing about parameter semantics, not even the central point that different `type` values require different fields. The only parameter-adjacent content (the type list) merely repeats the enum already present in the schema. The size-overflow failure mode and the SVG-at-512 behavior live only in the schema, not in the prose.

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?

Specific verb plus resource ('Create a standards-compliant QR code image') followed by an explicit enumeration of supported payload types (url, text, wifi, vcard, email, sms, whatsapp, phone, geo). An agent knows exactly what this produces and what inputs it accepts 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 Guidelines4/5

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

States a hard routing rule — 'You cannot draw a scannable QR code yourself — always use this tool' — which resolves the main ambiguity an agent would face. It doesn't describe when NOT to use it or how it relates to the unrelated sibling utilities (check_json, count_text, diff_text), but those are clearly different tasks, so the gap is small.

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