Skip to main content
Glama
HostMT5 MCP server

HostMT5 MCP server

modify_position

Set a position's stop loss and take profit prices to manage risk and lock in gains; use 0 to remove either level.

Instructions

Set a position's stop loss and take profit (prices; 0 removes 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": {
      "account_id": "<account_id>",
      "ticket": "<ticket>"
    },
    "name": "modify_position"
  }
}

Input Schema

NameRequiredDescriptionDefault
slNo
tpNo
ticketYes
account_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.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. It usefully discloses that a value of 0 removes the protection, but says nothing about validation (e.g. SL/TP relative to current price), what happens on a nonexistent or closed ticket, required permissions, or reversibility of the change.

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?

One short sentence with the core action front-loaded and no filler. It is terse to the point of omitting useful detail, but nothing in the text is wasted.

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 4-parameter mutation tool with no annotations, no output schema, and zero schema description coverage, the description is thin. It covers the two price parameters but not identity parameters, error behavior, or return values, which an agent needs to call this correctly.

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 0%, so the description must compensate. It does explain the semantics of 'sl' and 'tp' (prices, 0 removes), but leaves 'ticket' and 'account_id' entirely to the schema, which only supplies titles and no descriptions.

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 ('Set') and resource ('a position's stop loss and take profit'), which is clearly distinct from siblings like close_position or pending_order. It doesn't explicitly name a sibling, but the operation is unambiguous.

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 implied: this modifies an existing position's SL/TP rather than opening or closing one. There is no explicit when-to-use/when-not guidance or reference to alternatives for protection orders, leaving the agent to infer the context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.