Add to Playlist
add_to_playlistπ΄ WRITE β add one or more STOCKS/assets to a playlist (batch, idempotent). Each entry may be an exact
Ava Advisor ticker OR a name/symbol the server resolves (any asset class: stock/ETF/commodity/crypto/FX). An
ambiguous name (e.g. same name across markets) returns a needs_confirmation reconfirm β pick the exact ticker
and re-call. playlist_id from list_playlists. Re-adding an existing ticker is a harmless no-op. Returns
{added, skipped, item_count} β β οΈ RELAY any skipped to the user; never drop it silently.
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": {
"playlist_id": "<playlist_id>",
"tickers": "<tickers>"
},
"name": "add_to_playlist"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | OPTIONAL but RECOMMENDED β paste the user's FULL request VERBATIM (any language: 'ΰΈΰΈΰΈ£ΰΈ²ΰΈΰΈ²ΰΈΰΈ₯ΰΉΰΈ‘ΰΉ apple', 'compare Apple and Microsoft stock'). The server uses it to disambiguate which candidate each `ticker` entity means (the apple COMPANY vs the fruit COMMODITY; which Samsung). One context per call, shared by all tickers here. | |
| tickers | Yes | Stocks to add β an EXACT Ava Advisor ticker (`AAPL.US`, `BTC-USD.CC`) OR a plain NAME/symbol ('Apple', 'ΰΈΰΈ±ΰΈ‘ΰΈΰΈΈΰΈ', 'btcusd') which the SERVER resolves for you (any asset class). An ambiguous/same-name-across-markets one comes back as a reconfirm to pick from. | |
| playlist_id | Yes | The playlist's id (from list_playlists). |