Skip to main content
Glama

chain_event_logs

Read-only

$0.005 via x402: raw event logs by contract address and/or indexed topics over a block range (eth_getLogs) — the indexing primitive. Defaults to a 25-block window and narrows automatically when a node refuses on result size, and every cap or narrowing that bit is named in the response instead of silently applied. Base, Ethereum, Optimism, Arbitrum, Polygon, Gnosis.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "chain_event_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNobase|ethereum|optimism|arbitrum|polygon|gnosis (default base)
topic0NoEvent signature topic (32-byte 0x...)
topic1Nosecond log topic filter (32-byte hex), optional
topic2Nothird log topic filter (32-byte hex), optional
topic3Nofourth log topic filter (32-byte hex), optional
addressNoContract address to filter on (0x...)
toBlockNolast block of the range (number, hex or latest)
fromBlockNofirst block of the range (number or hex)
x_paymentNosigned x402 payment payload (the X-PAYMENT header value) for the terms the first call returns; omit it to get the price and terms

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / fromBlock / description
      Added value: +"first block of the range (number or hex)"
    • addedInput schema / properties / toBlock / description
      Added value: +"last block of the range (number, hex or latest)"
    • addedInput schema / properties / topic1 / description
      Added value: +"second log topic filter (32-byte hex), optional"
    • addedInput schema / properties / topic2 / description
      Added value: +"third log topic filter (32-byte hex), optional"
    • addedInput schema / properties / topic3 / description
      Added value: +"fourth log topic filter (32-byte hex), optional"
    • addedInput schema / properties / x_payment / description
      Added value: +"signed x402 payment payload (the X-PAYMENT header value) for the terms the first call returns; omit it to get the price and terms"
  2. Added
  3. Removed
  4. Added

TDQS

A4.1/5.0
Behavior4/5

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

Beyond readOnlyHint/openWorldHint, the description discloses the cost ($0.005 via x402), the payment handshake (omit x_payment to receive price and terms), the 25-block default window, and — importantly — that automatic narrowing on node refusal is surfaced in the response rather than applied silently. That is real behavior an agent cannot get from the annotations; only return payload shape and rate-limit behavior remain unstated.

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 cost, then the operation, then behavioral caveats, then supported chains — a sensible ordering with no filler sentences. Minor waste in re-listing the six chains already enumerated in the schema, and the density of clauses makes it slightly heavy for a single paragraph.

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?

For a 9-parameter, read-only, no-output-schema tool, this covers purpose, cost/payment flow, default range, and capacity-fallback semantics — enough to call it correctly on the first attempt. Gaps are limited to response shape beyond the cap-reporting note and any rate/throughput expectations.

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 a 3 is the baseline, and the description earns an increment by stating the 25-block default range and automatic narrowing, neither of which the fromBlock/toBlock schema entries mention. It also restates the address-or-topic0 requirement (already in the schema) and the chain list (already the enum), which adds little.

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?

Names a specific verb+resource ('raw event logs by contract address and/or indexed topics over a block range') and anchors it to the canonical primitive (eth_getLogs), calling itself 'the indexing primitive'. That framing separates it cleanly from header, balance, gas, and transaction-status siblings without needing to name them.

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?

Usage is implied by the eth_getLogs framing and the 'address or topic0' filter model, but there is no explicit when-to-use versus when-not guidance and no named alternative among the many chain_* siblings. The x402 payment note implicitly tells the agent the first call should omit x_payment, which is useful but not a full usage policy.

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.