Skip to main content
Glama
HostMT5 MCP server

HostMT5 MCP server

pending_order

Places buy/sell limit or stop pending orders on a live MetaTrader 5 account, scheduling entries at specified prices with optional stop loss and take profit.

Instructions

Place a pending order. kind: 'buy limit', 'sell limit', 'buy stop' or 'sell stop'. 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>",
      "kind": "<kind>",
      "volume": "<volume>",
      "price": "<price>"
    },
    "name": "pending_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
slNo
tpNo
kindYes
priceYes
symbolYes
volumeYes
account_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden. It does disclose one critical trait — this creates a REAL order on a live account — but omits permissions, persistence until the price is hit, what happens to sl/tp defaults, and whether the order can later be modified or cancelled.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short, front-loaded sentences with no filler. The order type enumeration and the live-account warning are both stated compactly and immediately.

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?

This is a live trading mutation with seven parameters, zero schema descriptions, and no annotations or output schema. The description covers only the order kind and the live-account risk, leaving the agent without the parameter semantics and lifecycle details needed to place the order safely.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/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 for seven undocumented parameters. It usefully enumerates the valid kind values, which the schema itself does not, but leaves sl, tp, price, volume, account_id, and symbol entirely unexplained, including units and default-zero stop-loss behavior.

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 states a specific verb and resource: 'Place a pending order,' and enumerates the four valid order kinds. It distinguishes the tool from immediate-execution siblings only implicitly through the word 'pending,' not by naming the alternative.

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?

The description gives no explicit when-to-use or when-not-to-use guidance. It does not tell the agent to prefer market_order for immediate fills or cancel_order if the pending order should be withdrawn, leaving the choice to inference from the tool name and the word 'pending.'

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