Skip to main content
Glama

Beggar Bot

decode_tx

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

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.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the non-obvious commercial behavior: $0.02 USDC via x402, settlement only on a 2xx response, and no charge for input errors. It also enumerates what the response contains. It stops short of stating rate limits, behavior on pending/failed lookups, or error semantics beyond 'input errors are never charged'.

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 purpose and output scope, then the payment terms, which is the right ordering. The middle keyword line ('Transaction explainer / tx lookup / decode tx') earns nothing for an agent and could be cut.

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?

There is no output schema, so the description must carry the return shape, and it does so thoroughly (status, method, fee, token/NFT transfers and approvals, net flows, headline). Payment and chain coverage are covered; only error/protocol edge cases are thin, which is minor for a read-only lookup tool.

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% and the chain parameter already documents the allowed values, so the description's chain list largely duplicates structured data. It does clarify that the chain list is the supported set and that Base is the default, but adds no format detail (e.g. hash length, case sensitivity) beyond the schema.

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 transaction API', 'give a tx hash ... get transaction status, decoded method, fee, every ERC-20/NFT transfer and approval, net token flows ... headline'). The explicit chain list (Base, Ethereum, Optimism, Arbitrum, Polygon) is what separates it from sol_tx_decode and raw_tx_decode, so an agent can pick it without opening a schema.

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?

The input contract ('give a tx hash on <chain>') strongly implies when to use it, but there is no explicit when-not guidance and no named alternative for cases like raw/signed transaction bytes or Solana hashes. 'Transaction explainer / tx lookup / decode tx' is search-keyword padding rather than 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.