Skip to main content
Glama

evm_get_logs

Query blockchain event logs with filters for contract address, topics, and block range across supported EVM chains to track contract events and activity.

Instructions

Query event logs from the blockchain with filtering

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": {
      "chain": "<chain>"
    },
    "name": "evm_get_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYes
topicsNoEvent topics to filter
addressNoContract address(es) to filter
toBlockNoEnding block number or tag
fromBlockNoStarting block number or tag

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses almost nothing. It does not mention block-range limits, provider caps on returned logs, pagination, whether topics are decoded, or whether the call is read-only (implied only by the word 'query'). For a log-retrieval tool where result size limits are a common failure mode, this is a significant gap.

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?

A single front-loaded phrase with no filler, which is appropriately sized for a short definition. The trailing 'with filtering' is close to redundant given the parameter names, but the wording is efficient and unambiguous in structure.

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

Completeness2/5

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

With five parameters, no annotations, and no output schema, the description is far too thin for the complexity involved. An agent gets no idea what a returned log looks like, what happens when the block range is omitted, or what limits apply, and there is no output schema to fall back on.

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 coverage is 80%, with topics, address, toBlock, and fromBlock each carrying their own descriptions and chain constrained by an enum, so the schema does most of the work. The description adds only the generic phrase 'with filtering' and no detail on topic encoding, block tag formats, or address array semantics beyond what the schema already states, so the baseline of 3 applies.

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?

The description states a specific verb and resource: query event logs from the blockchain, with filtering as the mechanism. An agent can identify the operation, but nothing distinguishes it from the sibling evm_filter_logs, so the boundary between the two is left ambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no prerequisites, and no mention of the obvious alternative evm_filter_logs. The agent must infer from the name alone whether this is a raw RPC-style getLogs call or a higher-level filter abstraction.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools