Skip to main content
Glama

x402 payment verify: did this transaction really pay USDC to this address?

x402_verify

Use when an agent or seller must confirm a payment before delivering: checks a Base, Base Sepolia or Solana transaction for a USDC transfer to pay_to of at least amount. Input: tx (hash or signature), pay_to, network (default eip155:8453), optional amount in USDC. Output: JSON paid true/false, verdict, received, payers, block, time, confirmations. Bad formats refused before payment. Example: ?tx=0x…&pay_to=0x…&amount=0.01 Price: $0.002 USDC (Base or Solana) via x402.

Input Schema

NameRequiredDescriptionDefault
txYesTransaction hash (0x…, Base) or signature (base58, Solana)
amountNoExpected minimum USDC amount, e.g. 0.01
pay_toYesReceiving address (0x… on Base, base58 owner address on Solana)
networkNoCAIP-2 network (default eip155:8453 = Base)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/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 most of it: it names the supported networks, the default network, the minimum-amount semantics, the failure mode ('Bad formats refused before payment'), and the price. It omits auth/rate-limit behavior and whether confirmations must reach a threshold before paid=true.

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?

Front-loaded with the decision trigger, then inputs, outputs, error behavior, example and price — dense and mostly waste-free. The inline example query string and pricing sentence are useful but add bulk that could be trimmed slightly.

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?

No output schema exists, and the description compensates by enumerating the returned fields (paid, verdict, received, payers, block, time, confirmations). Combined with network coverage, cost, and invalid-input handling, an agent has everything needed to call and interpret this tool.

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 100%, so the baseline is 3; the description still adds real meaning by clarifying that amount is a minimum threshold ('at least amount'), that network defaults to eip155:8453, and that tx accepts either a Base hash or a Solana signature. It also shows a concrete example invocation tying the parameters together.

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 — verifies that a Base/Solana transaction actually transferred USDC to a given address — and frames it around the decision it supports (confirm before delivering). This is clearly distinct from sibling raw-chain tools like base_tx or sol_tx, which fetch transactions rather than adjudicate payment.

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?

'Use when an agent or seller must confirm a payment before delivering' gives an explicit, actionable trigger condition. It does not name a when-not case or point at a sibling alternative (e.g. use base_tx to merely inspect a transaction), so it falls short of the top band.

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