playlist_keep_artist
Keep only one artist's tracks in a Spotify playlist and remove everything else, optionally retaining podcast episodes. Preview with dry-run before applying.
Instructions
Inverse filter: keep ONLY tracks by one artist in a playlist and drop everything else. Optionally keep podcast episodes too (they have no artist). One atomic replace. Quota: 🟢 2 GETs + 1 PUT.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| artist | Yes | Artist name (case-insensitive) or artist ID / spotify:artist: URI | |
| dry_run | No | Preview only: perform the read side and return a PLAN without changing anything. Pass false to commit. Default true | |
| max_results | No | Max items to return (default: SPOTIFY_MCP_MAX_ITEMS env or 50) | |
| playlist_id | Yes | Playlist to edit, as ID or spotify:playlist: URI | |
| keep_episodes | No | Also keep podcast episodes (they have no artist). Default false | |
| response_format | No | 'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API object | concise |