Skip to main content
Glama

Chain Tx

chain_tx
Read-only

A transaction on Base (default) or Ethereum by hash: status (success, failed, pending), block and confirmations, sender and receiver, ETH value, fee, and every ERC-20 token transfer decoded with symbol and amount. Use it to confirm a payment landed. Costs USD 0.001 per call, paid with x402 (USDC on Base); calls that fail are not charged.

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": {
      "hash": "<hash>"
    },
    "name": "chain_tx"
  }
}

Input Schema

NameRequiredDescriptionDefault
hashYesTransaction hash, 0x + 64 hex characters
networkNoBlockchain (default base)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint, destructiveHint=false, openWorldHint), so the bar is lower, and the description adds genuinely new context: USD 0.001 per call billed via x402 USDC on Base, with failed calls not charged. It also discloses that pending transactions may lack block/confirmation data via the enumerated status values. It does not mention rate limits or what constitutes a "failed" (uncharged) call versus an empty result.

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 sentences, both earning their place: the first front-loads the domain and returned payload, the second gives the use case and pricing. The field enumeration is a long middle clause, but it is purposeful since there is no output schema, and 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 carries the return-value burden and does so by naming every field an agent would care about, including the billing model. Slightly incomplete on edge behavior (unconfirmed txs, not-found hashes, and how a failed charge manifests), but nothing essential to invoking it correctly is 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%: the hash format (0x + 64 hex) and the network enum with base as default are both documented in the schema itself. The description only restates "by hash" and the base-default behavior, adding no new meaning such as accepted formats for pre-Byzantium or L2-specific hash variants. Baseline 3 applies when the schema does the heavy lifting.

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 retrieval verb (fetch a transaction by hash) on a named scope (Base default, Ethereum optional) and enumerates the returned fields: status, block/confirmations, sender/receiver, ETH value, fee, and decoded ERC-20 transfers. An agent can distinguish this from chain_balance, chain_gas, and chain_token without opening any schema.

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?

"Use it to confirm a payment landed" gives a concrete triggering scenario, and mapping the transaction hash to a chain is implied before the call. It stops short of explicit exclusions (e.g., use chain_balance for a wallet-level check, or how to look up a tx you only know by address), so the alternative routing is left to inference.

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