optimize_strategy
Optimize a strategy specification with Optuna by running multiple trials to find parameters that maximize a selected metric, such as Sharpe ratio.
Instructions
Run Optuna-based parameter optimization on a StrategySpec. Finds best params across n_trials.
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": {
"spec": "<spec>"
},
"name": "optimize_strategy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | ||
| metric | No | sharpe | |
| n_trials | No |