Skip to main content
Glama

Agent Data Hub

QR code generator (SVG + GIF data URI)

util_qr
Read-onlyIdempotent

Turn any text or URL (max 2000 chars, full Unicode) into a QR code. Returns a ready-to-embed SVG string, an SVG data URI and a GIF data URI (works in , Markdown, email HTML), plus QR version and module count. Options: ecc error-correction level L/M/Q/H (default M; H survives a logo over the centre), size in pixels per module (1–20, default 8), margin in modules (default 4), matrix=true adds the raw 0/1 grid. Verified decodable. Use for payment links, wallet addresses, Wi-Fi, tickets, vCards, links on printed material. Price: $0.001 per call (USDC on Base via x402); the first 10 calls per day are free.

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
eccNoError correction: L, M (default), Q or H
sizeNoPixels per module 1–20 (default 8)
textYesText or URL to encode (max 2000 characters)
marginNoQuiet zone in modules 0–10 (default 4)
matrixNotrue to also return the 0/1 module grid

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare read-only/idempotent/non-destructive; the description adds constraints and behavior the agent cannot infer: 2000-char input limit, full Unicode support, 'Verified decodable' output guarantee, and an explicit cost model ($0.001 per call on Base via x402, first 10 calls/day free) that materially affects whether to call it. These are exactly the kind of facts an agent needs before invocation.

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?

Front-loaded with what the tool produces, then options, then use cases, then price — a sensible order with no filler sentences. It is dense to the point of being list-like in one paragraph, which costs a little readability, but every clause carries information.

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, and the description fully compensates by specifying the exact return shape (SVG string plus both data URIs plus version/module count, with optional matrix). Combined with the documented limits and cost, an agent has everything needed to call this correctly on the first attempt.

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

Parameters4/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 description adds real semantic value: it explains that ECC level H 'survives a logo over the centre' and that matrix=true adds the raw 0/1 grid, which the schema only names. It also restates defaults and ranges (size 1–20 default 8, margin default 4) already present in the schema, so it does not rise above a 4.

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?

States a concrete verb and resource ('Turn any text or URL ... into a QR code') and immediately enumerates the exact return artifacts (SVG string, SVG data URI, GIF data URI, version, module count), which no sibling util_* tool produces. An agent can distinguish this from util_encode or util_color 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?

Gives concrete use cases ('payment links, wallet addresses, Wi-Fi, tickets, vCards, links on printed material') that let an agent decide when this tool applies. It does not name an alternative or an explicit when-not condition, but the util_* siblings don't overlap functionally, so the guidance is adequate.

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