Skip to main content
Glama

x402-event-decode

x402-event-decode: Decode ERC20 Transfer/Approval events from an Ethereum transaction receipt into readable entries (from, to, amount). Provide a txHash.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
txNoTx to process
txHashNoTxHash to process

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/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 burden. It conveys a read-only decoding operation and the output shape, but does not disclose behavior on invalid or missing txHash, whether events are filtered to Transfer/Approval only, or any chain/network constraints. This is adequate but not rich.

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?

The description is a single front-loaded sentence with no filler. The only redundancy is echoing the tool name as a prefix, which is minor; the core action and input requirement are stated compactly.

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?

The tool is simple, but without an output schema or annotations the description must carry return/error context. It mentions the decoded fields but leaves open how parameters interact, what happens when no matching events exist, and whether tx or txHash is authoritative. These are meaningful gaps for an agent deciding how to invoke 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% with both params described, so the baseline is 3. The description adds a directive to provide a txHash, but it does not clarify the relationship between the two parameters (tx vs txHash) or whether both are needed, leaving meaningful ambiguity.

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 (decode), a specific resource (ERC20 Transfer/Approval events from an Ethereum transaction receipt), and the output fields (from, to, amount). This clearly differentiates it from generic siblings like x402-abi-decode, x402-tx-decode, and x402-event-logs.

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?

It provides clear context: use when you need to decode ERC20 Transfer/Approval events from a transaction receipt, and instructs the user to provide a txHash. However, it does not explicitly name alternatives or exclusions relative to the many x402-* siblings, so it stops short of full routing guidance.

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