Skip to main content
Glama

chain_decode_log

Read-only

Decode EVM event log — Decode a raw EVM event log offline from its event signature: checks topic0 = keccak256(canonical signature), decodes indexed params from topics and non-indexed params from data (addresses EIP-55 checksummed, ints as decimal strings). event= (e.g. Transfer(address indexed from,address indexed to,uint256 value)), topics= (comma-separated 32-byte hex, topic0 first) and data= required; anonymous=true for anonymous events. Verdict DECODED or TOPIC0_MISMATCH. 422 on malformed input. 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": {
      "event": "<event>",
      "topics": "<topics>",
      "data": "<data>"
    },
    "name": "chain_decode_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes0x00000000000000000000000000000000000000000000000000000000000f4240
eventYesTransfer(address indexed from,address indexed to,uint256 value)
topicsYes0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef,0x000000000000000000000000a9d1e08c7793af67e9d92fe308d5697fb81d3e43,0x000000000000000000000000833589fcd6edb6e08f4c7c32d4f71b54bda02913

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: topic0 validation, indexed vs non-indexed decoding, EIP-55 checksumming, decimal integer strings, DECODED/TOPIC0_MISMATCH verdicts, 422 errors, and pricing. The read-only safety profile is already covered by annotations, so this description adds strong operational context.

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 and required inputs are front-loaded, and nearly every sentence carries useful information. There is minor repetition in 'Decode EVM event log — Decode a raw EVM event log' and some dense parenthetical packing.

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 complex decoder with no output schema, it covers inputs, validation, error behavior, verdicts, and pricing well. It still does not fully describe the decoded output structure and references an anonymous parameter absent from the schema.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds meaningful semantics: canonical event signature, comma-separated 32-byte topics with topic0 first, and the role of data. However, it mentions anonymous=true even though no anonymous parameter exists in the input schema.

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 a specific verb, resource, and mode: 'Decode a raw EVM event log offline from its event signature.' The focus on event logs, topic0, and data clearly separates it from calldata-decoding siblings, even though no sibling is named.

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?

Provides clear usage context: decode a raw EVM event log from its signature, with event, topics, and data required and anonymous events flagged. It lacks explicit when-not-to-use guidance or a named alternative such as chain_decode_calldata.

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