Skip to main content
Glama

Donewire

Verify on-chain transfers for a payment intent

verify_payment
Idempotent

Verify on-chain transfers for a payment intent. Escrow mode: send the deposit transaction hash; the server checks the Deposited event and the contract state against the intent (deal id, worker, fee recipient, amounts, release_after). Direct mode: checks token, recipient and amount per leg. Always: status, confirmations, timing, one-time use. Safe to call repeatedly. When confirmed the task becomes "paid" (escrow: funds locked). Requires API key.

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": {
      "payment_intent_id": "<payment_intent_id>",
      "tx_hashes": "<tx_hashes>"
    },
    "name": "verify_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
tx_hashesYes
payment_intent_idYesPayment intent id

Output Schema

NameRequiredDescriptionDefault
intentYes
resultsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations declare idempotentHint=true and destructiveHint=false, and the description corroborates with "Safe to call repeatedly" while adding context not in the annotations: an API key is required, verification is one-time-use, and confirmation causes a state transition (task becomes "paid", escrow funds locked). That side effect is the key disclosure. It stops short of saying what happens on partial or failed verification.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the purpose, then mode-by-mode behavior, then invariants, then the state effect and auth requirement. Sentence-fragment style ("Always: status, confirmations, timing, one-time use.") is dense but each clause carries distinct information with no filler.

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?

An output schema exists, so return values need not be described, and the description covers modes, auth, idempotency and the resulting state change. The one meaningful omission is how escrow versus direct mode is selected, since no mode parameter exists in the schema.

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 50%: payment_intent_id is documented in the schema, tx_hashes is not. The description compensates by explaining that a transaction hash is the deposit hash in escrow mode and that multiple hashes are checked per leg, which explains why up to four are accepted. It does not state the hash format or what happens when fewer hashes than legs are supplied.

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 on-chain transfers for a payment intent. Clearly distinguishes the tool from siblings like get_payment_intent (read intent) and create_payment_intent (create), and the two-mode framing further sharpens what is actually checked.

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?

Explains the two operating modes and what to supply in each: in escrow mode send the deposit transaction hash; in direct mode token, recipient and amount are checked per leg. It also states repeat calls are safe and that a confirmed verification flips the task to "paid". It does not say how the agent knows which mode applies or when to prefer this over get_payment_intent, keeping 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