Skip to main content
Glama

queue_replace_via_playlist

Replace the live queue by snapshotting it into a playlist and starting it as the playback context. Optionally drop duplicates or keep only chosen artists.

Instructions

Honest no-clear-endpoint workaround to replace the live queue: snapshot it, optionally filter (drop dupes / keep only given artists), build a playlist, and start it as the playback context — the live queue is replaced via context switch (Spotify has no queue-clear endpoint). Quota: 🟡 1 read + 2-3 writes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNoPreview only: validate inputs and describe exactly what would change without performing it
device_idNoDevice to start the new context on
drop_dupesNoDrop repeated URIs from the snapshot (default true)
keep_artistsNoWhen given, keep only tracks by these artists (case-insensitive; episodes are dropped under this filter)
playlist_nameNoPlaylist name (default "Queue snapshot <date>")
response_formatNo'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API objectconcise
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and meets it: it honestly labels the tool as a workaround, explains that replacement actually happens via context switch rather than queue mutation, and discloses the quota cost (1 read + 2-3 writes). This gives the agent important side-effect and rate-limit awareness.

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?

Two tightly packed sentences deliver purpose, mechanism, optional filtering behavior, honest caveat, and quota with no filler. The key purpose is front-loaded, and the quota note is cleanly appended.

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 mutating tool with no annotations and no output schema, the description explains the workflow, the main side effect, the workaround, and the quota. It does not describe return shapes or edge cases, but the complete input schema covers the parameter details, so those omissions are minor.

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 parameter documentation already carries the meaning. The description adds only a coarse mapping to the workflow (drop dupes / keep artists, build playlist) without introducing syntax, defaults, or enum behavior beyond the schema.

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?

First phrase states a specific verb and resource: 'replace the live queue.' It then describes the exact mechanism (snapshot, optional filters, build playlist, start as playback context), making it clearly distinguishable from siblings like queue_next or queue_playlist. Calling out that Spotify has no clear endpoint further sharpens the purpose.

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 good contextual cues for when to use it: when the goal is replacing the queue and when no native clear endpoint exists. However, it does not explicitly name sibling alternatives or state when not to use it, so the agent must infer the boundary with tools like queue_playlist.

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