Skip to main content
Glama

Free Base Blockchain Tools

get_contract_logs

Get event logs from a contract in a block range. Useful for tracking transfers, approvals, etc.

Input Schema

NameRequiredDescriptionDefault
to_blockYesEnd block number (decimal)
from_blockYesStart block number (decimal)
contract_addressYesContract address (0x + 40 hex)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries full behavioral burden. It does not disclose pagination limits, whether block range size is capped, rate limits, or what happens on an invalid or too-wide range. It only says what it returns, not behavioral constraints.

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?

Two short sentences, purpose front-loaded, no waste. The second sentence is somewhat generic but keeps the description tight and readable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read tool with no annotations, no output schema, and a fully-covered schema, the description is minimally complete. It omits return shape details, pagination or range limits, and failure behavior that an agent would benefit from knowing.

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 each parameter is already documented in the schema. The description adds the notion of a block range but no format or constraint details beyond that; baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clear verb+resource ('Get event logs from a contract') with a scope qualifier ('in a block range'). It distinguishes itself adequately from siblings like get_transaction_receipt or get_block_by_number, though it does not explicitly name an alternative.

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?

The phrase 'Useful for tracking transfers, approvals, etc.' implies usage context but does not state when to prefer this tool over siblings or any preconditions. No explicit when/when-not guidance.

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