Skip to main content
Glama

Contract activity on Base: recent events a contract emitted, decoded, admin actions flagged

contract_events
Read-only

Recent events (logs) one Base contract emitted, newest first, decoded: token transfers and approvals with amounts, Uniswap/Aerodrome swaps, liquidity and reserve updates, WETH wraps, NFT transfers, and admin actions (ownership changes, proxy upgrades, pauses, role grants) flagged. Filter by event name to search about 22 hours back. Counts by event type and the block window searched. Read-only. Not charged for invalid input or when Base can't be reached. Paid via x402; see list_prices.

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": {
      "contract": "<contract>"
    },
    "name": "contract_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
eventNoOptional: only this event, by name (e.g. "Swap", "Upgraded", "OwnershipTransferred") or 0x topic hash.
limitNoHow many events, 1 to 50 (default 20).
contractYesContract 0x address on Base.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Beyond readOnlyHint/openWorldHint, it discloses the ~22-hour retention window, that results are newest-first, that counts and the searched block window are returned, and the billing behavior (free on invalid input or unreachable Base; x402 paid via list_prices). That is meaningful operational context an agent could not get from annotations alone.

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?

Front-loaded with what the tool returns, then filtering, then cost caveats — a good information order. Slightly dense event-list enumeration and the 'Paid via x402; see list_prices' clause add bulk, but each sentence carries substantive information.

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 does the work of telling the agent what comes back (decoded events, per-type counts, block window). For a read-only 3-parameter tool this is nearly complete; only an explicit sibling routing statement is missing.

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 coverage is 100%, so limit, contract, and event semantics are already documented in the schema. The description adds only the retention-window context for the event filter; it does not add format or edge-case detail beyond the schema, making baseline 3 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?

States a specific verb and resource — recent events/logs emitted by one Base contract, decoded and newest first — and enumerates the event families so the agent knows exactly what content comes back. This is clearly distinguished from siblings like chain_tx (transactions) and wallet_transfers (wallet-scoped) without needing their schemas.

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?

Usage is only implied: 'Filter by event name to search about 22 hours back' signals the time window and filtering mode, but there is no explicit statement of when to pick this over chain_tx, chain_contract, or wallet_transfers. The agent must infer the choice from event-vs-transaction vocabulary.

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