Skip to main content
Glama

Perp Liquidations

perp_liquidations
Read-onlyIdempotent

Forced liquidations on CEX perpetual futures (binance, bybit, okx, deribit, aster), newest first. side is the LIQUIDATED position: long or short. notional_usd = price x qty in USD; qty is in coins. Without interval: one row per liquidation, with recorded_at (unix seconds, milliseconds as the fraction): when we recorded the row, so recorded_at - ts is how late it reached us; null on rows recorded before 2026-12-05, and a row the venue sent again keeps the later time. With interval (1m, 5m, 15m, 1h, 4h, 1d): long_usd, short_usd, long_count and short_count per UTC bucket, summed over the matching venues and symbols. Coverage differs by venue and every answer says how in coverage: binance and aster publish at most one liquidation per symbol per second, so their counts and totals UNDERCOUNT; bybit and deribit publish every one; okx says its feed is not complete. Recorded live, so there is nothing before the first recorded day. Without interval a page ends on a whole second, so it can run over limit by the rest of its oldest second; to page back pass end = the oldest ts received. symbol is the canonical base asset ('BTC', not 'BTCUSDT'); every filter is optional. Same answer as GET /v1/marketdata/perp/liquidations.

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": "perp_liquidations"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoBefore this time (exclusive), same format.
sideNoOnly liquidations of this position side. Omit for both.
limitNoRows or buckets, newest first. Default 100, max 5000.
startNoFrom this time (inclusive), ISO 8601 or YYYY-MM-DD, UTC.
symbolNoBase asset, e.g. 'BTC'. Omit for every symbol.
exchangeNoOnly this venue (lower case): binance, bybit, okx, deribit or aster.
intervalNoBucket the answer (long/short notional and counts) instead of one row per liquidation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations by disclosing data-quality caveats: binance and aster undercount (one liquidation per symbol per second), okx reports an incomplete feed, and coverage varies per venue via `coverage`. It also explains that data is recorded live (nothing before the first recorded day), how `recorded_at` lag works, and that pages can exceed `limit` by the remainder of the oldest second.

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?

Dense and front-loaded, opening with scope and venue list before the caveats, and nearly every clause carries information (units, coverage, pagination). It is long for a tool description and some clauses (the recorded_at millisecond and re-send detail) are heavy, but little is truly wasted.

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 7-parameter, no-required-param, no-output-schema tool with real data-quality quirks, the description covers return shape in both modes, units, coverage limitations, live-recording limits, and pagination behavior. An agent has everything needed to call it correctly and interpret results.

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

Parameters5/5

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

Despite 100% schema coverage, the description adds meaning the schema lacks: `side` refers to the liquidated position, `notional_usd` = price x qty and `qty` is in coins, `symbol` is the canonical base asset ('BTC' not 'BTCUSDT'), and `interval` buckets sum long/short notional and counts per UTC bucket across matching venues and symbols. This resolves genuine ambiguities rather than restating field text.

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 ('Forced liquidations on CEX perpetual futures') plus the exact venue set (binance, bybit, okx, deribit, aster), which implicitly separates it from the Hyperliquid sibling hl_liquidations. An agent knows immediately what data this returns and from where.

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?

Gives concrete when-to guidance: use `interval` for bucketed aggregates vs omitting it for one row per liquidation, and tells the caller to page back by passing `end` = oldest `ts`. It does not name a sibling alternative (e.g. hl_liquidations) or state when not to use it, so it stops short of full routing guidance.

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.