Skip to main content
Glama

chain_transaction_explain

Read-only

$0.005 via x402: decode any transaction by hash into a plain-English explanation — what actually happened (a swap, transfer, approval, mint, or contract call), who the actors are, and the full list of asset changes (every native coin and token in/out with symbol, amount and direction), plus status, fee and the decoded method. The read agents make to UNDERSTAND a tx, not just confirm it landed: for wallet UX, accounting, risk, dispute and trading agents. Across Base, Ethereum, Optimism, Arbitrum, Polygon, Gnosis. Live from Blockscout; one paid call instead of running your own indexer + ABI decoder.

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_transaction_explain"
  }
}

Input Schema

NameRequiredDescriptionDefault
hashYesTransaction 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
  3. Removed
  4. Added
  5. Removed
  6. Added
  7. Removed
  8. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the description's job is to add cost and data-source context — which it does: '$0.005 via x402' and 'Live from Blockscout.' It explains the paid-call model and why the tool exists, but does not cover latency, caching, or behavior when a hash is unknown or the chain is unsupported.

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?

Front-loaded with price and core action, then the return contents, then audience, then chain coverage — a sensible order with no filler sentences. It is somewhat dense and promotional in the closing clause ('instead of running your own indexer + ABI decoder'), which slightly dilutes signal but still earns its place as differentiation.

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?

There is no output schema, so the description must carry the return-value burden — and it does, naming asset changes with symbol/amount/direction, actors, status, fee and decoded method. Payment prerequisites and the supported chain set are also disclosed, leaving nothing essential to inference.

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 description coverage is 100%, so all three parameters are already documented. The description reinforces the by-hash semantics and lists the six supported chains (matching the chain param and its base default), but adds little beyond what the schema states; baseline 3 is appropriate.

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 — 'decode any transaction by hash into a plain-English explanation' — and enumerates exactly what the output covers (swap/transfer/approval/mint/contract call, actors, full asset-change list, status, fee, decoded method). It also distinguishes itself from the confirmation-style sibling by saying it is 'not just confirm it landed.'

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?

Gives clear usage context and personas ('wallet UX, accounting, risk, dispute and trading agents') and an implicit exclusion against simpler status/confirmation tools. It never names the specific alternative tool, and the x402 payment workflow (first call for terms, second with payment) is only implied rather than spelled out as a procedure.

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.