trade_close
A financial tool on the MetaTrader5 MCP server.
This record as markdown: /tools/emerzon-mt-data-mcp/trade-close.md
What trade_close does on MetaTrader5 MCP Server
AI agents use trade_close to commit financial operations through MetaTrader5 MCP Server, usually the final step of a payment, billing, or trading workflow. A call moves real money.
Why trade_close is rated Critical
On a MetaTrader5 trading server, 'trade_close' almost certainly closes an open trading position, which is a financial action that commits or settles financial obligations. The empty description lowers confidence slightly, but the context (MT5 trading server, sibling tools focused on market data and trading) and the tool name make this classification highly probable.
From the tool's definition Tool name 'trade_close' on a MetaTrader5 server with trading functionality; description is empty but name strongly implies closing a financial trade/position.
Attacks that exploit this kind of access
The rule that runs trade_close safely
PolicyLayer is an MCP gateway: it sits between your AI agents and MetaTrader5 MCP Server, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For trade_close, this is the rule to start with:
Any call to trade_close is blocked until a human approves it. The rest of the server keeps working.
The button opens the PolicyLayer dashboard: create your workspace, connect MetaTrader5 MCP Server, apply this rule, and every trade_close call is checked against it from then on.
Questions about trade_close
trade_close is a financial tool on the MetaTrader5 MCP Server MCP server. It is categorised as a Financial tool in the MetaTrader5 MCP Server MCP Server, which means it involves financial transactions. Block by default and require explicit approval.
Register the MetaTrader5 MCP Server MCP server in PolicyLayer and add a rule for trade_close: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches MetaTrader5 MCP Server. Nothing to install.
trade_close is a Financial tool with critical risk. Critical-risk tools should be blocked by default and only enabled with explicit human approval.
Yes. Add a rate_limit block to the trade_close rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for trade_close. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
trade_close is provided by the MetaTrader5 MCP Server MCP server (emerzon/mt-data-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on MetaTrader5 MCP Server, and thousands of servers like it.
Across the catalogue