When you connect an agent over MCP, it gets 30 tools β the entire backtester surface. This is everything your AI can do for you. No code; you ask, it calls.
http://127.0.0.1:8142/api/mcp/sseSSE transport Β· works with Claude Desktop, Cursor, and any MCP clientload_datasetLoad a CSV or binary .chunk dataset by path (mmap for 10GB+). The engine reads it natively.
get_dataset_infoStats for the loaded dataset: rows, time range, price range, available indicator columns.
get_featuresList the available columns / indicators (features) in the current dataset.
convert_datasetConvert a CSV into a fast binary .chunk (bars) or .fchunk (features) for huge data.
get_strategy_schemaThe JSON schema for strategy rules β so the agent builds valid logic, not guesses.
generate_templateA starter strategy template (rules or graph) to build from.
validate_strategyParse & compile a ruleset with the engine's own parser before running β catches errors early.
ai_run_backtestRun a strategy backtest in real time; every run is auto-archived as a report.
get_dashboard_dataFull result of the last backtest: metrics, equity curve, trade statistics.
get_metricsPerformance metrics: total return, Sharpe, Sortino, max drawdown, profit factorβ¦
get_tradesThe trade list (filter by side / limit / offset).
get_equity_curvePortfolio value over time.
get_drawdown_curveDrawdown (underwater) curve over time.
get_monthly_returnsPer-month return breakdown.
get_graphGraph overview of the strategy's trades (nodes / edges).
walk_forwardOut-of-sample cross-validation. Returns per-window IS/OOS and Walk-Forward Efficiency β the overfitting test.
monte_carloBootstrap the trades to estimate risk of ruin and return/drawdown percentiles. Luck vs. edge.
optimize_exitsSweep TP/SL/trailing ranges at fixed entries to find the best exit parameters.
list_reportsThe curated list of every archived backtest and RL model the user sees.
save_reportArchive a run explicitly with a name and metrics.
open_reportRe-run a report's strategy and show it on the dashboard.
pin_reportKeep a winner (protected from auto-cleanup) or rename it.
delete_reportDrop a losing run.
clear_unpinned_reportsBulk-delete everything that isn't pinned.
rl_trainTrain a DQN trading agent (pure Rust) with a live reward curve and IS/OOS evaluation; the model is saved as a report.
rl_predictAsk a trained model for the current signal (long / short / flat) on the latest window β or an inline bar batch.
rl_train_multiTrain a portfolio agent across up to 4 symbols at once (joint action space).
rl_predict_multiGet a per-symbol signal from a saved portfolio model.
get_ai_instructionsThe system prompt + the current dataset's columns β the agent calls this first to orient.
execute_ui_actionSteer the app the user is watching: switch tabs, refresh, export, scroll to a section.