Search Spotify
searchLook up Spotify track, artist, album, or playlist IDs by name for other tools; returns key fields, URLs, and optional lifetime track play counts.
Instructions
Search the Spotify catalog by name to find ids for the other tools. type picks what to search: tracks, artists, albums or playlists. Returns up to limit hits (max 20) with id, name, key fields and open.spotify.com URL. For track searches, include_play_counts adds each hit's lifetime play count.
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": {
"query": "<query>"
},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | What to search for. | tracks |
| limit | No | Number of results (1-20). | |
| query | Yes | Search text, e.g. 'Bad Bunny' or 'blinding lights the weeknd'. | |
| include_play_counts | No | Track searches only: add lifetime play counts (slightly slower). |