Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_describe_strategy_nodes

Describes visual-strategy node types and their implicit runtime parameters, revealing engine defaults hidden from the graph and clarifying what SL, TP, or logic nodes do at backtest or live time.

Instructions

Describe the visual-strategy node types and their (currently-implicit) runtime parameters. Use this to understand what an SL/TP/logic node will actually do at backtest/live time, including the engine defaults that are NOT visible in the visual graph today. Optional nodeType filters to a single node (e.g. sl_below_recent_low); optional category filters to a class (stopLoss / takeProfit / signal / logic / cancellation / condition / exit). When honoredByExecutor: false on a param, the listed default is the only value the engine uses today regardless of what the visual node's data field says — this is what the SL-resolver bug in PR#220 exposed. honoredByExecutor: null means not verified (catalogue parameters reach the compiled strategy; their effect on the run is not checked here). Indicator/event condition nodes come from the platform's node catalogue (GET /v2/node-types, cached up to 15 minutes; an unfiltered call lists them by name, ask by nodeType or category "condition" for detail), the same list the strategy builder offers, marked source: "catalogue" with label, direction, timeframes (the only ones the node fires on) and catalogueCategory. A node with engineIgnored is one the engine cannot evaluate: do not use it. engineIgnores is the raw rule list ({ id } or { prefix }, with a reason). catalogueError means the catalogue could not be read and only the static nodes are listed.

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

Input Schema

NameRequiredDescriptionDefault
categoryNoReturn only nodes in this category.
nodeTypeNoGive only this one node (e.g. `sl_below_recent_low`).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.77.0

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so well: it discloses catalogue sourcing (GET /v2/node-types), a 15-minute cache, and three distinct failure/degradation states (engineIgnored, engineIgnores, catalogueError). It also flags the subtle double meaning of honoredByExecutor (false = default always wins; null = unverified) and explains why that matters, citing the PR#220 SL-resolver bug.

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?

Purpose and use come first, then filters, then field semantics, so it is properly front-loaded and every sentence carries non-redundant information. It is, however, a single dense block with stacked parentheticals and backticked identifiers that could be split for faster scanning.

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 the response, and it does: source, label, direction, timeframes, catalogueCategory, engineIgnored/engineIgnores, catalogueError, honoredByExecutor. Combined with the caching and catalogue-source disclosure, an agent has enough to invoke and interpret this tool correctly.

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 above that by enumerating the full category enum vocabulary in prose, giving a concrete nodeType example, and explaining that the filter also controls response verbosity (names only vs. detail). It does not restate anything that isn't already usefully anchored in the schema.

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

Purpose4/5

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

The description names a specific verb and resource ('Describe the visual-strategy node types and their runtime parameters') and scopes it precisely to what an SL/TP/logic node does at backtest/live time. It is clearly distinct from strategy-mutation siblings like dwlf_create_strategy or dwlf_compile_strategy, though it never explicitly contrasts itself with any named sibling.

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?

'Use this to understand what an SL/TP/logic node will actually do at backtest/live time' gives an explicit triggering context, and the filter guidance (unfiltered lists by name; ask by nodeType or category 'condition' for detail) tells the agent how to escalate. No explicit when-not-to-use or named alternative tool is given, which keeps it below 5.

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