Skip to main content
Glama

Ankr Agent RPC

Event logs

getLogs
Read-only

Event logs on one chain, filtered by address and/or topics over a block range. Tier 2 emits each log as { contract, event, args }, dropping logsBloom and per-log block duplication; an undecodable one stays raw as { address, topics, data, _event_unknown }. Check tier_degraded before reading event or args. With both bounds concrete block NUMBERS (toBlock may be omitted/"latest") the range is walked in ascending chunks, stopping once the display cap fills: the reply says range_fully_scanned: false, carries a cursor, and note says why. more_available means more logs were seen than shown; full_count appears only when the whole range was scanned. Any other bound is ONE unbounded eth_getLogs: no chunking, no cursor, liable to tier 0. Sui: Move events over a CHECKPOINT range. fromBlock is required; address is the emitting package[::module]; eventType and sender narrow it; topics is refused, not ignored. Same body; rows add checkpoint/digest/index.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYesChain slug as in rpc.ankr.com/<chain> — any chain Ankr serves (see listChains)
senderNoSui: the emitting transaction's sender, 0x + 64 hex
topicsNoTopic filters (0x + 64 hex, or null to wildcard); topics[0] is the event signature hash. Max 4 slots.
addressNoEmitting contract; Sui: package[::module]
maxLogsNoMax logs to DISPLAY (default 50, max 1000). The scan stops once this is filled, so it also bounds how much is fetched upstream.
toBlockNoTo block: decimal, 0x-hex, or tag (default latest)
eventTypeNoSui: Move event type 0xpkg::module::Name
fromBlockNoFrom block: decimal, 0x-hex, or tag (default latest)

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 only cover readOnlyHint/openWorldHint, but the description adds substantial behavior: Tier 2 output shape {contract,event,args}, raw fallback with _event_unknown, the tier_degraded warning, ascending chunking with cursor and range_fully_scanned/note, the more_available vs full_count distinction, and liability to tier 0 on unbounded ranges. This is far beyond what annotations provide.

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-loads purpose, then tiers, then chunking behavior, then Sui specifics. Dense and mostly information-bearing, though sentences are long and the Sui paragraph could be tightened; still no dead weight.

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, so the description carries the return-shape burden and does so thoroughly: log tuple structure, undecodable fallback, tier_degraded, cursor, note, more_available, full_count, plus Sui row fields (checkpoint/digest/index). An agent has what it needs to call and interpret results.

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 cross-parameter semantics the schema lacks: address as package[::module] on Sui, fromBlock required for Sui, topics refused on Sui, and maxLogs bounding upstream fetch as well as display. It meaningfully supplements the parameter docs.

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 and resource (retrieve event logs on one chain, filtered by address/topics/block range) and immediately distinguishes the two operational modes. An agent can tell this apart from getTransaction, getBlock, or rpcCall 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?

Explains the conditions that select chunked scanning versus a single unbounded eth_getLogs call, and details the Sui path (checkpoint range, required fromBlock, topics refused). It does not name an explicit alternative tool (e.g. rpcCall) for arbitrary getLogs use, so routing is inferable rather than spelled out.

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.