Skip to main content
Glama

Who added and removed liquidity in a DEX pool

get_pool_liquidity_events
Read-only

The liquidity events of one DEX pool inside a block window, newest first — the block, time and transaction, the provider the event names, action (add or remove) and the event as the pool names it, and the USD added or removed over the token legs that could be priced (pricedLegs / unpricedLegs; absent when none could). The window is fromBlock to toBlock, at most 216 000 blocks (about 30 days), by default the 7 days up to meta.asOfBlock; a wider one is refused with the bound, never narrowed, and a toBlock past meta.asOfBlock is refused (block_not_available). Uniswap v4 pools are not covered and are refused (pool_not_covered) rather than answered empty. Use it to see who added or removed liquidity in a pool. Not for daily totals: use get_pool_liquidity_flow. Not for every token leg of one transaction's events: use get_transaction_liquidity_events. Not for the largest removals across all pools: use get_largest_liquidity_removals.

Arguments: pool; optional fromBlock, toBlock, limit (default 10, at most 100), cursor. chain_id defaults to 1 (Ethereum mainnet, the only chain served). Paged: pass data.nextCursor back as cursor, with the same other arguments, until it is absent — no nextCursor means the list is complete, even when the page is exactly limit long. Freshness: the timeline up to meta.asOfBlock, the highest block it covers. meta.cached is true when the answer came from the TraceFast response cache (refreshed within minutes); meta.timestamp is when it was produced, in Unix milliseconds.

Minimum plan: Investigation. Rate class: standard. Documentation: https://docs.tracefast.xyz/api/pool-liquidity-events

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": {
      "pool": "<pool>"
    },
    "name": "get_pool_liquidity_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
poolYesThe pool's address (`0x` + 40 hex), or its own 32-byte id (`0x` + 64 hex: a Uniswap v4 PoolId, or a Balancer v2 poolId); any case.
limitNoHow many rows to return: 1 to 100, default 10. A larger value is refused with `bad_request`, `details.reason` `limit_out_of_range` and `details.maxLimit`, never cut.
cursorNo`data.nextCursor` of this tool's previous answer, passed back unchanged with the same other arguments. Opaque; absent on the first call.
toBlockNoThe window's last block. Default: the last block the liquidity events have reached (`meta.asOfBlock`).
chain_idNoChain id. Only 1 (Ethereum mainnet) is served; the default.
fromBlockNoThe window's first block. Default: 7 days of blocks below `toBlock`.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the readOnly/openWorld annotations: it discloses the 216,000-block window cap that is refused rather than narrowed, refusal of a toBlock past meta.asOfBlock (block_not_available), newest-first ordering, and how pricing gaps surface via unpricedLegs. It also explains pagination termination and the meaning of meta.cached/meta.timestamp freshness.

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-loads the resource and return shape, then usage, then arguments, pagination and freshness in labelled segments, so it scans well despite its length. A few details (e.g. the block-count equivalent "about 30 days", the error code on toBlock) could be tightened without losing meaning.

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?

For a paged, windowed read over a complex domain, it covers the window defaults and bounds, refusal behavior, pagination completion rule, freshness fields, plan/rate class and a docs link. An output schema exists, so it is reasonable that return payload structure is not restated.

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 real meaning: the coupled fromBlock/toBlock window with its 216,000-block ceiling, chain_id serving only Ethereum mainnet, and the requirement to replay the cursor with identical other arguments. The limit refusal semantics are already in the schema, so the gain is above baseline rather than exhaustive.

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+resource+scope: the liquidity events of one DEX pool inside a block window, newest first, with the exact fields returned (block, time, transaction, provider, action, priced/unpriced legs). It also names three sibling tools it is not, so an agent can route without opening any schema.

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

Usage Guidelines5/5

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

Gives an explicit positive rule ("Use it to see who added or removed liquidity in a pool") followed by three explicit exclusions each paired with the alternative to use instead (get_pool_liquidity_flow, get_transaction_liquidity_events, get_largest_liquidity_removals). It also states the eligibility boundary: Uniswap v4 pools are refused with pool_not_covered.

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