Skip to main content
Glama

restore_playlist_from_snapshot

Restore a Spotify playlist to match a saved snapshot, adding missing tracks and removing extras. Preview the plan first, then commit to make the live playlist match.

Instructions

Make a live playlist match a snapshot (add missing, remove extra tracks); dry_run=true (default) returns the deterministic PLAN without touching Spotify

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
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does it well: it discloses that the tool mutates a playlist, that extra tracks are removed, and that the default dry_run mode avoids any Spotify writes. It could mention write-scope requirements or reversibility, but the safe-by-default behavior is prominently conveyed.

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

Conciseness5/5

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

The description is one dense, front-loaded sentence: it states the core outcome first, then the critical safety default. Every word earns its place; there is no filler.

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

Completeness4/5

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

For a potentially destructive operation, the description covers the essential context: what changes are made, the default safe dry-run behavior, and the deterministic nature of the plan. The schema fills in parameter details such as playlist default and response_format, so the overall tool definition is sufficient for an agent to invoke it correctly.

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 documents all four parameters including dry_run, playlist, snapshot, and response_format. The description reinforces dry_run's plan behavior but adds no new parameter-level meaning beyond the schema.

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

Purpose4/5

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

The description states a specific action and resource: make a live playlist match a snapshot by adding missing and removing extra tracks. It is clear about what the tool does, though it does not explicitly differentiate itself from sibling tools like restore_playlist_plan or apply_snapshot_changes.

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

Usage Guidelines3/5

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

The description gives practical usage context by noting that dry_run=true is the default and returns a deterministic plan without touching Spotify, which implies a preview-then-commit workflow. However, it does not explicitly state when to prefer this tool over related plan-only or apply-only siblings, nor does it state exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/NovaLux12/spotify-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server