Rebalance plan
rebalance_planGiven a wallet and target weights (e.g. 50% ETH on Ethereum, 50% USDC on Base), compute the swaps needed from its current holdings, each with a LIVE SwapChan quote (quoteId → build_swap_tx) and a prefilled swapUrl. Unpriced holdings are left alone. Result includes display markdown with chan images: show it to the user. How to combine this with the other tools: swapchan_playbook (workflows: find-money, best-swap, rebalance, revoke-approvals, bridge-stuck, token-safety, recover-old-wallet).
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": {
"address": "<address>",
"targets": "<targets>"
},
"name": "rebalance_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Wallet address (EVM 0x…, Solana, Tron T…) or a name (vitalik.eth, jesse.base.eth, toly.sol) | |
| targets | Yes | ||
| minTradeUsd | No |