Skip to main content
Glama

Get Logs

get_logs
Read-onlyIdempotent

Search event logs by contract address and/or topics over a block range. Topics are 32-byte hex values; topic0 is usually the keccak256 event-signature hash. Adjacent-topic operators (and/or) combine multiple topic filters. Provide 'address' and/or at least one topic.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number (1-based).
offsetNoRecords per page (max 1000).
topic0NoTopic 0 — usually the keccak256 event-signature hash.
topic1NoTopic 1 (first indexed argument).
topic2NoTopic 2 (second indexed argument).
topic3NoTopic 3 (third indexed argument).
addressNoContract address to filter by (optional if filtering by topics).
chainidNoNumeric chain id (e.g. 1=Ethereum, 56=BNB, 137=Polygon). Defaults to server config.
toblockNoEnd block number, or "latest". Default latest.
fromblockNoStart block number, or "latest". Default 0.
topic0_1_oprNoCombine topic0 and topic1: and | or.
topic1_2_oprNoCombine topic1 and topic2: and | or.
topic2_3_oprNoCombine topic2 and topic3: and | or.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and non-destructive behavior. The description adds useful topic semantics (topic0 is usually the keccak256 event-signature hash) but does not disclose operational details like pagination or return behavior, which annotations do not cover.

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?

Three tight sentences: what the tool does, the key topic convention, and the required input condition. No filler, and the most important usage rule is front-loaded.

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

Completeness5/5

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

Despite 13 parameters, the schema documents every parameter completely. The description provides the core selection/invocation insight (what topic0 means and that at least one filter is needed), which is enough for an agent to use the tool correctly alongside the schema and annotations.

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 description coverage is 100%, so the baseline is 3. The description adds value by explaining why topic0 matters (event-signature hash), how adjacent-topic operators combine filters, and the minimum filter requirement, going slightly beyond the schema's per-parameter wording.

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 the specific action 'Search event logs' with clear filters (contract address and/or topics) over a block range. This distinguishes it from sibling transaction/token tools without needing to open the schema.

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?

Gives clear usage context: event logs, block range, address/topic filters, and the explicit requirement to provide an address and/or at least one topic. It does not name alternative tools with exclusions, but no sibling directly competes for event logs, so the guidance is sufficient.

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.

TDQS

A3.7/5.0
Disambiguation4/5

Most tools target clearly distinct data types: balances, transactions, logs, contracts, tokens, gas, and chains. The main confusion risk is between get_transaction_status, get_transaction_receipt_status, and get_transaction_receipt, which all relate to transaction outcomes and could be easily misselected.

Naming Consistency5/5

Every tool follows the get_<object> or get_<object>_<qualifier> snake_case pattern. The naming is highly predictable and makes the tool purpose evident from the name alone.

Tool Count3/5

20 tools is on the heavier side, approaching the upper bound for a coherent MCP server. However, given Etherscan's broad read-only domain—addresses, transactions, contracts, tokens, logs, and gas—the count is defensible even if it feels somewhat large.

Completeness4/5

The toolset covers the major Etherscan data-access patterns: balances, normal/internal transactions, receipts, token transfers, contract ABI/source/creation, logs, and gas. Obvious gaps like fetching a block by number/hash or listing transactions within a block are missing, but agents can accomplish most explorer workflows.

Resources