Skip to main content
Glama

verify_x402_payment

Verify a Base Mainnet USDC x402 payment transaction receipt against the receive-only treasury.

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>"
    },
    "name": "verify_x402_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
txHashYes0x-prefixed 64-hex Base transaction hash
minAmountUsdcUnitsNoMinimum USDC amount in 6-decimal base units (20000 = $0.02)20000

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it does not say whether this is a read-only RPC check, whether it uses network access or a local receipt cache, or whether it is idempotent and safe to retry. The failure path is completely undisclosed — an agent cannot tell whether a failed verification throws an error, returns false, or returns a structured reason, nor what the default minAmountUsdcUnits threshold implies. The mention of a 'receive-only treasury' hints at a recipient check but never states that the treasury address is fixed by the server rather than supplied by the caller.

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?

It is a single front-loaded sentence with no filler or repetition. It is somewhat jargon-dense — 'x402' and 'receive-only treasury' are used without unpacking — but nothing is wasteful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations and no output schema, the description is the only source for return semantics and failure behavior, and it supplies neither. For a payment-verification tool where the boolean-or-error distinction drives whether an agent grants access, this leaves a material gap.

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%, with both txHash and minAmountUsdcUnits fully documented including the 6-decimal unit convention and its default, so the schema does the heavy lifting. The description adds no further meaning about how minAmountUsdcUnits is compared (inclusive vs exclusive) or whether the caller may override the fixed treasury recipient.

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?

The description names a specific verb (verify) and a specific resource (a Base Mainnet USDC x402 payment transaction receipt) scoped to a receive-only treasury, which is concrete enough to separate it from the listed siblings such as estimate_gas or screen_evm_address. It stops short of a 5 because 'verify' is not decomposed into what is being asserted (recipient match, token contract, amount threshold, confirmation depth).

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

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use guidance, no statement of prerequisites (the tx must be mined and confirmed), and no named alternative among the siblings. An agent can only infer that this precedes crediting a payment, and nothing indicates when verification should be skipped or re-run.

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