create_smart_playlist
Create playlists from your Spotify listening history: top tracks, recently played, or saved songs, with artist filtering and one-track-per-artist options. Preview results before saving.
Instructions
Create a playlist from rules over your own listening data: top tracks (by time range), recently played, or saved tracks — with optional artist-name filtering and a one-track-per-artist toggle. When source=saved_tracks the pool is the newest N saved tracks (N=scan_cap, default fetchAllCap=500) and truncation is reported. No deprecated recommendations endpoints involved. dry_run previews the exact track list without creating anything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Playlist name | |
| limit | No | How many tracks the playlist should hold (after filters). Default 30. | |
| public | No | Whether the playlist is public | |
| source | No | Where candidates come from: your top tracks by time_range, your recently played history, or your saved (liked) tracks. | top_tracks |
| dry_run | No | Preview only: validate inputs and describe exactly what would change without performing it | |
| scan_cap | No | How many saved tracks to scan when source=saved_tracks; default SPOTIFY_MCP_FETCH_ALL_CAP (500). Reports truncation when hit. | |
| time_range | No | ~4 weeks / ~6 months / all time. Default: medium_term | |
| description | No | Playlist description | |
| artist_filter | No | Only include tracks whose artist name contains any of these substrings (case-insensitive), e.g. ["Radiohead", "Miles Davis"]. | |
| unique_artists | No | Keep at most one track per primary artist. Default false. |