Skip to main content
Glama

Generate a QR code

generate_qr_code
Read-onlyIdempotent

Build a static QR code for text, a URL, Wi-Fi, or a vCard. Returns the payload, an SVG string, and a PNG as base64.

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

Input Schema

NameRequiredDescriptionDefault
eccNoM
urlNo
darkNo#111111
sizeNo
textNo
typeNourl
wifiNo
lightNo#ffffff
vcardNo
marginNo

Output Schema

NameRequiredDescriptionDefault
svgYes
payloadYes
pngBase64Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. 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 readOnlyHint, idempotentHint, and openWorldHint=false, so safety and repeatability are covered. The description adds two genuinely useful traits beyond that: the output is "static" (not a dynamic/editable code) and three representations are returned (payload, SVG string, base64 PNG). It omits any behavioral detail on validation failures, e.g. what happens with `type: wifi` and an empty ssid, or the interaction between `size` and error-correction level.

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

Conciseness5/5

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

Two sentences with zero filler: the capability statement comes first, the return shape second. Nothing is repeated from the title and there is no throat-clearing.

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?

For a tool with 10 parameters, nested objects, and 0% schema description coverage, two sentences are not enough — the agent gets no guidance on assembling the `wifi`/`vcard` payloads or on sensible `ecc`/`size` choices. The presence of an output schema excuses it from explaining return values, but the input side is left almost entirely undocumented.

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 0% across 10 parameters, including two nested objects, so the description carries the full burden and largely fails to meet it. It mentions the four content types, which loosely maps to `type`, but says nothing about `ecc`, `size` (128–2048), `margin`, `dark`/`light`, or how the `wifi` and `vcard` sub-fields are structured.

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?

"Build a static QR code" is a specific verb plus resource, and the enumeration "text, a URL, Wi-Fi, or a vCard" maps one-to-one onto the `type` enum values, so the agent knows exactly what the tool produces. No sibling tool in the list does QR generation, so no further disambiguation is needed.

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 enumeration of content types implies the usage contexts, but the description never says which parameter to set or which companion object (`wifi`, `vcard`, `text`, `url`) must be populated for each type. There are no alternatives to route between, but also no explicit "use this when" statement or preconditions such as required input for the selected type.

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.