Skip to main content
Glama

PayGate USDT Payment Gateway MCP

verify_onchain_transfer

Read-onlyIdempotent

Statelessly verify any standalone on-chain USDT or USDC transfer transaction hash (tx_hash) via live blockchain JSON-RPC without requiring a pre-created PayGate invoice ID. Read-only RPC receipt inspection across polygon, bsc, base, arbitrum, ethereum, or solana confirming that expected_recipient received at least min_amount_usd in official USDT/USDC. Returns JSON with verified (boolean), network, token (USDT or USDC), amount_usd, sender, recipient, tx_hash, and reason.

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": {
      "network": "<network>",
      "tx_hash": "<tx_hash>",
      "min_amount_usd": "<min_amount_usd>",
      "expected_recipient": "<expected_recipient>"
    },
    "name": "verify_onchain_transfer"
  }
}

Input Schema

NameRequiredDescriptionDefault
networkYesBlockchain network where `tx_hash` was confirmed (`polygon`, `bsc`, `base`, `arbitrum`, `ethereum`, or `solana`).
tx_hashYesOn-chain transaction hash (`0x...` 66-char hex on EVM or base58 signature on Solana) to verify.
min_amount_usdYesMinimum required stablecoin transfer amount in USD (e.g. `19.0`). Transfers below this threshold return `verified: false`.
expected_recipientYesExpected recipient wallet address (`0x...` on EVM or base58 on Solana) that must have received the USDT/USDC transfer.

Output Schema

NameRequiredDescriptionDefault
tokenNo
reasonNo
networkYes
verifiedYes
amount_usdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, and the description adds real context on top: verification is stateless, runs against live blockchain JSON-RPC, supports a specific set of chains, and treats amounts below min_amount_usd as verified:false rather than erroring.

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?

Two front-loaded sentences that cover purpose, scope, chains, and outcome. The closing enumeration of the JSON return fields is somewhat redundant given an output schema exists, and is the only real waste.

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?

For a stateless read-only verifier with full annotation coverage, a complete schema, and an output schema, the description supplies everything needed: the invoiceless scope, supported networks, token restriction to official USDT/USDC, and the threshold-based pass/fail rule.

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 network, tx_hash, min_amount_usd, and expected_recipient including address formats. The description mostly restates those semantics (network list, USD threshold behavior, recipient match) without adding format or edge-case detail beyond the schema, 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?

The description opens with a specific verb and resource ('Statelessly verify any standalone on-chain USDT or USDC transfer transaction hash') and immediately distinguishes itself from invoice-scoped verification by stating it works 'without requiring a pre-created PayGate invoice ID,' which cleanly separates it from the verify_usdt_invoice sibling.

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 clearly frames the use case: a standalone tx hash with no pre-created invoice, plus a note that verification is live RPC-based. It implies the invoice path exists for the alternative but never names verify_usdt_invoice or states an explicit 'use that instead when...' condition, which keeps it just short of a 5.

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.