Skip to main content
Glama

get_order_flow

Read-onlyIdempotent

CoinAPI only (provider=coinapi). Executed trades and taker buy/sell volume for one exact CoinAPI spot instrument over an explicit UTC window of at most 24 hours. Defaults to 100 trades, maximum 1,000. Volume delta and cumulative volume delta describe only returned trades, in the instrument's quote currency. Unknown taker sides remain unknown. Trades do not reconstruct resting bids or liquidation levels.

[Access: pay 0.01 USDC via x402 (PAYMENT-SIGNATURE header) OR authenticate with an API key. An x402-capable client will auto-pay; API-key clients pay nothing per call.]

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_id": "<symbol_id>",
      "time_end": "<time_end>",
      "time_start": "<time_start>"
    },
    "name": "get_order_flow"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum results.
providerNoOptional upstream override; omitted uses the existing server default.coinapi
time_endYesISO 8601 UTC-aware end timestamp; after start and at most 24 hours later.
symbol_idYesExact provider spot instrument identifier, including venue, SPOT, base, and quote.
time_startYesInclusive ISO 8601 UTC-aware start timestamp.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/non-destructive, yet the description adds substantial behavior the schema cannot express: a per-call payment requirement (0.01 USDC via x402 or API key), default and maximum result counts, the fact that volume delta covers only returned trades in quote currency, and that unknown taker sides stay unknown. It does not mention pagination or whether ordering is guaranteed, which is why it falls short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence is front-loaded and dense with constraints, and every sentence carries operational information, but the paragraph reads as a single unstructured block mixing purpose, limits, metric semantics, caveats, and payment mechanics. Splitting the access/payment note from the analytical semantics would improve scanability without adding length.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 carry return-value meaning, and it does explain that volume delta and cumulative volume delta refer only to returned trades and are denominated in the instrument's quote currency. It still leaves result ordering, truncation behavior when the 1,000 cap is hit, and the shape of per-trade fields unspecified.

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 the baseline is 3 and the schema already explains symbol_id, time_start, time_end, limit, and provider. The description adds some meaning (limit defaults to 100 with a 1,000 cap; the window must be at most 24 hours; provider is pinned to coinapi), but it does not explain formats or edge cases for symbol_id beyond what the schema states.

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 pair (executed trades and taker buy/sell volume) with tight scope: one exact CoinAPI spot instrument and an explicit UTC window of at most 24 hours. It implicitly separates itself from orderbook and liquidation siblings by stating that trades do not reconstruct resting bids or liquidation levels, though no sibling is named directly.

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 definition clearly states the CoinAPI-only constraint and the time-window constraint, which constrains when the tool is applicable. However, it never routes the agent among alternatives: there is no 'use get_ohlcv for aggregated candles' or 'use get_orderbook_history for depth' style guidance, so the agent must infer selection from the negative phrasing alone.

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.