dwlf_get_backtest_results
Retrieve backtest results by requestId to check headline metrics, with a lightweight summary by default and full per-trade data, equity curves, and signals when needed.
Instructions
Get results for a backtest by requestId. If status is not "complete", poll again shortly. DEFAULTS TO SUMMARY MODE: returns DDB-level per-symbol stats (totalReturn, totalTrades, winningTrades, sharpe, maxDrawdown, finalEquity) and the portfolio-level aggregate metrics object, with all bulky fields stripped (per-symbol trades, equityCurve, signals, monthlyReturns; request-level portfolioEquityCurve, portfolioTrades, portfolioRejectedSignals). Summary is ~1-3 KB vs ~1-3 MB full — use it for headline metric checks, leaderboard-style comparisons, and "did it work" sanity passes. Pass summary: false to get the full payload (per-trade rows, equity curves, signals) — needed for plotting, per-trade analysis, or feeding into another tool. ⚠️ When summary=false, the MCP transport will dump the response to disk and ask you to extract via subagent — budget for that. 📡 For background polling without burning context window: the REST URL is GET https://api.dwlf.co.uk/v2/backtests/{requestId}/results?summary=true. Any simulated figure here (a backtest, a strategy's recorded fires, a replayed skip) is hypothetical: worked out on past data, not actual trading. Say so whenever you report one, and pass on hypotheticalLegend when the response carries it.
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": {
"requestId": "<requestId>"
},
"name": "dwlf_get_backtest_results"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | No | Default true — return the lightweight summary view. Set false to pull the full S3-merged payload (~1-3 MB). | |
| requestId | Yes | Backtest request ID |