Skip to main content
Glama

decode_revert_reason_hex

Decode EVM transaction revert data into readable error messages, translating standard Error(string) and Panic(uint256) selectors to reveal the exact failure reason.

Instructions

Decodes EVM transaction revert reason strings from standard Error(string) and Panic(uint256) error selectors. (0.01 USDC on Base L2)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payloadYesInput parameters or JSON string payload for the tool execution
paymentSignatureNoBase L2 USDC micropayment signature or transaction hash for x402 settlement

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states what it decodes and the selector types, but it does not describe the return format, failure behavior, required input encoding (e.g., 0x prefix), or the apparently relevant payment requirement hidden in the parenthetical '(0.01 USDC on Base L2)'. This is a significant gap for a tool that likely charges a micropayment.

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 very short and the core purpose is front-loaded in the first few words. There is no redundant phrasing. The parenthetical '(0.01 USDC on Base L2)' is cryptic but not verbose, so the description remains efficient despite being slightly unclear.

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

Completeness2/5

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

For a tool with no output schema and no annotations, the description omits key contextual details: what the decoded result looks like, how to format the payload (hex prefix, ABI-encoded data), what happens on malformed input, and the exact meaning of the USDC payment note. An agent would likely need to experiment or consult external documentation before using this tool correctly.

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 schema has 100% coverage for both parameters, giving a baseline of 3. The description adds real semantic value beyond the schema by clarifying that the payload is a revert reason hex string and naming the expected selectors. It does not fully explain the paymentSignature parameter, but the schema already states it is for x402 settlement.

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 names a specific verb ('Decodes'), a resource ('EVM transaction revert reason strings'), and the exact input format ('Error(string) and Panic(uint256) error selectors'). This is distinct from sibling tools like decode_evm_calldata because it targets revert reason strings specifically, not general calldata.

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 implies when to use the tool: when you have an EVM revert reason hex string and need the decoded reason. However, it provides no explicit guidance about when not to use it, nor does it mention alternatives like evm_trace_call_revert_debugger or decode_evm_calldata. The usage context is clear but not differentiated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools