Tax-Loss Harvest Candidates
tax_loss_harvest_candidatesPositions sitting at an unrealized loss in a pasted positions export, largest loss first, with the total; given a transactions export too, flags any bought in the last 30 days (wash-sale risk on a sale). Example questions: "What can I tax-loss harvest?"; "Which of my positions are losers?"; "Any losses to offset my gains this year?"
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": {
"positions_csv": "<positions_csv>"
},
"name": "tax_loss_harvest_candidates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| positions_csv | Yes | The positions/portfolio CSV from the broker, pasted as text (symbol, quantity, market value or last price; a gain or cost-basis column for gains and losses) | |
| transactions_csv | No | The transactions or gains/losses CSV from the broker, pasted as text (E*TRADE download, this repo's CSV, or plain columns date, action, symbol, quantity, price, fee). Optional: flags recent buys for the 30-day rule |