Skip to main content
Glama

Payment Verify

pay_verify

Payment Verify: did this x402 payment really settle on Base? Send the tx hash or the seller's PAYMENT-RESPONSE header; get SETTLED / MISMATCH / PENDING / FAILED / NOT_FOUND with payer, payee, USDC amount, block, confirmations and time, checked against the payee/amount you expected. Also Circle Gateway batched payments (GatewayWalletBatched, no per-payment tx): send gateway_nonce or gateway_transfer_id and get PENDING / CONFIRMED / SETTLED / FAILED with payer, payee, amount and the batch tx. Proof for disputes, refunds and books. Public data, never needs a key. By OMENZ. (MCP calls run in AYNE, the free playzone; production: POST https://www.omenz.org/api/tollbooth/v1/pay/verify, $0.002 via x402.)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "pay_verify"
  }
}

Input Schema

NameRequiredDescriptionDefault
tx_hashNotx hash
gateway_nonceNogateway nonce
expected_payerNoexpected payer
max_amount_usdNomax amount usd
expected_pay_toNopayout wallet you expect (0x...), to catch swapped payees
payment_responseNopayment response
min_confirmationsNomin confirmations
expected_amount_usdNoexpected amount usd
gateway_transfer_idNogateway transfer id

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / gateway_nonce
      Added value: +{
      +  "description": "gateway nonce",
      +  "type": "string"
      +}
    • addedInput schema / properties / gateway_transfer_id
      Added value: +{
      +  "description": "gateway transfer id",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / max_amount_usd
      Added value: +{
      +  "description": "max amount usd",
      +  "type": "number"
      +}
  3. Added

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations, it discloses the full status vocabulary, the returned fields (payer, payee, USDC amount, block, confirmations, time, batch tx), and that the check is performed against caller-supplied expectations. It also states 'Public data, never needs a key' and notes the paid production endpoint ($0.002 via x402), which is useful operational context. Minor tension: annotations set readOnlyHint=false although the tool is described as pure public-data verification — not a direct contradiction, but worth noting.

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 core question and result states are front-loaded, and the two modes are presented in parallel sentences. The trailing attribution and playzone/production/pricing parenthetical are promotional rather than operational, which is the main thing diluting an otherwise tight description.

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 carries the return-value burden and does so by listing statuses and per-mode fields. Combined with the no-key note and expected-value semantics, an agent has enough to call it correctly; only the 'which identifier is mandatory' question remains unanswered.

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 baseline is 3, but the description adds real meaning: it groups the parameters into two mutually alternative input paths and clarifies that expected_pay_to/expected_amount_usd drive the MISMATCH comparison ('to catch swapped payees'). It still does not state that at least one identifier is required (required list is empty), leaving a gap.

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 names a specific verb and resource ('did this x402 payment really settle on Base') and enumerates the exact result states (SETTLED / MISMATCH / PENDING / FAILED / NOT_FOUND). It also clearly separates two distinct modes — direct tx verification vs. Circle Gateway batched payments — so an agent can tell this apart from generic payment or evidence siblings.

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 concrete when-to-use framing ('Proof for disputes, refunds and books') and tells the caller which input selects which mode: tx hash or PAYMENT-RESPONSE header for direct settlement, gateway_nonce or gateway_transfer_id for batched payments. It does not explicitly exclude cases or name a sibling alternative, which keeps it 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.

Resources