Create a Spotify playlist
create_playlistCreates a new empty Spotify playlist for the signed-in user; use it when the user asks for a new playlist, not to extend an existing one.
Instructions
Create a new, empty playlist owned by the signed-in user.
WRITE: this changes the user's Spotify account immediately and cannot be undone by these
tools. Calling it twice creates two playlists. Only call it when the user asked for a new
playlist; to extend an existing one, use list_my_playlists instead.
The returned id is the playlist_id for add_tracks_to_playlist. Check warnings and tell
the user about them before adding tracks.
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": "create_playlist"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Playlist name shown in Spotify. | |
| public | No | Requested visibility (default private). Spotify does not reliably honour public=false; the result's `public` and `warnings` report what Spotify actually stored. | |
| description | No | Optional playlist description. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Spotify playlist ID. Pass this to add_tracks_to_playlist.playlist_id. | |
| name | Yes | ||
| owner | Yes | Owner's display name (or user ID if there is none). | |
| public | Yes | ||
| can_edit | Yes | True if the current user owns or collaborates on the playlist, i.e. tracks can be added. | |
| warnings | No | Differences between what was requested and what Spotify actually stored. | |
| item_count | Yes | Number of tracks/episodes, if Spotify reports it. |