Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_create_trade

Log a new trade in the journal with symbol, direction, entry price, and optional stop loss/take profit; add structured confirmReasons so the rationale feeds decision analytics.

Instructions

Log a new trade in the journal. Specify symbol, direction, entry price, and optional stop loss / take profit. STRONGLY RECOMMENDED: pass confirmReasons[] — WHY the trade is being taken, in the same structured vocabulary dwlf_confirm_trade uses, so a directly-logged trade feeds the byConfirmReason decision analytics exactly like a confirmed planned one. Valid confirmReasons: fresh_cycle_entry, trendline_break_confirmed, cluster_confluence, regime_aligned, risk_reward_attractive, adding_to_winner, other. confirmNote is required when a reason is "other". Reasons are optional (untagged trades still log) but every untagged entry is decision-analytics data lost — and unlike a skip, it cannot be reconstructed later. reasonText is the free-text thesis and does NOT substitute: no rollup can read it.

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": {
      "symbol": "<symbol>",
      "direction": "<direction>",
      "entryPrice": "<entryPrice>"
    },
    "name": "dwlf_create_trade"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYesTrading symbol (e.g. BTC, TSLA, RIOT)
assetTypeNoAsset type
directionYesTrade direction
timeframeNoTimeframe (e.g. 1d, 4h, 1h)
entryPriceYesEntry price
reasonTextNoFree-text trade reasoning / thesis. Not machine-readable — use confirmReasons for analytics.
confirmNoteNoFree-text detail on the entry rationale. REQUIRED when a reason is "other". Max 2000 chars.
initialStopNoStop loss price
isPaperTradeNoWhether this is a paper trade (default: false)
positionSizeNoPosition size (quantity)
confirmReasonsNoWHY this trade is being taken. Valid: fresh_cycle_entry, trendline_break_confirmed, cluster_confluence, regime_aligned, risk_reward_attractive, adding_to_winner, other.
initialTakeProfitNoTake profit price

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.77.0

TDQS

A3.9/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 behavioral burden and does add real context: reasons are optional and do not block logging, an "other" reason mandates confirmNote, and untagged entries cause irreversible analytics loss that cannot be reconstructed later. It does not cover mutation side effects such as duplicate handling, what the response returns, or whether validation errors reject the whole trade.

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 essential action is front-loaded in the first sentence, followed by the recommended practice and its rationale. The middle passage is somewhat repetitive in stressing the same data-loss point twice ("data lost" and "cannot be reconstructed later"), but each sentence still carries decision-relevant information.

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 12-parameter mutation tool with no annotations and no output schema, the description covers the one non-obvious behavioral choice (confirmReasons vs reasonText) and the confirmNote dependency thoroughly. Gaps are minor: it says nothing about success behavior or how the tool interacts with dwlf_create_trade_plan and dwlf_confirm_trade when a plan already exists.

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 all 12 parameters, including the confirmReasons vocabulary and the confirmNote-required-for-other rule. The description reinforces the relative value of confirmReasons versus reasonText, which is genuinely useful, but the schema's own reasonText description already says "Not machine-readable — use confirmReasons for analytics," so the added meaning is modest over the baseline 3.

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?

Opens with a specific verb+resource ("Log a new trade in the journal") and immediately names the fields involved, so the operation is unambiguous. It implicitly contrasts a "directly-logged trade" with a "confirmed planned one" referencing dwlf_confirm_trade, but never states plainly when to prefer one tool over the other, so sibling differentiation is oblique rather than explicit.

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?

Gives clear in-context guidance for the recommended path: pass confirmReasons using the same vocabulary as dwlf_confirm_trade, with confirmNote required for "other", and explicitly notes reasons are optional so untagged trades still succeed. What is missing is a when-not-to-use statement — e.g. that an existing plan should go through dwlf_confirm_trade rather than being re-logged here.

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