Skip to main content
Glama

apply_snapshot_changes

Replay playlist changes between two snapshots by applying the merge plan to the live playlist; use dry-run to preview before committing.

Instructions

Execute a merge plan on the live playlist (replay the changes between two snapshots); dry_run=true (default) only returns the plan 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
modeNoWhich changes to apply (default both)
dry_runNoPreview only: perform the read side and return a deterministic PLAN without writing/deleting anything. Default true — pass false to commit.
playlistNoLive playlist to change (default: the snapshots’ playlist_id)
to_snapshotYesNewer snapshot — the target state
from_snapshotYesOlder snapshot — the baseline
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

B3.3/5.0
Behavior3/5

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

The description discloses that this tool executes changes on the live playlist and that dry_run=true prevents actual writes, which is important safety context given no annotations are present. However, it does not describe what happens on commit in detail, such as whether tracks are added/removed or whether the operation is reversible. The description carries the behavioral burden but only partially fulfills it.

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

Conciseness3/5

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

The core purpose and dry-run behavior are front-loaded in a clear first sentence. The second sentence's Snapshot guide is a long comma-separated list of related tools that adds useful navigation context but feels somewhat cluttered and redundant with sibling tool names already discoverable. The description is acceptable but not tightly minimal.

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?

With no annotations and no output schema, the description must supply operational context, and it does highlight the critical dry_run safety default. Still, it leaves some ambiguity about what a 'merge plan' entails, what the returned plan looks like, and how commit behavior modifies the live playlist. Together with the strong schema, it is workable 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 input schema already explains all parameters including dry_run, mode, playlist, and response_format. The description adds only minor context by restating the dry_run default. This meets the baseline for schema-heavy parameter documentation without adding substantial new meaning.

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 clearly states the tool applies a merge plan to the live playlist by replaying changes between two snapshots, using a specific verb and resource. It also emphasizes the dry_run default, which helps distinguish execution from plan-only behavior. However, it does not explicitly differentiate itself from closely related siblings like merge_snapshot_changes_plan or restore_playlist_plan.

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 conveys that dry_run=true returns a plan by default, which gives useful context for previewing. It also includes a Snapshot guide listing related snapshot tools, but it does not explicitly state when to prefer this tool over restore_playlist_from_snapshot or merge_snapshot_changes_plan. Usage guidance is implied rather than directly 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