Skip to main content
Glama

Scroll event logs

scroll_logs
Read-only

Recent contract event logs on Scroll (eth_getLogs): the events a contract emitted over the last N blocks (1-1,000, default 50), optionally filtered by topic0 (the 0x 32-byte event signature hash). Returns up to 100 logs with block, transaction hash and topics. Use to watch transfers or contract events; for one transaction's outcome use scroll_receipt. Example: address=0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": {
      "address": "<address>"
    },
    "name": "scroll_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
blocksNoHow many recent blocks to scan (1-1000, default 50)
topic0NoOptional 0x event signature hash to filter by
addressYes0x contract address

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / blocks / maximum
      Previous value: -9007199254740991New value: +1000
    • changedInput schema / properties / blocks / minimum
      Previous value: --9007199254740991New value: +1
  2. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/non-idempotent, but the description adds cost and billing mechanics ($0.01/call via x402 USDC or card key, first 10 free, failed calls free) and warns that repeats are charged — which explains and reinforces idempotentHint=false. It also states the read-only guarantee in plain language ('reads or computes only and changes nothing').

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?

Purpose and block-range scope are front-loaded, and the sibling pointer arrives before the pricing detail. The billing sentence is dense but each clause (payment method, free tier, failure billing, repeat charges) carries distinct information.

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?

No output schema exists, and the description covers the return shape (up to 100 logs with block, transaction hash and topics), so an agent knows what comes back. It does not say what happens when more than 100 matching logs exist (truncation vs. paging), the one remaining ambiguity for a log-scan tool.

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?

With 100% schema coverage, the schema already documents the 1-1000 range, the default of 50, and topic0 filtering. The description largely restates those and only adds the '32-byte' qualifier on topic0, so it neither compensates for a gap nor adds much beyond structured data.

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 pair ('Recent contract event logs on Scroll (eth_getLogs)') and immediately scopes it to 'the events a contract emitted over the last N blocks', with topic0 and block-range semantics. This distinguishes it from the receipt/tx siblings that answer single-transaction questions.

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 explicit when-to-use ('watch transfers or contract events') plus a named alternative and the condition selecting it ('for one transaction's outcome use scroll_receipt'). It stops short of addressing the log-family neighbors (scroll_token_transfers, eth_logs/base_logs, etc.), which an agent might otherwise weigh.

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.

Resources