Skip to main content
Glama

polygon_logs

Recent event logs emitted by a contract on Polygon PoS 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?

Goes well beyond the annotations by disclosing the scan cap (1,000 blocks), the hard result cap (100 logs), the returned fields, and the $0.001 USDC-on-Base x402 payment per successful call — genuine cost/auth context. Note the mild tension with readOnlyHint=false, since the described behavior is a pure read; the paid call arguably justifies the conservative annotation, so this is not treated as a contradiction.

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?

Four sentences, correctly front-loaded: purpose and scope first, return shape second, usage third, cost last. Only 'Use to watch transfers or contract events' is close to filler, keeping it just short of a 5.

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 carries the return contract (up to 100 logs with block, tx hash, topics), plus cost and filtering semantics — enough to call it correctly. Ordering of logs, empty-result behavior, and why the 1,000-block cap exists are left unstated, but these are minor for a read 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?

Schema description coverage is 100%, so all three parameters (address, blocks, topic0) are already documented, including the 1-1000/default-50 range. The description restates the block cap and the meaning of topic0 but adds no syntax or format detail beyond the schema, so 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?

States a specific verb+resource+chain: event logs emitted by a contract on Polygon PoS, with an explicit scan window and topic0 filter. The polygon_ prefix plus 'event logs' vs 'receipt'/'tx' makes it separable from the sibling chain tools 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 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 use case but no explicit when-not and no routing to alternatives such as polygon_receipt (single-tx events) or polygon_tx. An agent must infer the boundary itself.

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