Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_position_size

Calculates the recommended position size from account size, risk percentage, entry price, and stop loss, so traders can size trades to a defined risk limit.

Instructions

Calculate recommended position size based on account size, risk percentage, entry price, and stop loss.

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": {
      "accountSize": "<accountSize>",
      "riskPercent": "<riskPercent>",
      "entryPrice": "<entryPrice>",
      "stopLoss": "<stopLoss>"
    },
    "name": "dwlf_position_size"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolNoTrading symbol for context
stopLossYesStop loss price
entryPriceYesPlanned entry price
accountSizeYesTotal account size in currency
riskPercentYesRisk percentage (e.g. 1 for 1%)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.77.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and does not meet it. It never states whether this is a pure read-only calculation or something that persists state, what formula or assumptions drive the recommendation, rounding/currency behavior, or what the response contains.

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?

A single well-formed sentence that front-loads the action and then lists the inputs, with no filler. It is efficient, though it could have spent the saved space on output behavior or usage conditions.

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?

For a small computational tool with a fully described schema and no annotations this is minimally adequate. However, with no output schema, the description should indicate what the recommendation looks like (share quantity, notional value, stop distance) and whether symbol affects the result, and it does not.

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 five parameters and the baseline is 3. The description restates the four required inputs without adding new meaning, and it omits any mention of the optional symbol parameter, which the schema labels as merely 'for context'.

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 gives a specific verb and resource ('Calculate recommended position size') and enumerates the four driving inputs, so the agent knows exactly what computation this tool performs. It stops short of differentiating from siblings, but none of the listed siblings appear to be competing calculators.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this tool versus alternatives (e.g. dwlf_create_trade or dwlf_create_trade_plan, which may also take sizing), and no stated prerequisites such as having the symbol or account configured. The agent must infer usage purely from the name and one sentence.

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