Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_evaluate_strategy

Triggers an on-demand evaluation of a visual strategy over a chosen history window, populating signal/event tables for analysis and returning a request ID to poll.

Instructions

Trigger an on-demand evaluation run for a specific visual strategy. Parallels dwlf_evaluate_custom_event but for strategies. Returns { requestId, status: "pending" } — poll dwlf_get_evaluation_status until completed. Consumes one EVALUATION quota. Same backfill caveat as dwlf_evaluate_custom_event: defaults to ~400 candles (~14 months); pass lookbackDays to cover a longer history. ⚠️ IMPORTANT — this DOES NOT emit strategy.entry.triggered events to the dispatcher. Those events are only emitted by the daily cron (dailyTradeSignalJob, ~04:00 UTC) when entry conditions match on the latest bar. On-demand evaluation populates the signal/event tables for analytical queries (dwlf_get_recent_signals, dwlf_get_events) but will NOT trigger Telegrams or planned-Trade rows even if it finds matches on historical bars. To get a fresh Telegram fire on a historical signal you need a manual replay through the dispatcher, not this tool. Got bitten by this twice while debugging WULF on 2026-05-27 — documenting so future-me does not re-discover.

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": {
      "strategyId": "<strategyId>"
    },
    "name": "dwlf_evaluate_strategy"
  }
}

Input Schema

NameRequiredDescriptionDefault
strategyIdYesVisual strategy ID to evaluate
lookbackDaysNoHow many days of history to (re)evaluate, overriding the default ~400-candle (~14-month) window. Set to at least the span of any dependent backtest. Larger-than-history values are safe.
idempotencyKeyNoOptional client-supplied idempotency key

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?

With no annotations, the description carries the full burden and does so: it discloses the return payload shape, the quota cost ('Consumes one EVALUATION quota'), the default backfill window and its ~14-month limit, and the critical non-obvious side effect that on-demand evaluation writes signal/event tables but emits no `strategy.entry.triggered` events to the dispatcher.

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, then polling, cost, and the warning — the ordering matches how an agent would consume it. The trailing debugging anecdote ('Got bitten by this twice while debugging WULF on 2026-05-27 — documenting so future-me does not re-discover') is personal meta-commentary that adds length without adding decision value.

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?

No output schema exists, yet the description supplies the return shape and the follow-up call needed to resolve it, plus the quota and side-effect model. For a 3-parameter, asynchronous, side-effecting tool, 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 the baseline is 3. The description earns an extra point by framing `lookbackDays` operationally — it is the lever for covering longer history than the ~400-candle default, and the warning implies it matters when a strategy has dependent backtests, which is more than the schema's field-level text conveys.

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?

Opens with a specific verb and resource ('Trigger an on-demand evaluation run for a specific visual strategy') and immediately distinguishes itself from a named sibling: 'Parallels dwlf_evaluate_custom_event but for strategies.' An agent can pick this tool without opening any 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?

Gives the full lifecycle: call this, then 'poll dwlf_get_evaluation_status until completed'. It also states an explicit exclusion — this tool will not fire Telegram alerts or create planned-Trade rows, and a manual dispatcher replay is the correct alternative for that goal. That is when-to-use, when-not-to-use, and the alternative in one place.

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