Run a backtest
acubic_run_backtestRuns a walk-forward backtest of one saved strategy and saves it in place of the previous one: at each rebalance the strategy is rebuilt from the data then available, with transaction costs, against the S&P 500 (SPY). 1 to 10 years, monthly, quarterly or annual rebalancing, 0 to 200 bps costs. It uses one backtest from the plan's monthly allowance, returned if the run fails or is cancelled. May return a run_id for acubic_get_backtest_status. One MCP run per person at a time. Results are hypothetical and carry a disclosure. To read a saved backtest use acubic_get_backtest.
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": {
"strategy_id": "<strategy_id>"
},
"name": "acubic_run_backtest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| years | No | Length of the test in years. | |
| locale | No | The language of this conversation. | |
| strategy_id | Yes | The saved strategy to backtest. | |
| rebalance_freq | No | M monthly, Q quarterly, A annual (needs at least 3 years). | M |
| response_format | No | concise | |
| client_request_id | No | Idempotency key. | |
| transaction_cost_bps | No | Cost of each buy and sell in basis points. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| quota | No | ||
| backtest | No | ||
| truncated | No | ||
| disclosure | No | ||
| client_request_id | No | The idempotency key this call used (yours, or one made for it). Repeat the call with it to get the same run without a second charge. | |
| quota_unavailable | No | True when the quota counters could not be read after the work was saved; the work is saved. |