plan_rebalance
Read-only rebalance planner toward target weights. Returns suggested legs (swap, yield_deposit, yield_withdraw) without executing. Use propose_* + confirm_proposal to act.
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": {
"targets": "<targets>"
},
"name": "plan_rebalance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targets | Yes | Target allocation. Each row: { label, weightPercent, kind: cash|yield|token|symbol, symbol? }. Example: 40% cash, 10% yield, 30% UNI, 20% other tokens. | |
| minLegUsd | No | Minimum leg size in USD (default 1) | |
| driftThresholdPercent | No | Ignore drift below this % (default 5) |