Skip to main content
Glama

fxapis — MetaTrader 5

Place one trade on many accounts

place_multi_account_order
DestructiveIdempotent

Places the same market order on many of the user's real broker accounts (or demo) at once and returns at once; follow it with get_multi_account_order. Confirm the accounts, symbol, side and volume with the user first. Example: {"account_ids": ["", ""], "instrument": "XAUUSD", "side": "buy", "volume": "0.01", "idempotency_key": ""}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sideYesbuy or sell.
labelNoA name for this multi-account order.
symbolNoThe symbol exactly as this broker names it, e.g. "EURUSD" — some brokers add a suffix such as "EURUSD.r".
volumeYesSize per account, unless weights overrides it for an account. In lots, preferably as a string: "0.01" is a micro lot, "1.00" a standard lot.
commentNoOptional note stored on the order. MT5 keeps the first 17 characters after our reference.
weightsNoOptional per-account size, keyed by account id, e.g. {"<account id>": "0.05"}.
stop_lossNoOptional stop loss for every account. An absolute price (e.g. "1.08450"), not a distance in pips or points.
execute_atNoWhen to send. Omit to send as soon as every account is online.
expires_atNoStop waiting for accounts after this.
instrumentNoInstead of symbol: an instrument from list_instruments, e.g. XAUUSD. Each account trades its own broker's symbol for it; the whole order is refused if any account's broker does not offer it.
account_idsYesThe accounts to trade on, one order each.
take_profitNoOptional take profit for every account. An absolute price (e.g. "1.08450"), not a distance in pips or points.
barrier_policyNoWhen some accounts are not online in time: release-ready (default) trades on those that are; all-or-nothing trades on none unless all are; wait keeps waiting until expires_at.
idempotency_keyYesA unique string you generate for THIS action, e.g. a fresh UUID. If a call fails or times out and you retry the same action, send the SAME key: fxapis then returns the first result instead of acting twice. Use a new key only for a genuinely new action.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
multi_account_orderYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructive/idempotent/openWorld, but the description adds genuinely useful behavior beyond them: the call 'returns at once' (asynchronous dispatch that must be polled via get_multi_account_order), and that it targets real broker accounts or demo. It stops short of 5 because it doesn't state what triggers the all-or-nothing refusal or partial-failure outcomes.

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?

Front-loads the action, then the follow-up call, then the confirmation requirement, then an example. Each sentence earns its place and there is no filler; the embedded JSON example makes the last clause dense but it is directly actionable.

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

Completeness4/5

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

An output schema exists so return values needn't be explained, and annotations cover the safety profile. The description still supplies the confirmation prerequisite and the polling follow-up, making it largely complete for a 14-parameter, high-impact multi-account mutation, though it could note error/partial-fill handling.

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

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3, and the description's concrete example adds value by showing the exact required-parameter shape (account_ids, instrument, side, volume, idempotency_key as a new uuid) in a realistic invocation. It does not add semantics for the optional advanced params (weights, barrier_policy, expires_at), which the schema handles.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (places), resource (market order), and a distinguishing scope (the same order on many of the user's real broker accounts at once). The 'many accounts at once' framing separates it from the single-account sibling place_market_order without needing to inspect either schema.

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

Usage Guidelines4/5

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

Gives a clear when-to-use context plus an explicit workflow and prerequisite: 'follow it with get_multi_account_order' and 'Confirm the accounts, symbol, side and volume with the user first.' It does not name the single-account alternative (place_market_order) or state a when-not-to-use, so it stops short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources