Skip to main content
Glama

chain_confirmations

Read-only

$0.005 via x402: did this transaction land, how deep is it buried, and is it safe to treat as FINAL on this chain. Returns status, block, tip, confirmations, gas used, fee paid and log count, compared against the chain's own finality threshold (Ethereum 64, Polygon 128, OP-stack 60). A success with two confirmations is not a settled payment. Also distinguishes 'no receipt yet' from 'failed' — conflating those is how agents double-spend.

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": "chain_confirmations"
  }
}

Input Schema

NameRequiredDescriptionDefault
hashNoTransaction hash (0x + 64 hex)
chainNobase|ethereum|optimism|arbitrum|polygon|gnosis (default base)
x_paymentNosigned x402 payment payload (the X-PAYMENT header value) for the terms the first call returns; omit it to get the price and terms

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / x_payment / description
      Added value: +"signed x402 payment payload (the X-PAYMENT header value) for the terms the first call returns; omit it to get the price and terms"
  2. Added

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations, the description discloses chain-specific finality thresholds (Ethereum 64, Polygon 128, OP-stack 60), which is exactly the interpretive context an agent needs. It further distinguishes 'no receipt yet' from 'failed' and warns that conflating them causes double-spends, plus states the $0.005 x402 cost and the handshake to obtain terms. This is substantial behavioral disclosure that annotations cannot carry.

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 purpose question is front-loaded in the first clause and every sentence contributes: cost, purpose, returned fields, thresholds, the confirmation-count caveat, and the no-receipt-vs-failed distinction. The pricing prefix is a little clipped but no sentence is 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?

With no output schema, the description does the work of naming the returned fields and the finality comparison, and it covers the payment prerequisite. For a three-parameter read tool that is nearly complete; minor gaps remain around behavior for unknown or pending hashes beyond the no-receipt/failed note.

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 description coverage is 100%, so the baseline is 3, but the description adds real meaning: it ties the chain parameter to per-chain finality thresholds and explains the x402 two-call pattern (first call returns terms, then pass the X-PAYMENT value). The hash parameter's role is implied by the framing but not elaborated with format or failure behavior.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a concrete question the tool answers — whether a transaction landed, how deep, and whether it is final on a given chain — and enumerates what comes back (status, block, tip, confirmations, gas used, fee paid, log count). That is a specific verb+resource statement rather than a restatement of the name. It does not name a sibling such as chain_transaction_status, so the differentiation from look-alike tools is left implicit.

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?

Clear usage context is given: this is the tool to call when deciding whether a transaction is safe to treat as settled, with the caution that 'a success with two confirmations is not a settled payment.' It also explains the two-step payment flow (omit x_payment to get price and terms). It stops short of explicit when-not guidance or naming an alternative for plain status checks.

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.