Skip to main content
Glama

verify_payment

Verify an on-chain payment without trusting any RPC: did this tx transfer at least this amount of a token (default USDC) to this payee, optionally from this payer? Proven by Plumb (Base via proof-backed L1 checkpoints, Ethereum via a light client, XRP Ledger via a quorum of Ripple's validator list: RLUSD, XRP or any issued currency). Bound to the exact transfer (log index); returns the proof level, how long a Base checkpoint can still be challenged, the evidence to re-check, and an Ed25519-signed receipt. Never answers not_paid while a payment is still pending; abstains (unverifiable) whenever the proof is incomplete. Costs $0.02 USDC (x402) ($0.002 for an XRP Ledger payment); asking again about the same claim costs nothing. Optional requiredLevel (releasable or not) and callbackUrl (signed events when the level is reached, the answer changes, or checking gives up).

Input Schema

NameRequiredDescriptionDefault
chainNoChain of the paymentbase
payeeYesAddress that should have received the money (XRPL: an r... account)
payerNoOnly count transfers from this address (the token holder who paid)
tokenNoERC-20 contract (default: USDC on the chain). XRPL: RLUSD (default), XRP, or CURRENCY.rIssuer
txHashYesTransaction hash (0x + 64 hex; XRPL: 64 hex)
logIndexNoBind to one transfer: its position within the tx's logs
invoiceIdNoXRPL only: the InvoiceID (64 hex) the payment must carry; binds the answer and its signed receipt to your invoice
callbackUrlNohttps URL to notify (signed, retried) when requiredLevel is reached, when the answer changes, or when checking gives up
minAmountRawNoMinimum amount in base units, e.g. "50000" = 0.05 USDC (default: any). XRPL: XRP drops, or millionths of an issued currency
requiredLevelNoProof level you need before releasing money (Base: tee_attested < zk_proven < resolved; Ethereum: finalized; XRPL: unl_quorum). The answer then says whether it is releasable.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / invoiceId
      Added value: +{
      +  "description": "XRPL only: the InvoiceID (64 hex) the payment must carry; binds the answer and its signed receipt to your invoice",
      +  "type": "string"
      +}
  2. Changed7 schema fields changed
    • changedInput schema / properties / chain / enum
      Previous value: -[
      -  "base",
      -  "ethereum"
      -]New value: +[
      +  "base",
      +  "ethereum",
      +  "xrpl"
      +]
    • changedInput schema / properties / minAmountRaw / description
      Previous value: -"Minimum amount in base units, e.g. \"50000\" = 0.05 USDC (default: any)"New value: +"Minimum amount in base units, e.g. \"50000\" = 0.05 USDC (default: any). XRPL: XRP drops, or millionths of an issued currency"
    • changedInput schema / properties / payee / description
      Previous value: -"Address that should have received the money"New value: +"Address that should have received the money (XRPL: an r... account)"
    • changedInput schema / properties / requiredLevel / description
      Previous value: -"Proof level you need before releasing money (Base: tee_attested < zk_proven < resolved; Ethereum: finalized). The answer then says whether it is releasable."New value: +"Proof level you need before releasing money (Base: tee_attested < zk_proven < resolved; Ethereum: finalized; XRPL: unl_quorum). The answer then says whether it is releasable."
    • changedInput schema / properties / requiredLevel / enum
      Previous value: -[
      -  "tee_attested",
      -  "zk_proven",
      -  "resolved",
      -  "finalized"
      -]New value: +[
      +  "tee_attested",
      +  "zk_proven",
      +  "resolved",
      +  "finalized",
      +  "unl_quorum"
      +]
    • changedInput schema / properties / token / description
      Previous value: -"ERC-20 contract (default: USDC on the chain)"New value: +"ERC-20 contract (default: USDC on the chain). XRPL: RLUSD (default), XRP, or CURRENCY.rIssuer"
    • changedInput schema / properties / txHash / description
      Previous value: -"Transaction hash (0x + 64 hex)"New value: +"Transaction hash (0x + 64 hex; XRPL: 64 hex)"
  3. Changed2 schema fields changed
    • addedInput schema / properties / callbackUrl
      Added value: +{
      +  "description": "https URL to notify (signed, retried) when requiredLevel is reached, when the answer changes, or when checking gives up",
      +  "maxLength": 500,
      +  "type": "string"
      +}
    • addedInput schema / properties / requiredLevel
      Added value: +{
      +  "description": "Proof level you need before releasing money (Base: tee_attested < zk_proven < resolved; Ethereum: finalized). The answer then says whether it is releasable.",
      +  "enum": [
      +    "tee_attested",
      +    "zk_proven",
      +    "resolved",
      +    "finalized"
      +  ],
      +  "type": "string"
      +}
  4. Added

TDQS

A4.2/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and discharges it well: it discloses per-chain proof mechanisms, the reclaimable challenge window on Base, that results include re-checkable evidence and an Ed25519-signed receipt, that it will never answer not_paid for a still-pending payment, and that it abstains when proof is incomplete. Pricing ($0.02 / $0.002, free on repeat claims) and the x402 payment requirement are also surfaced.

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?

One dense paragraph, but front-loaded with the core question and tightly ordered: trust model, proof mechanics, return contents, semantics, cost, optional params. Nearly every clause carries information; it is long only because the tool is genuinely complex.

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 10-parameter tool with no output schema and no annotations, the description fills the gaps: it names what is returned (proof level, challenge window, evidence, signed receipt), the cost model, and the abstention/pending semantics. Nothing an agent needs to decide and invoke correctly appears missing.

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 every parameter, setting the baseline at 3. The description adds only marginal value here (default token USDC, that requiredLevel is optional and drives a 'releasable' answer, callbackUrl fires on the three specified events), essentially paraphrasing what the schema already states.

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?

States a specific verb and resource (verify an on-chain payment) with the distinctive qualifier 'without trusting any RPC', and frames the exact question it answers (did this tx transfer at least this amount to this payee). An agent can separate it from try_verify_payment or verify_payments_batch by the trust model and proof narrative alone.

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

Usage Guidelines3/5

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

Usage context is implied rather than stated: 'asking again about the same claim costs nothing' hints at idempotent re-checking, and the pending/abstain rules explain when an answer is meaningful. But it never names when to prefer this over the sibling try_verify_payment (likely a dry run) or verify_payments_batch, leaving the agent to infer the routing.

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