Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_create_strategy

Creates a new trading strategy by name, optional description, and JSON body so you can compile it, activate its symbols, and run backtests that generate signals.

Instructions

⚠️ Create a new strategy. CRITICAL WORKFLOW: 1) Create strategy → 2) Compile → 3) MUST call dwlf_activate_strategy_symbols (or strategy will NEVER generate signals!) → 4) Run backtest. Without step 3, backtests return 0 trades. The strategy exists but is invisible to the evaluation engine until symbols are activated. Always activate symbols immediately after creation.

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

Input Schema

NameRequiredDescriptionDefault
nameYesStrategy name
bodyJsonNoFull strategy body as JSON string (nodes, edges, signals). Parse before sending.
descriptionNoStrategy description

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.77.0

TDQS

A4/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 it delivers the single most important non-obvious behavior: a newly created strategy is invisible to the evaluation engine until symbols are activated. It does not cover other traits an agent would want, such as permission requirements, name-collision/validation behavior, or whether creation is idempotent.

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 warning prefix and numbered workflow are well front-loaded and scannable. The final sentence ('Always activate symbols immediately after creation') largely restates step 3, which is mild redundancy but not damaging.

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

Completeness3/5

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

There is no output schema and no annotations, and the description never says what creation returns — notably the strategy identifier that the subsequent compile and activate calls presumably require. For a tool that anchors a chained workflow, that omission leaves a real gap despite the excellent sequencing guidance.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents name, bodyJson, and description. The description adds no format, shape, or validation detail about bodyJson (nodes/edges/signals) beyond what the schema states, so baseline 3 applies.

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 opens with a specific verb and resource ('Create a new strategy') and immediately situates it in a multi-step pipeline, which implicitly separates it from siblings like dwlf_update_strategy or dwlf_delete_strategy. It never explicitly names the compile tool (only the bare word 'Compile'), so differentiation is strong but not fully spelled out.

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?

It lays out an explicit 4-step sequence with the exact tool to call next (dwlf_activate_strategy_symbols) and states the consequence of skipping it ('strategy will NEVER generate signals', 'backtests return 0 trades'). This is an unusually strong when-to-use and what-happens-otherwise signal for an agent.

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