clean_all_playlists
Scan all Spotify playlists for duplicate tracks, then report or remove them while keeping the first occurrence. Bulk deletions require one confirmation before any playlist is changed.
Instructions
Scan every playlist in your library for duplicate items (repeated URIs, and on opt-in same-song copies under different URIs). Reports per-playlist findings by default; pass apply=true to remove them (keeps the first occurrence of each group). Bulk removals ask for one confirmation before anything is deleted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | false (default): report only — nothing is changed. true: execute the cleanup across all playlists with duplicates. | |
| 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 |
| include_relinked | No | Also count/collapse same-song entries under different URIs (relinks/remasters). |