Skip to main content
Glama

chain_decode_calldata

Read-only

EVM calldata decoder — Decode raw EVM transaction input (calldata) into the function name and named arguments, offline. Built-in table of 60+ common signatures (ERC-20/721/1155, permit, Uniswap v2/v3 routers, Universal Router, multicall, Multicall3 aggregate, Aave, ERC-4626, Safe execTransaction, ENS, OP bridge); nested multicall/aggregate calls are decoded one level deep. Flags UNLIMITED_APPROVAL, APPROVE_ALL_NFTS, OFFCHAIN_SIGNATURE_APPROVAL and ADMIN_ACTION. data= required (0x hex); signature= optional for unknown selectors, e.g. signature=foo(uint256,address[]). 422 for unknown selectors or malformed data. Price: $0.002 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": {
      "data": "<data>"
    },
    "name": "chain_decode_calldata"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes0x095ea7b3000000000000000000000000000000000022d473030f116ddee9f6b43ac78ba3ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations, the description discloses built-in signature coverage, one-level nested multicall decoding, specific security flags, and 422 error behavior for unknown selectors or malformed data. It also states the price. The 'offline' decoding claim is consistent with local computation even though the tool itself is an open-world paid API.

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 description is a single, front-loaded paragraph with no wasted sentences. It is dense but organized, moving from purpose to coverage, nesting behavior, flags, parameters, errors, and price.

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?

For a one-parameter tool with no output schema, the description covers purpose, behavior, error handling, and return intent sufficiently. The main gap is the signature parameter mismatch, which reduces completeness for invocation.

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

Parameters2/5

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

The schema coverage is 100% for the single data parameter, and the description usefully specifies that data must be 0x hex. However, it references an optional signature parameter that is not present in the input schema, which could mislead an agent into passing an unsupported argument.

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 states a specific verb and resource: decode raw EVM transaction input into function name and named arguments. It clearly distinguishes this from sibling tools like chain_selector by focusing on calldata decoding rather than selector computation.

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 description gives clear context for use: decoding raw EVM calldata offline. It also notes the optional signature for unknown selectors. However, it does not explicitly say when to use this tool versus alternatives such as chain_selector or chain_call, leaving routing to inference.

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