Skip to main content
Glama

ScorpTech x402 Tools

Qr Generate

qr_generate
Read-onlyIdempotent

Generate a QR code (PNG or SVG, base64 + data URI) for any UTF-8 text up to 2953 bytes. Options: ecc L|M|Q|H, size (px/module), margin, format png|svg, fg/bg hex colours. Returns JSON with: format, mime, image, data_uri, svg, version, modules, width_px. Price: $0.005 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/qr-generate

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

Input Schema

NameRequiredDescriptionDefault
bgNoBackground hex, default ffffff
fgNoForeground hex, default 000000
eccNoL | M (default) | Q | H
sizeNoPixels per module 1-64, default 8
textYesText/URL to encode, 1-2953 bytes UTF-8
formatNopng (default) or svg
marginNoQuiet-zone modules 0-16, default 4

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and openWorld, so the safety profile is covered. The description goes beyond that by disclosing the paid x402 mechanism ($0.005 USDC per successful call on Base or Solana) and an equivalent HTTPS endpoint — material behavior an agent must plan around 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?

The capability and hard input limit are front-loaded, then options, then return keys, then cost. It is dense but every clause carries information; the only weakness is that the pricing and endpoint details run together with the option list in one long paragraph.

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?

With no output schema, the description explicitly enumerates the returned JSON fields (format, mime, image, data_uri, svg, version, modules, width_px), and it supplies the payment, network, and alternate transport facts. Nothing needed to call or budget for the tool is missing.

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 seven parameters, including the ecc and format enums and defaults, are already documented. The description restates the same option set (ecc, size, margin, format, fg/bg) without adding syntax, interaction, or defaulting rules beyond the schema, so baseline 3 applies.

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 specific verb and resource ("Generate a QR code") plus the supported output encodings (PNG or SVG, base64 + data URI) and input domain (UTF-8 text up to 2953 bytes). An agent immediately knows what it gets and what it can feed in.

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 defines the input envelope (up to 2953 bytes of UTF-8) and enumerates options, which implies when the tool is applicable. However, it never contrasts with the sibling barcode_generate or states when-not to use it, leaving selection guidance to inference.

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