Create or Rename Portfolio
save_portfolioCreate a portfolio called name, or rename the portfolio given to name. make_default makes it the default. A new portfolio is empty; add holdings with add_portfolio_stocks. Creates a new list only when the user asks for a new one. If the user names a list that does not match exactly, use the existing list they clearly mean, or ask; never create a list because a name was not found.
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": {
"name": "<name>"
},
"name": "save_portfolio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The portfolio's new name (1-60 characters). | |
| portfolio | No | Rename only: the portfolio's name or id, from get_user_portfolio. Omit to create. | |
| make_default | No | Make this portfolio the default. |