Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_get_recent_signals

Retrieve recorded trade signal history from the daily evaluator, filtered by symbol, strategy, date range, or days, with entry/exit prices, R-multiple targets, and current P&L for filled signals.

Instructions

Get user trade signals — strategy fires recorded by the daily evaluator. Shows signal history with entry/exit prices, R-multiple targets, contextHash, current P&L if filled. Filters compose: symbol (single), strategy (full strategy field, e.g. visual_strategy_X), and fromDate/toDate (ISO YYYY-MM-DD) OR days (last N). Without any filter the default cutoff is the most-recent N signals up to limit. Use this rather than the older /recent endpoint variant — that one has a hard-coded 5-day window that silently hides older fires. 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_recent_signals"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoConvenience: signals from the last N days. Combine with `symbol`/`strategy` to scope tightly.
limitNoMax signals to return (default: 50, max ~500). Returned newest-first.
symbolNoFilter to a single trading symbol (e.g. BTC-USD, IREN). Slashes and hyphens both accepted.
toDateNoInclusive upper bound on signal date, ISO YYYY-MM-DD.
fromDateNoInclusive lower bound on signal date, ISO YYYY-MM-DD. Pair with toDate for a precise window.
strategyNoFilter to a single strategy. Pass the full strategy field as stored — usually `visual_strategy_<id>` (note the visual_ prefix that the cron writes).
sortOrderNoDate sort order (default: desc → newest first).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.77.0

TDQS

A4.3/5.0
Behavior4/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 well: it discloses the default cutoff when unfiltered, the silent-truncation pitfall of the alternative, that simulated figures are hypothetical and must be labeled, and that hypotheticalLegend should be passed through. Auth requirements and pagination behavior beyond 'limit' are not covered, keeping it short of a 5.

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 alternative-routing warning, then filters, then the hypothetical-data disclaimer. Every sentence is load-bearing, though the closing compliance instructions ('Say so whenever you report one') read as policy boilerplate rather than tool semantics and add length.

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

Completeness4/5

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

For a 7-parameter, no-output-schema, no-annotation read tool, the description covers return fields, default behavior, filter composition, and reporting obligations. Missing only operational context such as permissions or whether signal history is bounded beyond the ~500 limit.

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, but the description adds real meaning: filters compose, strategy must be the full stored field with the 'visual_' prefix, and fromDate/toDate are an OR against days. The composition semantics and prefix caveat are not obvious from the schema alone.

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 ('Get user trade signals — strategy fires recorded by the daily evaluator') and immediately scopes it against the deprecated '/recent' endpoint variant. An agent can tell what it returns (signal history with entry/exit prices, R-multiples, contextHash, P&L) without opening the schema.

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?

Explicitly says to use this rather than the older '/recent' variant and explains why that one is harmful (hard-coded 5-day window silently hiding older fires). It also documents the no-filter default. It does not, however, distinguish this from the sibling dwlf_get_active_signals, leaving one obvious alternative unaddressed.

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