Skip to main content
Glama

What happened onchain

diff
Read-only

Returns exact onchain event summaries for indexed EVM contracts over a block range, block, or transaction, covering control events, token flows, holders, and approvals as JSON.

Instructions

What happened onchain to the indexed EVM contracts in a block range, a block or one transaction, as a JSON document of fixed sentences with exact amounts: every control-plane event (ownership, pause, upgrade, roles), the largest movements and net flows per token, new holders, approvals with unlimited ones named, labels, and every other table counted or told. flow: true gives the token flow instead. Give from and to, or block, or tx with its block. Nothing in it is inferred; not_seen says what the nest cannot see.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast block of an inclusive range.
txNoOne transaction hash; needs `block`.
topNoItems per list (story default 10, at most 1000).
flowNoThe token flow instead of the story.
fromNoFirst block of an inclusive range.
blockNoOne block, or the block holding `tx`.
final_onlyNoRefuse a range above the sealed boundary.

Output Schema

NameRequiredDescriptionDefault
not_seenNoWhat the nest cannot see.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv5.23.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "not_seen": {
      +      "description": "What the nest cannot see."
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observedv5.21.0

TDQS

A4/5.0
Behavior4/5

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

Annotations establish read-only and closed-world behavior, while the description adds meaningful context: output is deterministic with exact amounts, nothing is inferred, and `not_seen` discloses blind spots. It does not cover auth, rate limits, or pagination, but those are not essential given the annotations and output schema.

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?

The definition is front-loaded with purpose and output content, then moves to invocation guidance and limitations. It is dense and uses some jargon like "nest," but every sentence contributes useful information without serious bloat.

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 complex aggregator with seven parameters, an output schema, and full schema description coverage, the description is largely complete. It covers the result content, flow mode, accepted input shapes, determinism, and visibility limits; minor parameter details are appropriately left to the schema.

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 baseline is 3, but the description adds useful relational semantics beyond the schema: range versus block versus transaction selection, the fact that `tx` needs `block`, and that `flow: true` switches to token flow. It does not explain `top` or `final_only` beyond what the schema already provides.

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?

The description clearly states what the tool returns: onchain activity for indexed EVM contracts over a block range, single block, or transaction, including control-plane events, movements, holders, approvals, labels, and counts. It distinguishes the story output from the token-flow mode via `flow: true`, though it does not explicitly contrast itself with sibling tools such as `table` or `balance`.

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 gives concrete invocation guidance: provide `from` and `to`, or `block`, or `tx` with its `block`, and use `flow: true` for token flow instead. It lacks explicit when-to-use versus sibling tools and when-not guidance, but the input-mode conditions are clear.

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