Skip to main content
Glama
rpc402-mcp

rpc402-mcp

event_logs

event_logs

Fetch contract event logs for EVM chains or latest Solana account signatures in a single RPC call, with optional block-range, topic, and result-limit filters.

Instructions

Event logs for one contract in one RPC402 call ($0.002 USDC via x402). EVM: eth_getLogs (range cap 2,000 blocks, result cap 1,000; defaults fromBlock=toBlock-99, toBlock=head). Solana: latest transaction signatures for the account (getSignaturesForAddress) — Solana has no block-range log query; the response carries a note saying so.

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": {
      "chain": "<chain>",
      "address": "<address>"
    },
    "name": "event_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainYesChain to READ (settlement network is separate, configured by env)
limitNoSolana only. Max signatures to return (default 100)
topicsNoEVM only. Topic filters: 0x + 64 hex chars, or null per position
addressYesContract / account address: 0x… (EVM) or base58 (solana)
toBlockNoEVM only. Block number or "latest" (default)
fromBlockNoEVM only. Block number or "latest". Default: toBlock - 99

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the per-call cost ($0.002 USDC via x402), the EVM range cap of 2,000 blocks, the 1,000-result cap, and the default window (fromBlock = toBlock-99, toBlock = head). It also warns that Solana returns signatures instead of logs and that the response carries a note explaining the difference — behavior an agent could not infer from schema 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 purpose and cost, then the EVM mechanics, then the Solana caveat — a logical order with no filler sentences. The telegraphic style ('range cap 2,000 blocks, result cap 1,000') is dense but readable and every clause carries 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?

For a six-parameter, chain-polymorphic tool with no output schema and no annotations, the description covers cost, caps, defaults, and the Solana fallback, which is most of what an agent needs. Remaining gaps are minor: no guidance on pagination when results hit the 1,000 cap, and no description of the return shape beyond the Solana note.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so a baseline of 3 is warranted, but the description adds the 2,000-block range cap that constrains how fromBlock/toBlock may be combined — a constraint absent from the schema. It also clarifies the default block window, which reinforces rather than repeats the schema's 'latest' default for toBlock.

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?

States a specific verb and resource ('Event logs for one contract') and scopes it to a single contract per call, which is a meaningful narrowing. It also names the underlying primitives (eth_getLogs, getSignaturesForAddress), so an agent knows exactly what data comes back, though it never contrasts itself with siblings like tx_lookup or chain_status.

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 implied through the per-chain behavior: an agent can infer EVM block-range queries versus Solana signature lookups, and the note that Solana has no block-range log query is genuine guidance. However, there is no explicit statement of when to pick this over tx_lookup or chain_status, nor any exclusion conditions.

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