Skip to main content
Glama
HostMT5 MCP server

HostMT5 MCP server

market_order

Execute buy or sell positions at current market price on a specified MT5 live account, with optional stop-loss and take-profit levels.

Instructions

Open a position at market. side: buy or sell. sl/tp are prices (0 = none). REAL order on a live account.

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>",
      "symbol": "<symbol>",
      "side": "<side>",
      "volume": "<volume>"
    },
    "name": "market_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
slNo
tpNo
sideYes
symbolYes
volumeYes
commentNo
account_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/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 does add one crucial disclosure: this is a "REAL order on a live account," signaling genuine financial consequence. It omits permissions required, what happens on failure, whether the call is idempotent, 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?

Three terse, front-loaded sentences with no filler; the safety warning is placed prominently. The fragmented style is efficient, though slightly clipped at the cost of some clarity.

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 mutation tool with 7 parameters, no annotations, and no output schema, the description leaves significant gaps: symbol format, volume units, and error/return behavior are all unstated. The live-account warning is valuable but insufficient for correct invocation of a high-stakes trading call.

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 coverage is 0% across 7 parameters, so the description must compensate and only partially does: it defines side values (buy/sell) and clarifies sl/tp are prices with 0 meaning none. It says nothing about symbol format, volume units, account_id, or the comment field.

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?

"Open a position at market" gives a specific verb (open) and resource (position) with the execution mode stated, which implicitly separates it from pending_order. It does not explicitly name alternatives, but an agent can tell this is an immediate-entry order tool.

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?

The phrase "at market" implies immediate execution as opposed to a pending/limit order, giving implied guidance. However, it never states when to prefer this over pending_order, nor any prerequisites such as account state or symbol validity.

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