Skip to main content
Glama

x402 agent toolkit: service finder, payment safety, Solana & web tools

Verify a USDC settlement

x402_verify_settlement
Read-onlyIdempotent

[FREE tier 20/day, then $0.005] Verify an on-chain USDC settlement: tx hash on network (base, base-sepolia, polygon, arbitrum, avalanche, bsc) paid amount to payTo. Returns verdict valid|invalid|pending|not_found. Free to try: 20 MCP calls/day per client, no API key or wallet needed (beyond that: prepaid credits via header X-API-Key, see server instructions).

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": {
      "txHash": "<txHash>",
      "payTo": "<payTo>",
      "amount": "<amount>"
    },
    "name": "x402_verify_settlement"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNoexpected payer 0x address (optional)
matchNoexact (default) or atLeast
payToYesexpected recipient 0x address
amountYesdecimal USDC, e.g. 0.01
txHashYes0x transaction hash (66 chars)
networkNobase | base-sepolia | polygon | arbitrum | avalanche | bscbase
minConfirmationsNodefault 2

Output Schema

NameRequiredDescriptionDefault
validNo
reasonsNo
verdictYes
confirmationsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the read-only, idempotent, non-destructive profile, and the description goes beyond them with concrete operational facts: a 20 calls/day free quota, $0.005 beyond that, no wallet or API key required within the free tier, and X-API-Key prepaid credits beyond it. It does not explain what a 'pending' verdict means in practice (e.g., whether to re-call or how long settlement takes), which is the one behavioral gap.

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 cost/quota tag, then purpose, then return values, then access details, which is the right priority order. The 20/day free-tier fact is stated twice (the bracketed prefix and the 'Free to try' sentence), which is avoidable repetition in an otherwise tight definition.

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 an output schema present and 100% parameter coverage, the description does not need to document return shape, and it still names the four verdicts for at-a-glance routing. What remains thin is the handling of non-terminal outcomes and the unstated distinction from the precheck/approval siblings, which matters for a tool in a crowded verification family.

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, and the description adds real meaning on top: it ties txHash to a specific supported network list, frames payTo/amount as 'paid amount to payTo', and states these are the checks performed rather than arbitrary filters. It still adds nothing about match=atLeast, minConfirmations, or the optional from parameter beyond what the schema documents.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clear specific verb ('Verify') plus resource ('an on-chain USDC settlement') with the checked conditions spelled out (tx hash on network, paid amount to payTo) and the verdict space. It does not name or contrast with siblings like x402_precheck or approval_verify, so an agent must infer that this is post-payment confirmation rather than a pre-payment check.

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?

Usage is implied by the name and the 'settlement' framing (verify a payment that has already been broadcast), and the pricing/access note tells the agent about a hard quota. There is no explicit when-to-use/when-not guidance and no routing to the sibling verification tools, leaving alternative selection 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