Skip to main content
Glama

Export bars for a backtester

backtest_export
Read-onlyIdempotent

Daily OHLCV bars for one symbol packaged as ready-to-load files for an open-source backtester or trading framework: backtrader, backtesting_py, vectorbt, zipline (csvdir bundle), lean (QuantConnect LEAN, base64 zip), nautilus, freqtrade or qlib. Returns files (path, encoding, content) and load_code. Write each file at its path, then run load_code. Clipped to as_of; start defaults to 365 days before end.

Input Schema

NameRequiredDescriptionDefault
endNo
as_ofNoPoint-in-time cutoff (YYYY-MM-DD). Nothing dated after this is returned, preventing look-ahead bias. Defaults to today (UTC).
startNo
symbolYes
frameworkNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare read-only/idempotent/non-destructive, so the bar is lower, yet the description adds real value: it returns (path, encoding, content) plus load_code and tells the agent to write files at their paths and then run load_code. That side-effect protocol is essential and is not inferable from annotations. It does not state file sizes, rate limits, or what happens if paths already exist.

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?

Front-loaded with what the tool produces, then the framework list, then the return protocol and clipping rules — no filler. The framework enumeration is dense but earns its place because the enum values are the selection choice; only minor tightening is possible.

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 correctly takes on the burden by describing the return payload and the load_code handoff. What is missing is minor but real for a file-export tool: symbol format expectations, behavior on existing file paths, and whether end is inclusive.

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 only 20% (only as_of is documented), so the description must compensate and largely does: it names the valid framework values, explains that output is "clipped to as_of," and supplies the undocumented default that start is 365 days before end. It still says nothing about the symbol format or what end defaults to.

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?

States a specific verb+resource ("Daily OHLCV bars for one symbol packaged as ready-to-load files") and enumerates the target frameworks, which cleanly separates it from the raw-bar sibling get_bars and from run_backtest. An agent knows exactly what artifact it gets back.

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 purpose implies the when (you need on-disk files for a specific framework rather than raw JSON bars), but no sibling is named: get_bars and run_backtest are never referenced, and the description gives no explicit exclusion or precondition beyond the framework list.

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.