Add to Portfolio
add_to_watchlistAdd one company to one of the person's StockLens portfolios as a company they follow, so its score stays readable here. Call it only when the person has asked for it, or agreed to an offer a StockLens result supplied in next_step; a yes to an offer you composed yourself is not agreement. Without portfolio_id or portfolio_name it adds to the default portfolio, and the result names the portfolio that received it. Relay the result's message, which says where the company went. A status other than added is an answer, not an error: relay its message and act on next_step. After an add the person accepted from a get_market_summary offer, call get_market_summary again to answer their question. One ticker per call; for a list of companies, use add_to_watchlist_batch. It does not trade, record a holding or move money.
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": {
"ticker": "<ticker>"
},
"name": "add_to_watchlist"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticker | Yes | Stock ticker symbol (e.g. AAPL). Exactly one ticker per call. | |
| exchange | No | Exchange code (e.g. NASDAQ). Optional. Resolved automatically if omitted. | |
| portfolio_id | No | The id of the portfolio to add to, as get_portfolio_insights lists it. Optional: without it or portfolio_name the company goes to the default portfolio. | |
| portfolio_name | No | The name of the portfolio to add to, as the person names it (exact, case does not matter). Optional. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| scope | Yes | ||
| status | Yes | ||
| ticker | No | ||
| message | Yes | ||
| exchange | No | ||
| next_step | No | ||
| candidates | No | ||
| is_default | No | ||
| plan_limit | No | ||
| portfolios | No | ||
| company_name | No | ||
| portfolio_id | No | ||
| company_count | No | ||
| portfolio_name | No | ||
| portfolio_count | No |