Skip to main content
Glama

イベントログを読む

read_events
Read-only

Fetch and decode smart contract events by signature and block range, giving readable data for tracking contract activity and powering dApp updates.

Instructions

コントラクトが発火したイベントを取得してデコードする。イベント署名の keccak256 が topic0 になり、indexed の引数だけが topic に載る、という仕組みがそのまま見える。dApp の画面更新はこれを購読している。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoデコードして返す件数。既定 20
addressNo絞り込むコントラクトアドレス。省略すると全体から探す(重い)
networkNo対象ネットワーク。mainnet / sepolia / holesky / local か http(s) の URL。既定は mainnet
to_blockNo終了ブロック。既定は latest
from_blockNo開始ブロック。既定は最新から 200 ブロック前
event_signatureYesイベント署名。indexed も書く。例: "Transfer(address indexed from, address indexed to, uint256 value)"
Behavior4/5

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

The annotations already indicate read-only, open-world, and non-destructive behavior. The description adds valuable context about how events are decoded (topic0, indexed arguments) and its typical use case in dApp UIs, going beyond the annotation basics without contradicting them.

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?

The description is concise, consisting of three short sentences that convey the core functionality, technical detail, and typical usage. No redundancy or unnecessary elaboration.

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?

Given the absence of an output schema, the description sufficiently explains what the tool does and its technical underpinnings. It covers the purpose, the event topic mechanism, and a real-world use case, providing enough context for a user to understand its role. It does not describe return format, but that is not required without an output schema.

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?

The input schema provides comprehensive descriptions for all parameters (coverage 100%). The tool description does not add parameter-specific meaning; it only gives general context about the event decoding process. Baseline of 3 is appropriate.

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?

The description clearly states the tool's function: retrieving and decoding contract events. It also explains the topic structure, making the purpose precise and distinct from sibling tools like read_transaction or read_block.

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?

The description implies usage by mentioning dApp UI subscriptions and the technical topic mechanism, but it does not explicitly compare to alternatives or state when to prefer this tool over others. However, the distinct purpose and sibling names make the appropriate context clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nakamura196/chain-reader-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server