Create Strategy Draft
create_strategy_draftCreates a unique draft ID from a strategy spec for single-test or Python-bundle use, validating against the strategy-spec-v1 schema for reproducible backtests.
Instructions
Create a private single-test or Python-bundle draft.
strategy_spec must satisfy the strategy-spec-v1 JSON Schema contract
(available at backtrader-mcp://contracts/strategy-spec). Each call
creates a new draft ID.
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_spec": "<strategy_spec>"
},
"name": "create_strategy_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| strategy_spec | Yes | ||
| scaffold_profile | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||