# undo_preview

Dry-run for undo_mutation: shows exactly what a receipt-driven revert WOULD do (diff of

Agent View of the PolicyLayer registry record for `undo_preview`. HTML page: https://policylayer.com/tools/novalux12-spotify-mcp/undo-preview

## Facts

- Tool: `undo_preview`
- Server: Spotify (`@novalux12/spotify-mcp`) — https://policylayer.com/tools/novalux12-spotify-mcp.md
- Install: `npx -y @novalux12/spotify-mcp`
- Homepage: https://github.com/NovaLux12/spotify-mcp-server
- Risk category: Execute (High risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Rate-limited

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "undo_preview",
    "arguments": {}
  }
}
```

## Why undo_preview is rated High

undo_preview triggers real processes with real consequences. An agent gone sideways doesn't fire it once. It starts dozens of builds, sends mass notifications, or burns through compute before anyone looks up.

## Use case

AI agents invoke undo_preview to trigger actions in Spotify. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call: builds kicked off, notifications sent, workflows started.

## Recommended policy (PolicyLayer)

Verdict: **Rate-limited**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Spotify:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "undo_preview": {
      "limits": [
        {
          "counter": "undo_preview_rate",
          "window": "minute",
          "max": 10,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on Spotify (543)

- `cancel_wind_down` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/cancel-wind-down.md
- `dedupe_spotify_uris` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/dedupe-spotify-uris.md
- `delete_playback_bookmark` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/delete-playback-bookmark.md
- `delete_playlist_snapshot` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/delete-playlist-snapshot.md
- `delete_scene` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/delete-scene.md
- `playlist_dedupe_advanced` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/playlist-dedupe-advanced.md
- `playlist_exclude_artists` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/playlist-exclude-artists.md
- `playlist_filter_runtime` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/playlist-filter-runtime.md
- `playlist_keep_artist` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/playlist-keep-artist.md
- `playlist_keep_only` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/playlist-keep-only.md
- `playlist_remove_artist` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/playlist-remove-artist.md
- `playlist_subtract` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/playlist-subtract.md
- `prune_old_snapshots` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/prune-old-snapshots.md
- `queue_playlist` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/queue-playlist.md
- `remove_duplicate_playlist_items` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/remove-duplicate-playlist-items.md
- `remove_from_library` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/remove-from-library.md
- `remove_from_library_by_playlist` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/remove-from-library-by-playlist.md
- `remove_from_playlist` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/remove-from-playlist.md
- `remove_playlist_range` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/remove-playlist-range.md
- `remove_saved_episode` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/remove-saved-episode.md
- `remove_saved_items` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/remove-saved-items.md
- `remove_saved_shows` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/remove-saved-shows.md
- `remove_unavailable_playlist_items` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/remove-unavailable-playlist-items.md
- `sleep_timer` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/sleep-timer.md
- `tag_management` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/tag-management.md
- `taste_checkpoint_diff` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/taste-checkpoint-diff.md
- `undo_mutation` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/undo-mutation.md
- `unpin_playlist` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/unpin-playlist.md
- `volume_ramp` — Destructive — https://policylayer.com/tools/novalux12-spotify-mcp/volume-ramp.md
- `artistwatch_new_additions` — Execute — https://policylayer.com/tools/novalux12-spotify-mcp/artistwatch-new-additions.md
- …and 513 more: https://policylayer.com/tools/novalux12-spotify-mcp.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=novalux12-spotify-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/novalux12-spotify-mcp
