Close an open Drift BET prediction market position via your configured Drift Gateway. Submits a reduce-only market order to exit at the best available price. Requires DRIFT_GATEWAY_URL to be set.
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | string | required | Market symbol of the position to close (e.g. 'NBAFINALS25-OKC-BET') |
| amountUsdc | string | optional | Amount in USDC to close. Omit to close the full position. |
// MCP tool call
{
"name": "drift_close_position",
"arguments": {
"symbol": "",
"amountUsdc": ""
}
}
// Add to your MCP config — this tool is immediately available
{
"mcpServers": {
"toolbooth": { "url": "https://toolbooth.io/mcp" }
}
}