Start a strategy parameter experiment
start_parameter_experimentStart 2-30 parameter variants against the same saved revision, same date window, and same current BotSpot Auto routing policy. BotSpot creates or resolves one immutable strategy parameter set per variant and starts the runs in parallel with bounded concurrency through the normal backtest entitlement and runtime path. Use this when the user asks to compare parameter values; do not edit strategy code between variants. Sweep size: when the person gives a range without saying the step (for example "everything from 150 to 250", even with a few example values), choose a step so the first batch is about 10 runs or fewer (150 to 250 means every 10, 11 runs), say the step in one line, and offer the finer sweep in between next. Follow a step the person names exactly, and when they ask for every value or a count such as all 50, start all of them (two calls of up to 30). Otherwise, with two or more settings use a small grid, about 12 to 20 runs in total (for example 5 values by 3 values), in one call; never use separate start_backtest calls for a sweep. When a grid the person did not size would pass 20 runs, say the grid and its run count first and pick the most informative combinations, or run in rounds: start round one, compare, then propose round two from what it showed. A person may have at most 60 backtests queued or running when a sweep starts; a bigger request is refused. Read the saved strategy first and use the exact parameter key from the saved strategy code, including its casing; never rename, uppercase, or infer a different environment-variable-style key. The result returns an experiment id, exact revision id, parameter-set ids, routing-policy snapshot, every successfully started backtest id, and any start failures. This tool does not return an externalWaitId: do not invent one or call record_external_wait_in_plan for the experiment id. In a BotSpot chat you are woken once, when the last run ends, with every run in parameterExperiment.runs (or once early if a run fails while others are still running so you can fix shared code bugs automatically): end your turn after starting and compare then, unprompted. Elsewhere, read backtest_status until every run is terminal. Report failures or missing artifacts and compare the complete set on the same window. On a plan with a backtest minute limit, runs that do not fit in the minutes left are not started and are listed in notStartedForMinutes. Do not blindly recommend the highest in-sample return; include drawdown, risk-adjusted metrics, trade count, parameters, and observed data provenance, then recommend out-of-sample or walk-forward validation. This always uses the conversation data provider; no dataProvider or raw botConfig input is accepted.
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": {
"startDate": "<startDate>",
"endDate": "<endDate>",
"variants": "<variants>"
},
"name": "start_parameter_experiment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| budget | No | Starting cash for the backtest, in quote-currency units unless budgetConversion explicitly declares another input currency. Sets BACKTESTING_BUDGET in the backtest environment. | |
| endDate | Yes | The last calendar day to simulate, inclusive. Preserve the requested last date; do not add a day as though this were an exclusive upper bound. | |
| variants | Yes | ||
| startDate | Yes | The first calendar day to simulate, inclusive. Preserve the user-requested date, normally YYYY-MM-DD. | |
| revisionId | No | ||
| envVarSetIds | No | Saved BotSpot environment variable IDs to inject into the backtest runner. The MCP server never reads or exposes the saved values; BotSpot issues a short-lived runtime secret for the backtest. | |
| budgetConversion | No | Optional caller-declared starting-capital conversion: budget_currency, quote_currency and positive finite quote_per_budget, as a number or decimal string (quote-wallet units per input-budget unit). The amount may be budget here or an explicit amount already in the saved code/environment; no extra MCP budget is required. Optional as_of, source, note and other JSON metadata preserve provenance, including approximate or missing dates. No exchange rate is fetched or independently verified. Without this record, numeric budget retains its existing quote-currency meaning. |