Execute quoted swap (real money)
execute_swapExecute a quoted swap from the user's agent wallet. Real money. Only after the user approves the quote. Buys are checked against the app-set limits. ⚠️ SPENDS REAL MONEY from the user's agent wallet; cannot be undone. Get an explicit yes on the exact amount and token BEFORE calling. Only pass a quote_id from get_swap_quote in this conversation, after the user saw its numbers and said yes. Never call it to 'check' anything. An expired quote needs a fresh quote, never the old id. When fill_pending is true, call get_swap_status(quote_id=...). AMOUNTS: quote the _ui fields (whole tokens); un-suffixed amounts are the smallest unit. Null = unknown, never zero; fill_pending: true = fill not booked yet (get_swap_status). A full sell cancels every resting TP/SL on the token, all lots (cancelled_order_ids; cancel_failed_order_ids / cancel_pending_order_ids + cancel_note are retried); a partial sell or a buy leaves them (null).
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": {
"quote_id": "<quote_id>"
},
"name": "execute_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| levels | No | Optional. Your chart levels as numbers; images are not accepted. Stored with the trade and shown back to you. | |
| thesis | No | Optional. Your own note on this trade, 2–4 lines: why this coin, why now, what breaks it. Stored with the trade and shown back to you; ≤500 chars. | |
| quote_id | Yes | `quote_id` from a recent `get_swap_quote` response. | |
| confidence | No | Optional. How sure you are. | |
| expected_hold | No | Optional. How long you expect to hold. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||