Skip to main content
Glama
order-flow-mcp

order-flow-mcp

by zadescoxp

Time & sales

get_trades
Read-only

Fetches recent executed crypto trades newest first, with aggressor side and notional. Filter the tape by symbol, side, venue, or minimum notional to inspect order flow.

Instructions

Recent executed trades (tape), newest first, with aggressor side and notional. Filter by minimum notional, side or venue.

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

Input Schema

NameRequiredDescriptionDefault
sideNo
limitNoMax trades (default 50).
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".
only_venueNoOnly trades from this venue id, e.g. bybit-futures.
market_typeNo"perp" (default) or "spot".
wait_secondsNoSeconds to wait for first data when a market is not streaming yet (default 10).
min_notional_usdNoOnly trades at least this notional.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already cover read-only and open-world behavior. The description adds useful traits beyond that — newest-first ordering and the included fields (aggressor side, notional) — but says nothing about streaming/warm-up behavior despite a wait_seconds parameter, nor about pagination caps or volume.

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 compact sentences: the first front-loads what the data is and its shape, the second covers filtering. No redundancy or filler.

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 8 parameters, 88% schema coverage and no output schema, the description's mention of ordering and returned fields (aggressor side, notional) fills the main gap. The remaining omission is sibling differentiation from get_big_trades, which matters for selection but not for correct invocation.

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 88%, so the schema already documents limit, venue, market_type, wait_seconds and min_notional_usd. The description restates the three filter dimensions (notional, side, venue) but adds no syntax, defaults, or edge-case meaning beyond what the schema provides; 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?

States a specific verb+resource: 'Recent executed trades (tape), newest first, with aggressor side and notional,' which tells an agent exactly what data comes back and in what order. It does not distinguish itself from the sibling get_big_trades, so it falls short of a 5.

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?

The clause 'Filter by minimum notional, side or venue' implies how to narrow results, but there is no explicit when-to-use guidance or exclusion. An agent could reasonably wonder when to pick this over get_big_trades or get_flow_series, and the description offers no routing.

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