Skip to main content
Glama
acrylicfiddle

x402tools MCP Server

Generate QR Code

qr.generate
Read-onlyIdempotent

Generate a QR code from any text or URL and receive it as a base64 PNG image, SVG, or binary format with customizable size. Pay $0.01 USDC via x402 protocol to get your QR code instantly.

Instructions

Generate a QR code from text or URL. Returns PNG image as base64. Costs $0.01 USDC on Base.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNoImage width/height in pixels
textYesContent to encode in QR code
formatNoOutput formatbase64
_paymentNoBase64-encoded signed v2 PaymentPayload (the value you'd put in the PAYMENT-SIGNATURE HTTP header). Use @x402/evm or @x402/fetch to sign locally with your own wallet — your private key never leaves your machine. Get the requirements from a first call without _payment, then retry.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoError message when the call failed.
resultNoRaw JSON payload returned by the x402 service on a successful, paid call.
networkNoSettlement network for the x402 payment (base).
serviceNoUnderlying x402tools service that handled the call.
encodingNoEncoding of the binary payload (base64).
mimeTypeNoMIME type of the returned binary payload (e.g. image/png, application/pdf).
price_usdcNoPrice charged for this call, in USDC on Base.
requirementsNox402 payment requirements (scheme, network, amount, payTo, asset) when payment_required is true.
payment_requiredNoTrue when the call needs an x402 payment before it will run.
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the safety profile is well-covered. The description adds value by disclosing the payment cost ($0.01 USDC) which is a genuine behavioral trait beyond annotations. It also reveals the return format (PNG base64). No contradiction with annotations found.

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?

Three short sentences with zero waste. Each sentence earns its place: purpose, output format, and cost. Information is front-loaded with the core purpose stated first.

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 relatively simple generate tool, the description is complete: it states purpose, output format, and cost. The output schema exists, so return values don't need elaboration. The _payment parameter is complex but already thoroughly documented in the schema itself. Could mention pagination/limits but none apply to QR generation.

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 4 parameters are already documented in the schema, including the size default, format enum, and _payment instructions. The description adds the output-format detail (PNG base64) and cost context, but doesn't add meaning beyond the schema's parameter descriptions. Baseline 3 is appropriate given complete schema coverage.

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 uses a specific verb+resource ('Generate a QR code') with clear scope ('from text or URL'). It also states the output format (PNG image as base64) and distinguishes from the sibling tool qr.generate_styled by implying standard QR generation. Purpose is fully clear.

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 description implies usage context (encode text/URL into QR) but offers no explicit when-to-use vs alternatives guidance. There's no mention of when to use qr.generate vs qr.generate_styled, or exclusions. The cost mention ($0.01 USDC on Base) adds a practical usage signal but not comparison guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/acrylicfiddle/x402tools-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server