Skip to main content
Glama

Explain a transaction

decode_tx
Read-only

Decode what a transaction did: delegated heimdall decode plus decoded_call from the resolved target ABI when available. Prefer decoded_call for typed function/arg names, and read its provenance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYesChain alias from GET /v1/chains (for example "ethereum", "base", "monad", "bsc") or numeric EIP-155 chain id.
rpc_urlNoOverride HTTP(S) RPC URL. Required for chains with no default (e.g. local/31337) or custom EVM chain ids.
tx_hashYes0x transaction hash.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYes
cachedYes
sourceYes
decodedYes
tx_hashYes0x transaction hash.
provenanceYes
decoded_callNo

TDQS

A4.2/5.0
Behavior4/5

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

Adds value beyond annotations by detailing the dual decoding approach and provenance, though readOnlyHint already signals safety. No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences with front-loaded core function and actionable guidance. No wasted words.

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?

Covers key behavioral traits and output differentiation, and output schema handles return details. Minor gap: no mention of RPC override necessity, though schema covers it.

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 description adds no new parameter details. It mentions output preferences but not input specifics, meeting baseline with no degradation or improvement.

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?

The description precisely states the tool decodes a transaction using heimdall decode and decoded_call from ABI. It clearly distinguishes from siblings like encode_call or simulate by focusing on decoding transactions.

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?

Provides guidance to prefer decoded_call for typed names and to read provenance, but lacks explicit when-not-to-use compared to sibling tools like simulate or read_contract.

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.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: decode vs encode, prepare vs simulate, resolve ABI vs selector, etc. No two tools overlap in functionality.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern with lowercase and underscores (e.g., decode_tx, list_chains, resolve_abi, runtime_metrics). The only exception is 'simulate', which is a single verb but still clear and consistent with the style.

Tool Count5/5

12 tools is an ideal count for a blockchain interaction server. Each tool covers a necessary step in the workflow without being overwhelming or sparse.

Completeness5/5

The tool set covers the full lifecycle of contract interaction: resolve ABI, encode/decode, simulate, prepare unsigned transactions, look up selectors, resolve names, and list chains. No obvious gaps given the server's purpose of preparing actions for external signing.