Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_list_backtests

Lists your backtests newest first with status, symbols, timeframe and capital so you can pick a requestId, then page or filter by status to drill into results.

Instructions

List your backtests (most recent first) with their status and config. DEFAULTS TO SUMMARY MODE: strips the bulky strategyDefinition (visual-builder node graph) from each item while keeping all metadata (requestId, strategyId/Name, symbols, timeframe, start/end dates, initialCapital, riskPerTrade, status, createdAt). PAGED: returns the 15 most recent by default plus a cursor; even summarised, a large account overflows in one shot. To see more: raise limit, pass the returned cursor for the next page, or narrow with status. Use the summary to pick a requestId, then drill in: dwlf_get_backtest_results for the run's metrics/trades. Pass summary: false only if you specifically need each row's full strategy graph (keep limit small when you do — full records are ~8 KB each).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "dwlf_list_backtests"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax backtests to return, most recent first (default 15). Raise to see more, but mind the context cost.
cursorNoOpaque pagination cursor from a previous response's `cursor` field — pass it to fetch the next page of older runs.
statusNoFilter to a single request status, matched exactly. Known values: pending, processing or running (in-progress — both occur, depending on which backtest worker ran), completed, failed, cancelled. Pass the status string exactly as it appears in a prior list response.
summaryNoDefault true — strip the per-item strategyDefinition graph. Set false to include the full visual-builder node graph on every backtest (much larger).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.77.0

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations exist, so the description carries the full burden and does so: it discloses the default summary mode and what gets stripped (`strategyDefinition`), the exact metadata retained, the 15-item default page size, the presence of a `cursor`, and the ~8 KB per-record cost of full mode. This is the kind of behavioral context annotations alone could never supply.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and the default-mode warning, and the uppercase markers make the two critical caveats scannable. The parenthetical enumeration of retained metadata fields is slightly long, but it does real work confirming what survives stripping.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description must describe returns — and it does, covering ordering, retained fields, the cursor, and default page size. For a 4-param read tool with no annotations, nothing an agent needs in order to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so 3 is the baseline, but the description earns above it by quantifying tradeoffs the schema only gestures at: `summary: false` is ~8 KB per record and warrants a small `limit`, and larger limits carry real context cost. It adds less for `status`, whose enumerated values already live in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('List your backtests') plus ordering ('most recent first') and contents ('status and config'). It also names the sibling it hands off to ('dwlf_get_backtest_results for the run's metrics/trades'), so the agent can distinguish list from drill-in without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit workflow: pick a requestId from the summary, then drill in with dwlf_get_backtest_results. It also gives concrete when-to conditions for each escape hatch — raise `limit` or pass `cursor` to see more, narrow with `status`, set `summary: false` only when the full strategy graph is actually needed.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools