Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_get_skip_outcomes

Replays each skipped trade against daily candles using pre-registered entry, stop and target levels to show whether skipping saved or cost R, with per-reason and per-strategy saved-R rollups.

Instructions

The Counterfactual scorecard: what would have happened had each SKIPPED trade been taken. Every skip is replayed against daily candles from its signal date using the decision-time-frozen entry/SL/TP (pre-registered — no hindsight bias). Per outcome: status (would_be_stopped capped at exactly -1R / would_hit_target / running = open mark), counterfactualR, savedR (= -R: positive means the skip SAVED money), move %, MFE/MAE in R, skip reasons + note. Aggregates: per-skip-reason and per-strategy rollups plus the cumulative saved-R series ("is the discretionary overlay adding edge"). Assumes MECHANICAL execution of the planned levels — no discretionary management; same-bar stop+target counts the stop first (flagged ambiguousBar). Pairs with dwlf_list_trades(status:"skipped") and dwlf_skip_trade. UI equivalent: https://www.dwlf.co.uk/trades/counterfactual. 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

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_get_skip_outcomes"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.77.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does so: it discloses the decision-time-frozen entry/SL/TP methodology, the stop-first tie-break on same-bar stop+target (flagged ambiguousBar), and the mechanical-execution assumption with no discretionary management. It also states a reporting obligation for hypothetical figures and the hypotheticalLegend field, which is exactly the kind of context annotations would otherwise need to 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?

The definition is front-loaded with the core concept before the field-by-field enumeration, and nearly every clause adds distinct information (status values, savedR sign convention, ambiguity flag). It is dense and long, and the trailing hypothetical-reporting instruction plus UI URL could be tightened, but there is little genuine padding.

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?

With no output schema and no parameters, the description compensates by enumerating the returned fields (status, counterfactualR, savedR, move %, MFE/MAE, skip reasons, rollups, cumulative saved-R series) and defining the sign convention for savedR. Nothing an agent needs to interpret or correctly report the result 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?

The tool takes zero parameters, so there is no parameter meaning to add and the baseline of 4 applies. The description instead spends its space on output semantics, which the schema cannot cover here.

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?

The opening sentence names the specific artifact (a counterfactual scorecard) and the exact population it covers (SKIPPED trades replayed as if taken), which is a concrete verb+resource+scope rather than a restatement of the name. It is clearly differentiated from the sibling write tool (dwlf_skip_trade) and the listing tool (dwlf_list_trades with status skipped).

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

Usage Guidelines4/5

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

It tells the agent when this is the right tool by pairing it with dwlf_list_trades(status:"skipped") and dwlf_skip_trade, implying this is the analysis layer over skipped trades. It does not state explicit exclusions, such as what to use for taken-trade or live-performance analysis, so it stops short of full when/when-not guidance.

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