Skip to main content
Glama

fxapis — MetaTrader 5

Cancel a multi-account order

cancel_multi_account_order
DestructiveIdempotent

Calls off a multi-account order on the user's real broker accounts (or demo) before anything is sent. Once orders went out, close the positions instead. Example: {"multi_account_order_id": "", "idempotency_key": ""}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
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.
multi_account_order_idYesThe multi-account order id.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
multi_account_orderYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the safety profile is covered. The description adds state-dependent context not in the annotations: it only works before anything is sent, and after dispatch the positions must be closed instead. It does not restate the idempotency-retry contract, which is already in the schema.

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?

Two tight prose sentences front-load the state constraint, followed by a compact call example. Every element earns its place with no filler.

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

Completeness5/5

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

With an output schema present, annotations covering safety and idempotency, and full parameter documentation, the description only needs to supply the state-transition rule and an example — both are provided.

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%, and the idempotency_key description in the schema is richer than anything the tool description offers. The inline example restates the two existing parameters without adding syntax or constraints, so the baseline 3 applies.

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 ('calls off') on a specific resource ('multi-account order') and scopes it to the user's real/demo broker accounts before dispatch. An agent can distinguish this from close_position without opening the schema.

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

Usage Guidelines5/5

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

Explicitly names the alternative path: 'Once orders went out, close the positions instead.' That is a clear when-to-use-this vs when-to-use-the-sibling rule, which most definitions lack.

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