Skip to main content
Glama

Beggar Bot

tx_decode

Decode transaction API: give a tx hash on Base, Ethereum, Optimism, Arbitrum or Polygon, get transaction status, decoded method, fee, every ERC-20/NFT transfer and approval, net token flows per address and a one-line plain-English headline. Transaction explainer / tx lookup / decode tx. Payment settles only after a successful (2xx) response; input errors are never charged. Paid: $0.02 USDC via x402.

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": {
      "tx_hash": "<tx_hash>"
    },
    "name": "tx_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNobase (default), ethereum, optimism, arbitrum, polygon
tx_hashYes0x tx hash

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries full burden. It does useful work here: it discloses the exact payload contents (status, method, fee, ERC-20/NFT transfers and approvals, per-address net flows, plain-English headline) and the payment mechanics ('settles only after a successful (2xx) response; input errors are never charged', $0.02 USDC via x402). It still omits failure modes for an unknown/failed/pending tx hash, chain mismatch behavior, and any auth or rate-limit constraints.

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?

Purpose and scope are front-loaded, and the output/payment details are compact and useful. The line 'Transaction explainer / tx lookup / decode tx' is pure keyword stuffing that adds no information and slightly dilutes the otherwise tight structure.

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 and only two simple parameters, the description does the needed work by enumerating return contents and the billing model. It is nearly complete for a paid lookup tool, missing only edge-case behavior for invalid, pending, or failed transactions.

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 both parameters (chain and tx_hash) are already documented, including the default of base. The description restates the chain set and hash format but adds no new syntax, constraints, or defaulting semantics beyond the schema; baseline 3 applies.

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 states a specific verb and resource ('Decode transaction API', 'give a tx hash ... get transaction status, decoded method, fee...') and enumerates the supported chains (Base, Ethereum, Optimism, Arbitrum, Polygon). It never names or contrasts with near-identical siblings such as decode_tx, evm_tx_decode or raw_tx_decode, so an agent cannot tell from the text alone which decoder to pick.

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 is only implied: supply a 0x tx hash and receive a decode. There is no statement of when to prefer this over the other decode tools in the catalog, nor any exclusions (e.g. Solana transactions, raw/unsigned hex, logs). Basic adequacy, no routing guidance.

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.