cancel_order
Cancel a working order in your Schwab account. Review order details first, then confirm to execute the cancellation.
Instructions
Cancel a live (working/pending) order in one Schwab account.
SAFETY CRITICAL / two-step confirmation flow. This tool NEVER cancels an order on the first call:
With confirm=False (the default, and how this must always be called the first time), the current order's details are fetched from Schwab (NOT cancelled) so the user can see exactly what they're about to cancel. You MUST show these details to the user in full and obtain their explicit confirmation before calling this tool again.
Only after the user has explicitly confirmed should this tool be called again with the same order_id and confirm=True. Only then is the order actually cancelled with Schwab.
Args: account_number: The plain Schwab account number as shown to the user (not the internal account hash). order_id: The Schwab order id to cancel. confirm: Must be False (default) for the initial lookup call, and True only on a follow-up call after the user has explicitly confirmed. Never default this to True.
Returns: If confirm is False: the current order's details, not cancelled. If confirm is True: confirmation that the order was cancelled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| order_id | Yes | ||
| account_number | Yes |