update_portfolio_holding
Update a portfolio holding's name, symbol, currency, crypto status, or note; renames cascade to linked transactions automatically.
Instructions
Update a portfolio holding's name, symbol, currency, isCrypto, or note. Renames cascade to all transactions automatically because get_portfolio_analysis groups by FK, not by string. NOTE: the legacy account parameter is REFUSED (issue #99) — moving a holding to a different account would leave stale holding_accounts rows and broken transaction account attribution. To move shares between accounts use record_transfer (in-kind); to re-attribute existing transactions update them individually.
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": {
"holding": "<holding>"
},
"name": "update_portfolio_holding"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| note | No | ||
| symbol | No | Pass empty string to clear | |
| account | No | REFUSED (issue #99): account moves create stale state. Use record_transfer (in-kind) instead. | |
| holding | Yes | Current holding name OR symbol (fuzzy matched) | |
| currency | No | ||
| isCrypto | No |