playlist_intersect
Compute the set intersection of 2–10 Spotify playlists: preview common tracks read-only, or commit replacing a target playlist's contents atomically.
Instructions
Keep only the tracks present in ALL of 2–10 playlists, written as one atomic replace — the missing set op (union/subtract/XOR exist). Without a target it reports the intersection read-only. Quota: 🟢 N GETs + 1 PUT when committing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dedupe | No | Dedupe within the RESULT sequence: keep the first or last occurrence, or none. Default none | none |
| dry_run | No | Preview only: perform the read side and return a PLAN without changing anything. Default true — pass false to commit. | |
| max_results | No | Max items to return (default: SPOTIFY_MCP_MAX_ITEMS env or 50) | |
| response_format | No | 'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API object | concise |
| target_playlist_id | No | Existing playlist (ID or spotify:playlist: URI) to ATOMICALLY OVERWRITE with the result. Omit to compute read-only. | |
| source_playlist_ids | Yes | Playlists to intersect, as IDs or spotify:playlist: URIs (2–10) |