Skip to main content
Glama

crypto_payment_uri

Read-only

Crypto payment URI parser and safety check — Parse a wallet payment link or QR payload before paying: EIP-681 (ethereum: native and ERC-20 transfer, chain id, value in wei incl. scientific notation), BIP21 (bitcoin: address, amount, label, message, lightning fallback, req- parameters), Lightning (lightning: BOLT11 invoice, LNURL, Lightning Address) and Solana Pay (solana: transfer requests with spl-token, reference, memo, or transaction-request links). Returns the network, recipient, asset (built-in USDC/USDT/DAI contracts on Ethereum, Base, Arbitrum, Optimism, Polygon and Solana mints), exact amount in base units and display form, EIP-55 checksum status, base58check/bech32 address validity, and a verdict OK, REVIEW or DO_NOT_PAY with plain-language warnings (missing chain id, bad checksum, unknown token, expired invoice, unknown required parameter). URL-encode the uri value. Offline; no network calls. Returns 422 for unsupported schemes. Price: $0.003 USDC (Base, via x402).

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": {
      "uri": "<uri>"
    },
    "name": "crypto_payment_uri"
  }
}

Input Schema

NameRequiredDescriptionDefault
uriYesethereum:0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913@8453/transfer?address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&uint256=1000000

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations it discloses the full output triad (OK / REVIEW / DO_NOT_PAY), the specific warning categories issued, the 422 error for unsupported schemes, offline/no-network behavior, and even a price point. That is well past what readOnlyHint/destructiveHint convey. Minor tension: openWorldHint=true while the text says "Offline; no network calls", though this reads as local parsing of open-ended external payloads rather than a true conflict.

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 first sentence front-loads purpose and the rest is dense, information-bearing content (schemes, return fields, warnings, errors, pricing) with no filler sentences. It is long for a single paragraph and the parenthetical lists are heavy, which costs a point on scannability but nothing is wasted.

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?

With no output schema, the description carries the return-value burden and does so well: network, recipient, asset, exact base-unit amount, checksum/address validity, verdict and warnings are all named. It stops short of giving response field names or nesting, which would remove the last guesswork for an agent parsing the result.

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?

With one parameter and 100% schema coverage the baseline is 3, and the example value in the schema already illustrates the format. The description earns an extra point by stating "URL-encode the uri value", a non-obvious encoding requirement that the schema does not express, plus the scheme catalogue that tells the agent what input grammar is acceptable.

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?

"Crypto payment URI parser and safety check" is followed by an explicit verb+resource (parse a wallet payment link or QR payload) and an enumeration of exactly which schemes are handled (EIP-681, BIP21, Lightning, Solana Pay). The scope is narrow enough that an agent can tell it apart from address-validation or balance siblings 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?

"Parse a wallet payment link or QR payload before paying" gives a clear activation context (pre-payment inspection) and the listed verdicts reinforce the pre-flight use case. There is no explicit when-not clause or naming of the overlapping siblings (crypto_btc_payment_check, chain_payment_verify, crypto_address_validate), so the agent must infer boundaries.

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