Skip to main content
Glama

FMF Tools EVM Decoder

evm_logs

Decode EVM event logs (any chain, no RPC) ($0.002 per call, paid via MPP on Tempo). Decode up to 50 raw logs ({topics, data, address}) from a receipt into event names and typed arguments. Uses your ABI, a Sourcify-verified ABI (chain_id + address), or the 4byte event database, trying indexed-parameter layouts until one decodes strictly. HTTP POST https://mpp-chain.fmf-x402.workers.dev/mpp/evm/logs. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.

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": {
      "logs": "<logs>"
    },
    "name": "evm_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
abiNoOptional ABI (JSON or human-readable)
logsYesArray of {topics: [0x..], data: 0x.., address?} (eth_getTransactionReceipt logs work as-is)
addressNoOptional emitting contract address for Sourcify ABI
chain_idNoOptional chain id for Sourcify ABI

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so well: it discloses the $0.002 per-call cost, the MPP payment mechanism, the crucial caveat that this MCP wrapper does not settle payment itself and needs a Payment Authorization header, and the 50-log cap. It also states the decode strategy (trying indexed-parameter layouts until a strict decode succeeds), which materially affects how results should be interpreted.

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?

Four sentences, front-loaded with the core action and its constraints before payment logistics. The raw HTTP endpoint URL is somewhat boilerplate for an MCP caller but is defensible as a documented escape hatch.

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?

There is no output schema, and the description compensates by stating the return shape (event names and typed arguments). Payment and authentication prerequisites, the log limit, and ABI fallbacks are all covered; only a note on per-log failure behavior when no layout decodes strictly is missing.

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 real meaning: the shape of each log object, the 50-log ceiling, and the precedence order among the three ABI sources tied to chain_id and address. This goes beyond the terse schema field descriptions.

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 opening clause states a specific verb and resource ("Decode EVM event logs") plus a scope qualifier ("any chain, no RPC"), which cleanly separates it from the encode/selector/calldata siblings. An agent can tell this is the log-decoding tool without opening any schema.

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?

Usage context is implied rather than stated: it explains the input is raw logs from a receipt and that ABIs are resolved from your ABI, Sourcify, or 4byte. There is no explicit when-to-use-versus-siblings guidance (e.g., how it differs from evm_calldata for decoding), leaving the agent to infer the boundary.

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