Skip to main content
Glama

Crypto Bot Audit + Market Data (x402 paid)

Event logs for an address or topic

chain_logs
Read-onlyIdempotent

eth_getLogs over a bounded window (max 1000 blocks) with an address and/or first topic — transfers and events without running an indexer. Refuses an unfiltered scan. Walks the window in chunks because a free node refuses a big one on response size, and reports any range no node would serve instead of failing a settled call. Costs $0.001 USDC per call. Chains: base, ethereum, arbitrum, bsc, polygon, optimism, avalanche. Byte-identical to GET /chain/logs?chain=base&address=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913&topic0=0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef&fromBlock=5000&toBlock=5999.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainYeschain key: base, ethereum, arbitrum, bsc, polygon, optimism, avalanche [required]
topic0Nofirst event topic, 0x + 64 hex
addressNocontract that emitted the events
toBlockNolast block number (default: current head); range capped at 1000 blocks
fromBlockYesfirst block number to scan (inclusive) [required]

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
tsNo
noteNo
rowsNo
chainNo
countNo
rangeNo
staleNo
caveatNo
chunksNo
reasonNo
sourceNo
chainIdNo
nodeCallsNo
truncatedNo
chainLabelNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "caveat": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "chain": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "chainId": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "chainLabel": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "chunks": {
      +      "additionalProperties": {},
      +      "type": "object"
      +    },
      +    "count": {
      +      "type": "integer"
      +    },
      +    "nodeCalls": {
      +      "type": "integer"
      +    },
      +    "note": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "range": {
      +      "additionalProperties": {},
      +      "type": "object"
      +    },
      +    "reason": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "rows": {
      +      "items": {},
      +      "type": "array"
      +    },
      +    "source": {
      +      "type": "string"
      +    },
      +    "stale": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "truncated": {
      +      "type": "boolean"
      +    },
      +    "ts": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Added

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses chunked window walking, response-size-related refusals, reporting ranges no node would serve instead of failing a settled call, per-call cost, and supported chains. This gives the agent a detailed expectation of execution behavior and error handling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four dense sentences plus a concrete REST example with no filler. The core operation is front-loaded before cost, chains, and the example, and every sentence earns its place.

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

Completeness5/5

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

Between the annotations, schema, output schema, and this description, an agent knows parameters, filters, block cap, chain support, cost, and failure behavior. The description does not need to explain return values because an output schema exists.

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 the schema already documents all five parameters. The description adds value by clarifying the 1000-block cap, the address/topic filtering requirement, and the toBlock default behavior, which goes beyond baseline but stops short of per-parameter documentation.

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 opens with 'eth_getLogs over a bounded window (max 1000 blocks) with an address and/or first topic — transfers and events without running an indexer', giving a definite verb, resource, and access mechanism. This clearly separates it from sibling chain block/transaction tools, and the title reinforces the address/topic focus.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states the intended filter conditions (address and/or topic), the block-window constraint, supported chains, and warns that unfiltered scans are refused, so an agent knows when it fits a request. It does not explicitly name a sibling alternative, but the context is clear enough for bounded log queries.

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