optimize_capital_gains
Suggest which investment lots to sell to minimize capital gains tax. Analyzes holding periods, tax brackets, loss harvesting, and wash sale rules.
Instructions
Analyze investment lots and suggest which to sell to minimize tax. Considers long-term vs short-term, 0% bracket space, loss harvesting, and wash sale rules.
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": {
"taxYear": "<taxYear>",
"filingStatus": "<filingStatus>",
"ordinaryIncome": "<ordinaryIncome>",
"lots": "<lots>"
},
"name": "optimize_capital_gains"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lots | Yes | Investment lots to analyze | |
| taxYear | Yes | Tax year | |
| filingStatus | Yes | ||
| ordinaryIncome | Yes | Ordinary income (W-2, SE, interest, etc.) before investment sales | |
| targetGainOrLoss | No | Target net gain/loss to realize (negative for harvesting losses) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| error | No | ||
| isError | Yes |