Skip to main content
Glama

record_data

Capture market data into a .floxlog tape. Supports live recording via CLI or historical backfill using ccxt to fetch OHLCV klines or trades.

Instructions

Capture market data into a .floxlog tape. Wraps the canonical recording paths — for mode=live shells out to the flox tape record CLI; for mode=historical shells out to scripts/backfill_to_tape.py which uses ccxt's fetch_ohlcv / fetch_trades. Use this when the user asks to 'record some BTC data' / 'pull a month of klines for backtest' / 'tape the last hour of trades'. The result is a .floxlog directory drivable by BacktestRunner.run_tape.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYes`historical` = ccxt backfill of past data. `live` = capture from now onwards via `flox tape record`.
exchangeYesccxt exchange id (bitget, binance, bybit, ...).
symbolYesSymbol in the exchange's spelling (BTC/USDT, BTCUSDT — both accepted).
out_pathYesOutput `.floxlog` directory (will be created if missing).
data_typeNoHistorical mode only. `klines` (1m bars by default) or `trades` (per-print). Trades have higher fidelity but are limited by what each exchange exposes.
from_dtNoHistorical mode. Start datetime — ISO (2026-04-01) or unix-ms.
to_dtNoHistorical mode. End datetime — ISO or unix-ms.
durationNoLive mode. Recording duration (`1h`, `30m`, `2d`). Omit for an open-ended recording (Ctrl+C to stop).
max_recordsNoHistorical mode. Refuse to start if estimated row count exceeds this. Default 1_000_000.
Behavior4/5

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

No annotations provided, so description carries full burden. It explains internal mechanism (shells out to CLI/script), notes data_type trade-offs, and mentions max_records. Lacks detail on overwrite behavior or side effects, but adequate.

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?

Efficient single paragraph: starts with purpose, then internals, then usage examples, then result. No redundant sentences, every part earns its place.

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?

Given 9 parameters, no output schema, description covers modes, defaults, and output format. Could mention return value or confirmation, but overall sufficient for agent to understand tool behavior.

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

Parameters4/5

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

Schema coverage is 100%, baseline 3. Description adds meaningful context beyond schema: explains mode behavior (live vs historical), data_type fidelity, and duration options. Helps agent select parameters appropriately.

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?

The description clearly states the tool captures market data into a .floxlog tape, with specific examples like 'record some BTC data' or 'pull a month of klines'. It differentiates from siblings (e.g., run_backtest) by focusing on data recording.

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

Usage Guidelines4/5

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

Provides explicit when-to-use examples and mentions the result is drivable by BacktestRunner. However, does not explicitly state when not to use or list alternatives among siblings, which would strengthen guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/FLOX-Foundation/flox'

If you have feedback or need assistance with the MCP directory API, please join our Discord server