Skip to main content
Glama

get_event_logs

Read-onlyIdempotent

chainpeek: Query decoded contract event logs by block range or hash. For one transaction's events use decode_tx_logs; for an address's token transfers use get_erc20_transfers. Returns up to 500 decoded logs from eth_getLogs. truncated flags more matches. Exact reads echo block_hash; bounds are null when the node returns no logs. Input: chain, address or topic0. from_block and to_block (numbers or latest; 2,000 blocks max, last 100 by default), or block_hash (Ethereum and Base only). Check the emitting address: any contract can emit any event. A block hash does not establish finality. Typically 0.3-3 s. Price: USD 0.003. Free: 10 chain reads per IP per UTC day. Docs: https://tanod.dev/learn/ethereum-rpc-reads-api.html

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": "get_event_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesethereum, base or robinhood (Robinhood Chain, chain id 4663).
topicsNoEvent signature and indexed topics; null matches any.
addressNoEmitting contract. Send address or topics[0].
to_blockNoLast block, inclusive. Defaults to latest.
block_hashNoExact block on Ethereum or Base. Omit both range bounds.
from_blockNoFirst block, inclusive. Defaults to 100 blocks including to_block.

Output Schema

NameRequiredDescriptionDefault
logsNo
noteNo
chainNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
blocksNo
topicsNo
addressNo
decodedNo
returnedNo
to_blockNo
log_countNo
rpc_callsNo
truncatedNo
block_hashNo
from_blockNo
untrusted_contentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / address / description
      Previous value: -"Emitting contract. Send an address, a topic0, or both."New value: +"Emitting contract. Send address or topics[0]."
    • addedInput schema / properties / block_hash
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 66,
      +      "pattern": "^0x[0-9a-fA-F]{64}$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Exact block on Ethereum or Base. Omit both range bounds."
      +}
    • changedInput schema / properties / from_block / description
      Previous value: -"First block (inclusive). Default: the last 100 blocks ending at to_block. The range is at most 2,000 blocks."New value: +"First block, inclusive. Defaults to 100 blocks including to_block."
    • changedInput schema / properties / to_block / description
      Previous value: -"Last block (inclusive). Default: the latest block."New value: +"Last block, inclusive. Defaults to latest."
    • changedInput schema / properties / topics / description
      Previous value: -"Up to 4 topic filters, each 0x + 64 hex or null for any; topics[0] is the event signature hash (for ERC-20/721 Transfer: keccak('Transfer(address,address,uint256)'))."New value: +"Event signature and indexed topics; null matches any."
    • addedOutput schema / properties / block_hash
      Added value: +{
      +  "maxLength": 66,
      +  "pattern": "^0x[0-9a-fA-F]{64}$",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. Changed11 schema fields changed
    • removedInput schema / properties / address / default
      Removed value: -null
    • removedInput schema / properties / address / title
      Removed value: -"Address"
    • removedInput schema / properties / chain / title
      Removed value: -"Chain"
    • removedInput schema / properties / from_block / default
      Removed value: -null
    • removedInput schema / properties / from_block / title
      Removed value: -"From Block"
    • removedInput schema / properties / to_block / default
      Removed value: -null
    • removedInput schema / properties / to_block / title
      Removed value: -"To Block"
    • removedInput schema / properties / topics / title
      Removed value: -"Topics"
    • removedInput schema / title
      Removed value: -"get_event_logsArguments"
    • removedOutput schema / properties / logs / items
      Removed value: -{
      -  "properties": {
      -    "address": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "block": {
      -      "type": [
      -        "integer",
      -        "null"
      -      ]
      -    },
      -    "data": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "data_bytes": {
      -      "type": [
      -        "integer",
      -        "null"
      -      ]
      -    },
      -    "data_truncated": {
      -      "type": [
      -        "boolean",
      -        "null"
      -      ]
      -    },
      -    "event": {
      -      "type": [
      -        "object",
      -        "null"
      -      ]
      -    },
      -    "log_index": {
      -      "type": [
      -        "integer",
      -        "null"
      -      ]
      -    },
      -    "topics": {
      -      "items": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "type": [
      -        "array",
      -        "null"
      -      ]
      -    },
      -    "transaction_hash": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    }
      -  },
      -  "type": [
      -    "object",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / topics / items
      Removed value: -{
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
  3. Changed2 schema fields changed
    • changedInput schema / properties / chain / description
      Previous value: -"ethereum or base."New value: +"ethereum, base or robinhood (Robinhood Chain, chain id 4663)."
    • changedInput schema / properties / chain / enum
      Previous value: -[
      -  "ethereum",
      -  "base"
      -]New value: +[
      +  "ethereum",
      +  "base",
      +  "robinhood"
      +]
  4. Added

TDQS

A4.5/5.0
Behavior3/5

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

Annotations already declare read-only, idempotent, open-world, non-destructive, so the safety profile is covered. The description still adds real operational context: 500-log cap, `truncated` flag, 2,000-block range limit, 100-block default, null bounds, block_hash echo, ~0.3-3 s latency, $0.003 price and 10 free reads/day. It stops short of explaining output shape, though an output schema exists to carry that.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and siblings before constraints, limits, and pricing. Telegraphic fragments are dense but every line carries a distinct fact an agent needs; nothing is redundant padding.

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?

For a rate-limited, priced, multi-mode read with an output schema, the description covers routing, both query modes, limits, truncation behavior, latency, and cost. An agent has everything needed to invoke it correctly and interpret edge cases.

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 baseline is 3, but the description adds rules the schema does not state: 2,000-block maximum range and the 'address or topic0' requirement. Some details (default last 100 blocks) merely restate schema text, keeping it below a 5.

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?

Specific verb+resource ('Query decoded contract event logs by block range or hash') with the two sibling alternatives named explicitly (decode_tx_logs for one tx, get_erc20_transfers for address transfers). An agent can route correctly without opening any schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use routing to two alternatives, plus selection rules inside the tool: range mode with from_block/to_block or exact mode with block_hash (Ethereum and Base only). It even warns about the emitting-address caveat and finality, which shapes interpretation of results.

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