Skip to main content
Glama

Verify a Base USDC payment (paid, x402)

verify_usdc_payment
Read-onlyIdempotent

Verify a Base (mainnet, default) or Base Sepolia transaction is a successful, confirmed transfer of native Circle USDC (not a look-alike token) to an expected recipient for an exact or minimum amount. Checks receipt status, canonical block, confirmations, optional payer, notBefore/maxAge windows; returns verdict valid|invalid|pending|not_found with machine-readable reasons and the matched Transfer log. Not charged on 4xx/5xx errors. PAID: 0.01 USD in USDC per successful call via x402 (eip155:8453). Malformed input is rejected before payment.

Input Schema

NameRequiredDescriptionDefault
chainNoChain of the tx being verified (default base)
txHashYes0x-prefixed 32-byte transaction hash
notBeforeNoUnix seconds; reject txs mined earlier (anti-replay)
expectedToYesRecipient that must receive USDC
amountMatchNoexact (default) or atLeast
expectedFromNoOptional required payer
maxAgeSecondsNoReject txs older than this many seconds
expectedAmountNoDecimal USDC, max 6 decimals, e.g. "0.10" (or expectedAmountAtomic)
minConfirmationsNoDefault 3
expectedAmountAtomicNoInteger atomic units (1 USDC = 1000000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

The description adds substantial behavioral context beyond the annotations: it lists the exact checks performed, the returned verdict states, and the payment model. It also discloses billing behavior on errors and pre-payment rejection for malformed input, which is highly useful for an agent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense but front-loaded, starting with the verification purpose and then covering checks, return values, and payment terms. Every sentence adds relevant operational context for a paid verification tool.

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?

Although there is no output schema, the description explains the possible verdict values, machine-readable reasons, and matched Transfer log. It also covers payment, error non-charging, and malformed-input handling, making the definition complete for this complex paid 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 description coverage is 100%, so parameter meanings are already well documented. The description mentions some semantics such as exact or minimum amount, optional payer, and time windows, but largely restates what the schema already provides.

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?

The description states a specific verb and resource: verify a Base USDC payment transaction. It precisely distinguishes this from a generic transaction lookup by specifying native Circle USDC, expected recipient, amount matching, and confirmation checks.

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?

The description clearly explains when to use the tool: verifying a Base or Base Sepolia transaction as a confirmed native USDC transfer to an expected recipient. It gives detailed verification conditions, but does not explicitly name when not to use it or compare against the sibling get_pricing tool.

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