Skip to main content
Glama

chain_decode_raw_tx

Read-only

Signed raw transaction decoder + broadcast preflight — Decode any signed raw EVM transaction (legacy, EIP-2930, EIP-1559, EIP-4844 blob incl. network wrapper, EIP-7702 set-code) fully offline: tx hash, sender recovered from the signature (secp256k1), to, nonce, value, gas and fee fields, max cost, chain id, ERC-20 transfer/approve/setApprovalForAll decoding, contract-creation address, access list, and EIP-7702 authorization authorities + delegates. Then (check=true, default) a live preflight on Ethereum/Base/Arbitrum/Optimism/Polygon: already mined, in mempool, nonce too low, nonce gap, insufficient funds, fee below base fee, or READY. Flags high-s, missing EIP-155 chain id, unlimited approvals, chain-id-0 authorizations. Never broadcasts. Params: raw (0x hex, required), check (true|false). Price: $0.003 USDC (Base, 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": {
      "raw": "<raw>"
    },
    "name": "chain_decode_raw_tx"
  }
}

Input Schema

NameRequiredDescriptionDefault
rawYes0x02f8b3018318685984773594008487b004b08301774094dac17f958d2ee523a2206206994597c13d831ec780b844a9059cbb0000000000000000000000002482e1f2bbb6fb726fd511624884e20cc5ad86b5000000000000000000000000000000000000000000000000000000001e0c4066c080a00c75b0003764cf3cc1a0a31c4d99f4c2645398f0fad3f1752342506ce4da22d5a0628bad34c5776f25f26defdc0aae8ffa6a76583aa0739f6783c511dfd0498816

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description adds concrete behavior beyond them: decoding is fully offline, the preflight makes live RPC calls on five named chains, a specific set of outcomes is returned (mined, mempool, nonce too low/gap, insufficient funds, below base fee, READY), several risk flags are raised, and pricing ($0.003 USDC via x402) is disclosed. That is unusually complete disclosure for an agent deciding whether and how to call it.

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?

The purpose is front-loaded in the first clause and every subsequent sentence contributes either supported formats, returned fields, preflight outcomes, or cost. It is long and dense in a single block, so a reader must scan rather than navigate structure, but there is little filler.

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?

With no output schema, the description carries the return-value burden itself and does so by listing the decoded fields (hash, recovered sender, to, nonce, value, gas/fee, max cost, chain id, ERC-20 ops, contract-creation address, access list, 7702 authorities/delegates) plus the preflight verdicts. Given a single required parameter, nothing an agent needs to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema covers only 'raw' (100% coverage but with an example rather than prose), so the description's 'raw (0x hex, required)' and especially 'check (true|false), default true' add meaning the schema does not carry — notably the check flag is absent from the schema. It still leaves the exact semantics of check=false implicit (skip preflight) rather than stating it outright.

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 the exact verb and resource (decode a signed raw EVM transaction) and enumerates the transaction types it supports (legacy, 2930, 1559, 4844 with network wrapper, 7702), which distinguishes it from siblings like chain_decode_calldata and chain_tx 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Frames the tool as a 'broadcast preflight' and clarifies that check=true is the default and that it never broadcasts, so the agent knows it is safe to use before submission. It does not explicitly name an alternative for calldata-only decoding or for actually sending a transaction, so routing is implied rather than spelled out.

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