Skip to main content
Glama

evm_decode

Decode an EVM transaction: given a transaction hash, or raw calldata plus a contract address, return the function selector, every known signature for it and the decoded static arguments. Use it to explain what a transaction does before signing or reporting it. Price: 0.003 USDC per call over x402 on Base or Solana.

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": {
      "hash": "<hash>"
    },
    "name": "evm_decode"
  }
}

Input Schema

NameRequiredDescriptionDefault
hashYesExample: 0xeaa59f103396f5446ab6d31e0de4ec7bd6ae56d01a87702cd16027001cba2357
chainNoExample: base

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / hash / description
      Previous value: -"Example: 0x0000000000000000000000000000000000000000000000000000000000000000"New value: +"Example: 0xeaa59f103396f5446ab6d31e0de4ec7bd6ae56d01a87702cd16027001cba2357"
  2. First observed

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden and does partially meet it: it discloses the return shape, the important limitation that only static arguments are decoded, and the per-call price of 0.003 USDC via x402. It says nothing about failure behavior for unknown selectors, unverified contracts, or what chain defaulting applies, which matters for a decoding tool.

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 tight sentences: capability and output first, usage context second, commercial terms last. Every sentence contributes and nothing is padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter, no-output-schema tool, the description adequately conveys the return contents and cost. However, the dangling calldata/contract-address mode and the undefined `chain` semantics leave an agent without enough to construct the call confidently in every case.

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 description advertises an alternate input mode, "raw calldata plus a contract address," but the schema exposes only `hash` (required) and `chain` — no calldata or contract address fields exist. That is actively misleading about how to call the tool. Schema coverage is nominally 100%, but the schema only supplies bare examples and never defines `chain` values or a default, so the description adds no usable clarification.

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?

Specific verb and resource ("Decode an EVM transaction") plus a concrete inventory of what is returned: function selector, known signatures, decoded static arguments. That output profile distinguishes it from siblings like evm_tx or evm_receipt, though no sibling is named explicitly.

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?

"Use it to explain what a transaction does before signing or reporting it" gives a real usage context, but there is no guidance on when to pick this over evm_tx, evm_receipt, or evm_contract, and no exclusions or prerequisites.

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.