sort_playlist_apply
Reorder a Spotify playlist in place by name, artist, album, duration, added-at date, or release era. Preview the plan with dry-run mode, then commit the change with an atomic replace after backing up the original items.
Instructions
Sort a playlist in place by name, artist, album, duration, added-at date or release era: backs up the current items to a local file first, then rewrites via one atomic replace. dry_run=true (default) previews only. Quota: 🟢 GET + 1 local write + 1 PUT.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Preview only: perform the read side and return a PLAN without changing anything. Pass false to commit. Default true | |
| sort_by | No | Sort key. Default name | |
| direction | No | Sort direction. Default asc | |
| max_results | No | Max items to return (default: SPOTIFY_MCP_MAX_ITEMS env or 50) | |
| playlist_id | Yes | Playlist to sort (ID or spotify:playlist: URI) | |
| response_format | No | 'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API object | concise |