Skip to main content
Glama
order-flow-mcp

order-flow-mcp

by zadescoxp

Flow bars (CVD, volume z-score)

get_flow_series
Read-only

Fetch time-bar order-flow series for a crypto symbol, including OHLC, buy/sell volume, delta, CVD, trade count, volume z-score, and realized volatility to analyze executed market flow.

Instructions

Time bars of executed flow: OHLC, volume, buy/sell volume, delta, cumulative volume delta (CVD), trade count and rolling volume z-score, plus realized volatility. Built from 1-second bars (2h kept).

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_flow_series"
  }
}

Input Schema

NameRequiredDescriptionDefault
barsNoMost recent bars (default 60).
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".
z_windowNoBars in the volume z-score baseline (default 20).
market_typeNo"perp" (default) or "spot".
wait_secondsNoSeconds to wait for first data when a market is not streaming yet (default 10).
interval_secondsNoBar length in seconds (default 60).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds genuinely non-obvious behavior: the series is built from 1-second bars and only 2 hours of history is retained, which tells the agent the resolution floor and the lookback ceiling.

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 dense sentence with the resource stated first and the field inventory following, plus a compact provenance note. No filler, though the field list is long enough that it reads as a data dictionary rather than guidance.

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 seven parameters and no output schema, the description carries the burden of describing the return shape and does so by naming the columns, while the retention note bounds what can be requested. Missing only the units/ordering conventions and any guidance on choosing venue or interval.

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 description coverage is 100%, so every parameter including venue enumeration, interval_seconds, z_window and wait_seconds is already documented in the schema. The description only adds meaning indirectly by explaining that the z-score is rolling and that bars derive from 1-second data, which is marginal beyond the schema. Baseline 3 applies.

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 verb ('Time bars of executed flow') and enumerates the exact fields returned (OHLC, volume, delta, CVD, trade count, volume z-score, realized volatility). It is clearly distinguishable from a raw trade feed, but it does not name or differentiate itself from close siblings such as get_volume_profile or get_trades.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance and no named alternative. An agent must infer from the field list that this is the aggregated time-series view rather than a tick or profile view.

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