Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_close_trade

Close an open trade by specifying its trade ID and exit price, with an optional exit timestamp defaulting to now.

Instructions

Close an open trade by specifying the exit price.

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": {
      "tradeId": "<tradeId>",
      "exitPrice": "<exitPrice>"
    },
    "name": "dwlf_close_trade"
  }
}

Input Schema

NameRequiredDescriptionDefault
exitAtNoExit timestamp (ISO 8601, defaults to now)
tradeIdYesTrade ID to close
exitPriceYesExit price

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.77.0

TDQS

B3.1/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, yet it discloses nothing about side effects beyond the bare mutation. It does not say whether closing is reversible, whether realized P&L or trade state is computed, whether permissions are required, 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 front-loaded sentence with the action verb first and no filler. It is efficient, though its brevity contributes to the gaps in behavior and guidance rather than reflecting complete coverage.

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

Completeness2/5

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

For a state-changing financial operation with zero annotation coverage and no output schema, the definition is thin. An agent knows what to send but not the consequences, error conditions (e.g., closing an already-closed trade), or expected result.

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%, with all three parameters documented in the schema, including the 'exitAt defaults to now' detail. The description mentions the exit price but adds no syntax, defaults, or constraints beyond what the schema already provides, 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?

States a specific verb and resource ('Close an open trade') plus the key input ('exit price'), so the action is unambiguous. It does not distinguish this from nearby siblings such as dwlf_delete_trade, dwlf_update_trade, or dwlf_confirm_trade, which an agent could easily confuse with closing a position.

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

Usage Guidelines3/5

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

Usage is only implied by the phrase 'open trade', which signals a precondition (the trade must currently be open). No explicit when-to-use, when-not-to-use, or alternative tool is named, so an agent must infer that this is not a delete or an amendment.

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