Skip to main content
Glama

Generate QR Code

util_qr
Read-onlyIdempotent

Generate ASCII or SVG QR codes for Nano addresses, optionally embedding an XNO amount in the payment URI for easy scanning and sharing.

Instructions

Generate an ASCII or SVG QR code for a Nano address, optionally with an amount.

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": {
      "address": "<address>"
    },
    "name": "util_qr"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoOutput format: ascii or svgascii
addressYesNano address to encode (nano_...)
amountXnoNoOptional amount in XNO to embed in the QR URI

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.2.1

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, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds little beyond that — no mention of what the ASCII output looks like (terminal art vs. plain text), size/correction-level behavior, or how the openWorld aspect manifests. Adequate but not rich.

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?

A single front-loaded sentence with the verb, formats, resource and optional parameter all stated; no filler or redundancy.

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?

For a simple stateless 3-parameter utility with no output schema, the description covers what is produced (ASCII or SVG) and the optional amount. Minor gaps like output shape for ASCII art are tolerable given the tool's simplicity.

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 description coverage is 100%, so all three parameters are already documented, and the description merely restates the format choice and optional amount. No added semantics such as URI scheme format or how amountXno interacts with the encoding, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Generate ... QR code") plus the encoded resource type (Nano address) and output formats, which separates it from util_convert/util_validate. It does not name a sibling comparison, so it stops short of a 5.

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?

Usage is only implied: the agent can infer this is the utility for turning an address (plus optional amount) into a scannable code. There is no explicit when-to-use versus util_convert or util_validate, and no stated exclusions or prerequisites.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.