Skip to main content
Glama

restore_playlist_from_snapshot

Restore a live Spotify playlist to match a saved snapshot by adding missing tracks and removing extras, with a dry-run preview of the plan by default.

Instructions

Make a live playlist match a snapshot (add missing, remove extra tracks); dry_run=true (default) returns the deterministic PLAN without touching Spotify Snapshot guide: take_playlist_snapshot (create), list_saved_snapshots (list), read_playlist_snapshot (read), diff_playlist_snapshots / snapshot_new_tracks / snapshot_removed_tracks (diff), restore_playlist_from_snapshot / restore_playlist_plan (restore).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNoPreview only: perform the read side and return a deterministic PLAN without writing/deleting anything. Default true — pass false to commit.
playlistNoTarget playlist (default: the snapshot’s own playlist_id)
snapshotYesSnapshot to restore from (id, filename, or path)
response_formatNo'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API objectconcise

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.26.1

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the behavioral burden. It does disclose the key safety default: 'dry_run=true ... returns the deterministic PLAN without touching Spotify,' and implies mutation via 'add missing, remove extra tracks.' However, it never explicitly warns that committing with dry_run=false is destructive or irreversible, nor does it describe what a committed restore returns.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose and dry-run default are front-loaded, and the snapshot guide is compact and useful. The main structural issue is the run-on quality around 'without touching Spotify Snapshot guide,' which lacks clear punctuation, but there is no filler or redundant prose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no annotations and no output schema, the description communicates the essential operation and a safe default, and the schema covers parameters well. However, it leaves the restore_playlist_plan relationship ambiguous and does not clarify the exact output when a restore is committed, so it is usable but not fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already fully documents dry_run, playlist, snapshot, and response_format. The tool description adds little beyond contextualizing dry_run and the snapshot workflow, so baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the exact operation: 'Make a live playlist match a snapshot (add missing, remove extra tracks).' This clearly identifies the resource and the behavior, and the snapshot guide helps distinguish it from snapshot creation, reading, and diffing tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The 'Snapshot guide' provides a useful workflow: take/list/read/diff snapshots before restoring, which helps an agent understand when this tool is appropriate. However, it does not explicitly distinguish when to use restore_playlist_from_snapshot versus restore_playlist_plan, so the routing is somewhat implied rather than fully stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools