Skip to main content
Glama

Agent Data Tools: Chain data

op_logs

Recent event logs emitted by a contract on Optimism over the last N blocks (up to 1,000), optionally filtered by topic0 (event signature hash). Returns up to 100 logs with block, transaction hash and topics. Use to watch transfers or contract events. Costs $0.001 in USDC on Base per successful call, paid with x402.

Input Schema

TableJSON 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. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false), and the description adds genuinely non-redundant behavior: a $0.001 USDC cost on Base per successful call paid via x402, and an output cap of 100 logs. That payment detail is important given readOnlyHint=false. It does not contradict the annotations — the mutation-adjacent flag is explained by the paid x402 call.

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?

Well front-loaded: purpose first, then filter, return shape, use case, and cost. Four sentences with little waste, though the cost sentence is appended rather than integrated and the returns sentence partly duplicates the schema's role.

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?

With no output schema, the description correctly compensates by naming the return shape (up to 100 logs with block, transaction hash, topics) and discloses the payment model and network. Gaps are minor: no error/failure behavior and no note on what happens when zero logs match.

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 description coverage is 100%, so all three parameters are already documented in the schema (including the 1-1000 range and default 50). The description restates the block cap and topic0 filter but adds no syntax, format, or edge-case detail beyond the schema — baseline 3 applies.

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 states a specific verb and resource — recent event logs emitted by a contract — and pins the scope (Optimism, last N blocks up to 1,000, optional topic0 filter). The chain name 'Optimism' alone separates it from the eth_logs/base_logs/arb_logs/polygon_logs siblings without opening a schema.

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?

'Use to watch transfers or contract events' gives an implied usage context, but there is no when-not guidance and no routing to the closest siblings (op_tx, op_receipt) which also surface on-chain activity. The agent gets a hint, not a decision rule.

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