close_symbol
Close all trading positions for a specified symbol using the XBTFX MCP Trading Server. This action requires user confirmation before execution.
Instructions
Close all positions for a specific symbol. Destructive — confirm with user first. Costs 10 weight.
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": {
"symbol": "<symbol>"
},
"name": "close_symbol"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Symbol to close all positions for, e.g. EURUSD | |
| comment | No | Applied to all close operations | |
| idempotency_key | No | Unique key to prevent duplicate. Auto-generated if omitted. |