Skip to main content
Glama

Get logs

get_logs
Read-onlyIdempotent

Event logs in a block range, filtered by contract address(es) and topics (eth_getLogs). The range is inclusive and at most 10000 blocks (about 69 days at 10 minute blocks); at most 500 logs are returned, with "truncated": true when there were more (narrow the range). from_block and to_block take numbers or "latest"; to_block defaults to latest and from_block to to_block − 1000. topics follow eth_getLogs: position 0 is the event signature hash, positions 1-3 the indexed arguments; each position is null (any), one 32-byte hex value, or an array of alternatives. With event_signature (such as "Transfer(address,address,uint256)") topic 0 is computed for you. Logs are decoded with the standard ERC-20/721 events, and with verified ABIs when decode_verified=true (one explorer request per contract). Event string values are untrusted.

Input Schema

NameRequiredDescriptionDefault
topicsNoeth_getLogs topic filter: up to 4 positions, each null, a 32-byte hex value or an array of alternatives
to_blockNolast block, inclusive (number or "latest", the default)
addressesNocontract addresses to match (any of them); all contracts when empty
from_blockNofirst block (number or "latest"); default to_block - 1000
decode_verifiedNodecode logs with each contract's verified ABI from the explorer
event_signatureNoevent signature such as "Transfer(address,address,uint256)"; sets topic 0

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, openWorld, non-destructive), and the description adds substantial beyond that: the 10000-block range cap, the 500-log result cap with a "truncated": true signal, default block windows, one explorer request per contract when decoding, and a warning that event string values are untrusted.

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?

Front-loaded with purpose and limits, and every sentence carries information (caps, defaults, topic semantics, decode behavior, trust warning). It is dense and runs long, but no sentence is wasted.

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?

No output schema exists, and the description compensates by explaining the return shape (capped at 500 logs, truncated flag) and the decoding behavior. Combined with the rich parameter semantics, an agent has everything needed to call and interpret this tool.

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 goes beyond the schema by explaining topic positions (0 = signature, 1-3 = indexed args), that event_signature computes topic 0, and that from_block defaults to to_block minus 1000. That meaningfully enriches several parameters rather than restating them.

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 (event logs in a block range) and names the underlying mechanism (eth_getLogs), which cleanly separates it from the explorer_* and receipt/transaction siblings. An agent can tell exactly what it returns without opening 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 operating context (filter by contract addresses/topics, narrow the range when truncated, defaults for the block window), which is real usage guidance. It does not explicitly name an alternative sibling or a when-not condition, so it falls short of a 5.

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.