Skip to main content
Glama

save_queue_as_playlist

Capture the current playback queue into a durable Spotify playlist, either as a new playlist or appended to an existing one, preserving order.

Instructions

Capture the current playback queue as a durable playlist. Reads GET /me/player/queue, creates (or appends to) a playlist, adds URIs in batches of 100 preserving order. Handles mixed track/episode URIs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoName for the new playlist (required when creating; omit when target_playlist_id is given)
dry_runNoPreview only: validate inputs and describe exactly what would change without performing it
descriptionNoPlaylist description (when creating a new playlist)
include_currentNoInclude the currently-playing track/episode as the first item (default true)
response_formatNo'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API objectconcise
include_episodesNoInclude episodes in the saved playlist (default true — set false for tracks only)
target_playlist_idNoExisting playlist ID to append to (alternative to name — when given, URIs are appended to this playlist)
Behavior4/5

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

With no annotations provided, the description carries the full behavioral burden, and it does well: it discloses that this is a mutating operation (creates/appends), that it reads the live queue via a specific endpoint, that URIs are batched at 100 items, that order is preserved, and that mixed track/episode URIs are handled. It also implies dry-run support via the schema. It does not mention failure behavior (e.g., empty queue) or idempotency, but the disclosed pipeline is substantial.

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?

Three information-dense sentences with no filler. The core action and key behavioral constraints (order preservation, batching, mixed URIs) are front-loaded in the first sentence, with the endpoint and append mode following. Every sentence earns its place.

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 7-parameter mutation tool with no output schema and no annotations, the description covers the process pipeline thoroughly: queue read, playlist create/append, 100-item batch add, mixed URI handling, order preservation. Gaps include the empty-queue failure case and a note on what the return value looks like, though the response_format parameter partially addresses expected output. Overall, an agent has enough context to call the tool correctly in most scenarios.

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 seven parameters clearly, including the mutually exclusive name/target_playlist_id semantics and the dry_run preview behavior. The description adds context about the overall operation (batching, order, mixed URI handling) but does not add meaning beyond the schema's per-parameter descriptions. 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 uses a specific verb ('Capture') and resource ('the current playback queue as a durable playlist'), and details the sequence of operations: reads GET /me/player/queue, creates or appends to a playlist, adds URIs in batches of 100 preserving order. This clearly distinguishes it from sibling tools like get_queue, create_playlist, add_to_playlist, or queue_replace_via_playlist.

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 description explains what it does and how (reads the queue endpoint, creates/appends, batches, handles mixed URIs), which implies when to use it: when a user wants to save the current queue as a playlist. However, it does not explicitly state when not to use it or name alternatives (e.g., use get_queue if only previewing, or create_playlist if starting from scratch). Guidance is implied but not explicit.

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