Skip to main content
Glama

util_qr

Read-only

QR code generator (SVG) — Generate a QR code offline from any text, URL, wallet/payment address or Wi-Fi string (UTF-8 byte mode, versions 1-40, up to 2953 bytes). Params: text (required), ecc L|M|Q|H (default M), size px per module, margin (quiet zone, default 4), dark/light hex colors (light=transparent allowed), format=svg for the raw image, matrix=true for the module grid. Returns SVG markup, a base64 data URI, version, mask and capacity. Price: $0.002 USDC (Base, via x402).

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

Input Schema

NameRequiredDescriptionDefault
textYeshttps://api.polyform.org

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare the read-only, non-destructive, open-world profile; the description goes well beyond that with the per-call price ('$0.002 USDC (Base, via x402)'), the capacity limitation, the quiet-zone default, and the transparency allowance for the light color. It also spells out the return payload (SVG markup, base64 data URI, version, mask, capacity), so an agent knows what it gets and what it costs before calling.

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?

Everything is packed into a single front-loaded paragraph: purpose first, then parameters, then return shape, then price. No sentence is filler, but the dense 'Params: ...' run-on is harder to scan than a short bulleted layout and buries the payment note at the tail.

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

Completeness4/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 correctly compensates by describing the returned fields, and it discloses the paid-access requirement, byte limits and encoding mode. The one gap is the unresolved mismatch between the promised options and the single-parameter schema, which leaves an agent unsure which arguments are legal.

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 coverage is 100%, so the baseline is 3, but the relationship here is awkward: the schema declares only 'text' (with a cryptic URL example as its description), while the description advertises ecc, size, margin, dark/light and format/matrix options that do not appear in the schema at all. The extra semantics (defaults M and margin 4, enum values L|M|Q|H) are genuinely useful, yet an agent cannot tell whether those arguments are actually accepted, which undercuts the added meaning.

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 opens with a specific verb and resource ('QR code generator (SVG) — Generate a QR code') and enumerates the accepted input domains (text, URL, wallet/payment address, Wi-Fi string). It also names the encoding regime and version range, which makes it unmistakable against encoding-adjacent siblings like util_base64 or util_json_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?

It gives clear usage context — offline generation, UTF-8 byte mode, versions 1-40, a hard 2953-byte ceiling — plus option-level guidance ('format=svg for the raw image, matrix=true for the module grid'). It stops short of naming when to prefer a sibling tool or what to do when the payload exceeds the byte cap, so no explicit alternatives are offered.

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