Skip to main content
Glama
liquidation-map

liquidation-map

by tordagaz-ops

liquidation_map

Read-only

Estimate liquidation clusters for a perpetual by showing price levels that would close positions, notional at each level, and distance from mark price.

Instructions

Estimated liquidation clusters for one perpetual: which price levels would close out the positions opened in the window, how much notional sits at each, and how far they are from the mark price. Returns kind=estimate with its assumptions attached.

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": {
      "symbol": "<symbol>"
    },
    "name": "liquidation_map"
  }
}

Input Schema

NameRequiredDescriptionDefault
mmrNoMaintenance margin ratio used in the liquidation formula, 0.004 by default. The exchange's real bracket table needs a signed request, so the smallest tier is assumed and larger positions are therefore slightly understated.
limitNoHow many intervals to read, oldest first and newest last. The upstream refuses more than 500, and its history only goes back 30 days.
periodNoInterval of the series: 5m, 15m, 30m, 1h, 2h, 4h, 6h, 12h or 1d. Shorter intervals see more noise, longer ones see more of the position.1h
symbolYesPerpetual symbol: BTCUSDT, btc/usdt or just btc — a bare base is completed with USDT, which is how the exchange names most of its contracts.
band_pctNoKeep only levels within this percentage of the mark price. A liquidation estimate fifteen percent away is already a different market.
leverageNoLeverage tiers to place in the ladder, for example 10,25,50,100. Each one is a separate row because each one lands at a different distance from the entry.
cluster_pctNoMerge levels closer together than this percentage into one. Without it every interval becomes its own row and the map is noise.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so safety is covered; the description adds real signal by flagging that results are estimates ('Returns kind=estimate with its assumptions attached'), warning the agent not to treat output as exact. It does not restate the MMR-bracket caveat itself, leaving that to the schema, but the estimate framing is the key behavioral disclosure.

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?

Two tight sentences, front-loaded with the purpose and output shape, with the estimate caveat as a short trailing clause. Nothing is redundant or padded.

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?

With an output schema present, return values need no prose, and all seven parameters are documented in-schema. The one gap is the absence of explicit usage guidance relative to sibling tools, which is minor for a self-contained estimation query.

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

Parameters3/5

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

Schema coverage is 100% and each parameter already has a rich description (period intervals, band_pct, leverage tiers, cluster_pct merging), so the schema carries the burden. The description only alludes to 'the window' and 'how far they are from the mark price', adding little beyond what the schema states.

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 ('Estimated liquidation clusters for one perpetual') and then enumerates the three things it reports: price levels, notional at each, and distance from mark. No sibling (list_symbols, open_interest_history, positioning) does this, so an agent can place it without checking other schemas.

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 only implied — the word 'Estimated' and 'positions opened in the window' hint at an approximation use case, but there is no explicit when-to-use, when-not, or routing to a sibling such as positioning. An agent knows what it does but not when to prefer it over related tools.

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