Skip to main content
Glama

eth_logs

Recent event logs emitted by a contract on Ethereum over the last N blocks (up to 1,000), optionally filtered by topic0 (event signature hash). Returns up to 100 logs with block, transaction hash and topics. Use to watch transfers or contract events. Costs $0.001 in USDC on Base per successful call, paid with x402.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
blocksNoHow many recent blocks to scan (1-1000, default 50)
topic0NoOptional 0x event signature hash to filter by
addressYes0x contract address

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

The description adds genuinely useful behavior beyond the annotations: per-call cost of $0.001 USDC on Base via x402 (effectively the auth/payment requirement) and a hard result cap of 100 logs against a scanned window of up to 1,000 blocks. It does not explain pagination or whether older history is reachable, which is the remaining gap. No contradiction with the annotations.

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 compact sentences, front-loaded with what the tool returns and the scope constraint, with cost last. Every sentence carries information, though the block-window limit is stated twice (description and schema).

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?

With no output schema, the description compensates by naming the return fields (block, transaction hash, topics) and the 100-log cap, and it covers the payment requirement. It is nearly complete for a 3-parameter read tool; only pagination/history limits are left unstated.

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 description coverage is 100%, so blocks, topic0 and address are already documented in the schema. The description only restates the same facts (block window cap, topic0 as event signature hash), adding no format or syntax detail beyond the schema.

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?

States a specific verb and resource with scope: 'Recent event logs emitted by a contract on Ethereum over the last N blocks', plus the optional topic0 filter and result shape. This clearly reads as distinct from eth_receipt (logs for one tx) or eth_tx, though it never names a sibling to contrast against.

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?

One sentence of usage context is given ('Use to watch transfers or contract events'), which is enough to imply the intent, but there is no when-not guidance and no explicit routing to alternatives such as eth_receipt or the equivalent base_logs/arb_logs/polygon_logs siblings for other chains.

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