Skip to main content
Glama

chain_payment_verify

Read-only

Verify an on-chain payment (USDC, ERC-20 or native) — Did this transaction really pay this address? Give a tx hash and the expected recipient; returns PAID, UNDERPAID, WRONG_RECIPIENT, NO_MATCHING_TRANSFER, FAILED, PENDING or NOT_FOUND (404, not charged) with the amount received, real payer(s) from the ERC-20 Transfer events (so x402 / EIP-3009 transferWithAuthorization payments relayed by a facilitator are matched correctly), confirmations, block time and a finality hint. Params: tx (0x hash, required), to (expected recipient 0x address, required), amount (optional minimum, plain decimal like 0.01), token (usdc default, native, or an ERC-20 0x address), chain (base default, ethereum, arbitrum, optimism, polygon, or auto to find it). Public JSON-RPC. Price: $0.004 USDC (Base, 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>",
      "to": "<to>"
    },
    "name": "chain_payment_verify"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes0xce08ad69726ebbbd0bffb539fb830327c9454021
txYes0x802373ab14a4b6f084447ca8b0db4673e42e9b648ae7c550a89cc204f8a755fc

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations, the description discloses the possible statuses, that payer information is extracted from ERC-20 Transfer events so x402/EIP-3009 relayed payments match correctly, that confirmations and block time are returned, and that a finality hint is included. It also states public JSON-RPC usage and the $0.004 USDC price.

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?

The description front-loads the purpose and outcome vocabulary, then gives parameter and pricing details in a compact paragraph. It is dense but mostly information-bearing, though the long single paragraph could be structured more cleanly for scanning.

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 no output schema, the description does the necessary work of explaining the returned statuses and supporting fields such as amount received, real payer, confirmations, block time, and finality hint. It is nearly complete for calling the tool, but the mention of unsupported amount, token, and chain parameters introduces a consistency 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?

For the actual schema parameters, the description adds useful meaning: tx is a 0x hash and to is the expected 0x recipient address. However, it also describes amount, token, and chain parameters that are absent from the input schema, which can mislead an agent about what can be passed.

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 an on-chain payment (USDC, ERC-20 or native)' and frames the exact question it answers: 'Did this transaction really pay this address?' It clearly distinguishes payment verification from sibling signature-verification tools such as chain_verify_signature and chain_verify_typed_data.

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?

It gives clear usage context: supply a transaction hash and expected recipient, and it explains what the outcomes mean, including that a 404 is not charged. It does not explicitly name when to use an alternative payment checker such as crypto_btc_payment_check, but the EVM payment focus is clear.

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