Skip to main content
Glama
order-flow-mcp

order-flow-mcp

by zadescoxp

Resting liquidity heatmap

get_liquidity_heatmap
Read-only

Map order-book liquidity over time within ±1% of mid to show average resting size by price and time, persistent walls, and whether walls were added, pulled, or held.

Instructions

Order-book depth over time (sampled every second) within ±1% of mid: average resting size per price row and time column, plus persistent walls and whether they were pulled, added or held.

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

Input Schema

NameRequiredDescriptionDefault
rowsNoPrice rows (default 20).
venueNo"all" (default, aggregate every venue listing the market) or one exchange: binance, bybit, okx, bitget, hyperliquid, deribit, coinbase, gate, kucoin, kraken, htx.
symbolYesAsset or symbol, e.g. "BTC", "ETHUSDT", "SOL-PERP".
columnsNoTime columns (default 10).
minutesNoLook-back (default 10).
market_typeNo"perp" (default) or "spot".
wait_secondsNoSeconds to wait for first data when a market is not streaming yet (default 10).

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 this a read-only, open-world call, so the description earns credit for adding behavior beyond that: one-second sampling cadence, a fixed ±1% band around mid, and wall lifecycle states (pulled, added, held). It does not discuss streaming availability or rate/limit behavior, which the wait_seconds parameter hints at but the text never explains.

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?

A single front-loaded sentence packs scope, sampling rate, and return contents with no filler. It is dense enough that the 'whether they were pulled, added or held' clause has to be read twice, but nothing is wasted.

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 no output schema, the description must convey what comes back, and it does: an average resting-size grid indexed by price row and time column, plus persistent walls with lifecycle labels. For a seven-parameter read tool with rich schema coverage that is largely sufficient, though latency/streaming behavior and empty-result handling remain unaddressed.

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?

Schema coverage is over 80%, so the baseline applies and the schema already documents all seven parameters thoroughly. The description still adds interpretive value by mapping 'price row' and 'time column' to the rows/columns grid semantics and clarifying that the ±1% band is fixed rather than tunable.

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 states a specific resource and scope: order-book depth sampled every second within ±1% of mid, returning an average resting-size grid plus persistent walls. That is a concrete verb+resource+output triple, but it never names a sibling alternative (e.g. get_order_book for a snapshot) to sharpen the boundary.

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 by the output description: an agent can infer this is for resting-liquidity accumulation rather than a point-in-time book. There is no explicit when-to-use, when-not-to-use, or named alternative among the many sibling tools that also expose book-derived data.

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