Skip to main content
Glama

Create QR Code

create_qr_code

Save a styled QR code to the account and return it with a PNG preview. Dynamic types (url, vcard, event, links) encode a wx93 short link: scans are counted and the content can change after printing (vcard, event and links get a hosted page). Static types (text, wifi, email, phone, sms, whatsapp, geo, crypto) carry their content directly. Data keys per type: url {url}; vcard {first, last?, org?, title?, phone?, email?, url?, address?, note?}; event {title, start, end?, tz?, location?, description?, url?}; links {title, description?, links: "Label | https://… per line"}; text {text}; wifi {ssid, password?, encryption? WPA|WEP|nopass, hidden?}; email {to, subject?, body?}; phone {number}; sms {number, message?}; whatsapp {number, message?}; geo {lat, lng, label?}; crypto {coin, address, amount?, label?}.

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": {
      "type": "<type>",
      "data": "<data>"
    },
    "name": "create_qr_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesThe type's fields (see the description).
nameNo
typeYes
aliasNoDynamic codes, Pro and up: a custom short code.
styleNoHow the code looks. Colours are hex. Too little contrast between fg and bg is refused.
domainNoDynamic codes: wx93.me (default) or a verified custom domain.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (which only declare write, non-destructive, closed-world), the description discloses that scans are counted, content is mutable after printing for dynamic types, a hosted page is generated for vcard/event/links, alias requires Pro and up, and custom domains must be verified. It also flags a failure mode: insufficient fg/bg contrast is refused. This is exactly the context annotations cannot carry.

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 first two sentences front-load purpose and the dynamic/static split, and the per-type key list is terse with ? markers for optional fields. The data-key enumeration is dense and unbroken, which costs some scannability, but no sentence is filler.

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

Completeness5/5

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

There is no output schema, yet the description states what comes back (the saved code plus a PNG preview). For a mutation tool with a nested free-form data object and plan-gated options, the definition covers creation, cost/behavior differences, and a validation failure mode.

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

Parameters5/5

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

The schema leaves data as a nearly opaque object ("The type's fields (see the description)"), so the description carries the real burden by enumerating required and optional keys for all eleven types, including the unusual links line format and wifi encryption values. It also adds plan-gated meaning to alias that the schema only hints at.

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?

"Save a styled QR code to the account and return it with a PNG preview" names a specific verb, resource, and side effect. The resource is distinctive against create_invite, create_webhook, and shorten_url, 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 description gives strong guidance on choosing a type (dynamic vs static, which types get a hosted page), but it never states when to use this tool versus an alternative or any preconditions for calling it. Usage is therefore implied by type semantics rather than stated as tool-selection advice.

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