Plan Portfolio Drift & Build Spend-Capped 0.25% Multi-DEX Swap Calldata
plan_and_build_guarded_rebalance_swapReads live ETH + USDC wallet balances, enforces maxSpendCapUsd, and assembles ready-to-sign non-custodial multi-DEX swap calldata saving 71% vs standard wallet swap fees.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "plan_and_build_guarded_rebalance_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainId | No | EVM chain ID (default '8453') | |
| targetEthPct | No | Target ETH allocation % from 0 to 100 (default 50) | |
| walletAddress | No | Agent or user 0x wallet address | |
| maxSpendCapUsd | No | Max USD allowed for this rebalance leg (default 500) |