Skip to main content
Glama

FMF Tools Utilities

qr_png

QR code PNG ($0.002 per call, paid via MPP on Tempo). Generate a QR code PNG for text/URL, Wi-Fi login (type=wifi: ssid,password,security), contact card (type=vcard: name,phone,email,org,website), email, SMS, geo, or a Tempo payment request (type=tempo: address, amount, token). Custom colours, size, error correction. Returns image/png (format=json for base64). HTTP POST https://mpp-tools.fmf-x402.workers.dev/mpp/qr/png. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.

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

Input Schema

NameRequiredDescriptionDefault
bgNohex bg
eccNo
sizeNopixels, 64-2048 (default 512)
textNocontent (URL, text...)
typeNo
colorNohex fg, e.g. #000000
formatNo
marginNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it discloses cost ($0.002 per call), the payment rail (MPP on Tempo), the required MPP Payment Authorization header, and explicitly warns that the wrapper does not settle payment itself, pointing to the HTTP route as an alternative. What it omits is failure behavior — what an agent sees if payment is not authorized — which keeps it short of a 5.

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 dense sentences that front-load purpose and price before mechanics, then the payload shapes per type, then output format and transport. Every clause carries new information; nothing restates the tool name or padding.

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 an 8-parameter, zero-required, no-output-schema, no-annotation tool, this covers the critical unknowns: what is produced (image/png vs base64 JSON) and what is needed to actually invoke it (paid MPP header). Only the default `type`, the requiredness of `text` per type, and the `margin` parameter are left unresolved.

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 only 50%, so the description must compensate, and it does: the type-specific payload shapes (type=wifi: ssid,password,security; type=vcard: name,phone,email,org,website) are documented nowhere in the schema and are essential for correct invocation. Styling params (colours, size, error correction) are named at a high level but `margin` is never mentioned, leaving one gap.

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?

Opens with a concrete verb+resource+format: 'Generate a QR code PNG', then enumerates the supported content types (text/URL, Wi-Fi, vCard, email, SMS, geo, Tempo payment request). It is immediately distinguishable from a scanner or an SVG emitter by the explicit PNG output and 'Returns image/png' clause, though it never names a sibling tool to contrast against.

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 context is implied by the enumeration of content types and the 'format=json for base64' hint, which tells an agent how to retrieve the image in a text-only context. However there is no explicit when-to-use/when-not guidance relative to qr_svg or qr_scan, and no statement of whether `type` defaults to text or that `text` must be supplied.

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