Skip to main content
Glama

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

x402_verify
Read-onlyIdempotent

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. Use instead: base_tx for full EVM transaction details; sol_tx for full Solana transaction details. Example: ?tx=0x…&pay_to=0x…&amount=0.0045 (real Base payment) Price: $0.002 per call, paid in USDC (Base, Monad, Polygon, Arbitrum or Solana) 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": {
      "tx": "<tx>",
      "pay_to": "<pay_to>"
    },
    "name": "x402_verify"
  }
}

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. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  4. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, open-world, non-destructive), the description discloses that malformed inputs are refused before any payment, enumerates the JSON verdict fields returned, and warns that each call costs $0.002 payable in USDC via x402 — a cost an agent must know before invoking.

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 use case, then Input/Output/alternatives/example/pricing in a scannable pattern with no filler sentences. It is dense and slightly crammed into one paragraph, but every line carries information an agent needs.

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?

There is no output schema, but the description enumerates the returned fields (paid, verdict, received, payers, block, time, confirmations), covers input formats, networks and pricing, and names the alternatives — nothing essential is missing for a read-only verification tool.

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 coverage is 100%, so the schema already documents tx, pay_to, amount and network including the CAIP-2 default. The description adds only a little — that amount is a minimum threshold and that Base Sepolia is a supported network — which falls short of exceeding the schema's own detail, so the 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?

Names a precise verb and resource: 'checks a Base, Base Sepolia or Solana transaction for a USDC transfer to pay_to of at least amount.' The title restates the question it answers, and the tool is clearly distinguished from generic transaction lookups.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/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 triggering condition, and 'Use instead: base_tx for full EVM transaction details; sol_tx for full Solana transaction details' routes the agent away from this tool when raw transaction data is wanted rather than a payment verdict.

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