playlist_subtract
Remove tracks from a base playlist that also appear in other playlists by rewriting it with only the remaining tracks.
Instructions
Remove tracks of B..N from A by REWRITING A: one PUT replaces every row with the ones that survive, so any row of A absent from the union is DELETED, and the rows that remain are re-written in order. Subtracting every track empties A via one PUT with an empty uris array (Spotify's documented clear); a reply with no snapshot_id reports unconfirmed, not ok. Quota: N GETs + PUT.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"base_playlist_id": "<base_playlist_id>"
},
"name": "playlist_subtract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Source page size, 1–100. Default: 100 | |
| dry_run | No | Preview only: validate inputs and describe exactly what would change without performing it | |
| scan_cap | No | Maximum source rows to scan; bounded by SPOTIFY_MCP_FETCH_ALL_CAP | |
| playlists | No | Canonical ordered playlists (1–10) | |
| 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 |
| base_playlist_id | Yes | Base playlist ID, URI, or URL. Required; list only the subtraction sources in playlists. |