Rebalance plan
rebalance_planBuild a tax-aware rebalancing trade list that brings holdings back to the target model or custom allocation, optionally investing new cash. Sells come from tax-advantaged accounts first, then taxable lots with losses, then the smallest gains; proceeds stay in the account that raised them. Returns each trade (account, symbol, dollars, estimated shares, estimated realized gain and tax), totals, the allocation after the trades, wash-sale and concentration warnings, and notes. Takes the same holdings, prices and target inputs as portfolio_review; missing prices are fetched from live quotes. Trades are estimates for advisor review, not orders.
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": "rebalance_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| band | No | Rebalancing band in percentage points (default 5): an asset class further than this from target is out of band. | |
| force | No | Rebalance to target even when every class is within the band (default false). | |
| model | No | Target model portfolio: conservative (20% stocks), moderately_conservative (40% stocks), moderate (60% stocks), growth (75% stocks), aggressive (90% stocks). Default moderate. risk_profile_score maps a client to one. | |
| prices | No | Latest price per share by symbol, e.g. {"VTI": 301.25}. CASH and money-market funds are priced at $1. Symbols without a price here are fetched from live quotes. | |
| target | No | Custom target allocation in percent, totalling 100. Use instead of model. | |
| newCash | No | New money to invest, in dollars (default 0). | |
| holdings | No | Holdings as objects, instead of holdingsCsv. Up to 300 rows; one row per lot gives the best tax estimates. | |
| minTrade | No | Smallest trade in dollars (default 100). | |
| taxRates | No | Capital-gains rates in percent used to estimate tax (default 24 short-term, 15 long-term). | |
| holdingsCsv | No | Holdings as CSV text in the LunaTerminal import format: a header row with at least symbol and shares; the full header is account,account_type,symbol,shares,cost_basis,asset_class,acquired. cost_basis is the row's total dollars, acquired is YYYY-MM-DD. Example: account,account_type,symbol,shares,cost_basis,asset_class,acquired Joint brokerage,taxable,VTI,120,24000,,2021-03-15 Joint brokerage,taxable,AAPL,150,18000,,2019-06-01 Joint brokerage,taxable,CASH,8000,8000,, Up to 300 rows and 128 KB. Send this or holdings, not both. | |
| newCashAccount | No | Account name that receives the new cash (default: the first taxable account). |