undo_mutation
Reverse a specific Spotify library or playlist mutation using its receipt ID: adds/saves are removed, removals are re-added. Preview by default, then execute with confirmation.
Instructions
Undo a specific mutation by receipt ID. Inverts the recorded direction: an add/save is undone by removing, a removal by re-adding (playlist items or library). A playlist add undo removes only the rows it created, refusing when no row positions are recorded. The result reflects the refetched post-state. Non-reversible kinds return not reversible. Executing needs confirmation and is refused when the client cannot prompt (SPOTIFY_MCP_CONFIRM=never bypasses).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Preview only, and the default: pass dry_run: false to execute the rollback. | |
| receipt_id | Yes | Receipt ID to undo | |
| response_format | No | 'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API object | concise |