clean_all_playlists
Scan every playlist in your library for duplicate tracks and remove repeats when confirmed. Preview findings first, then clean up playlists to keep only the first occurrence of each song.
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 | Deprecated alias for dry_run — prefer dry_run. false (default): report only. true: execute the cleanup across all playlists with duplicates. If both are given, dry_run wins. | |
| dry_run | No | Preview only — when true, nothing is changed; when false via dry_run=false or apply=true, executes the cleanup | |
| 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). |