Skip to main content
Glama

playlist_rotate

Reorder a Spotify playlist by rotating tracks N positions: positive shifts early tracks to the end, negative brings later tracks to the front, with wrap-around.

Instructions

Rotate a playlist by N positions: positive N moves the first N items to the end, negative N moves the last |N| to the front (wraps around). Written as one atomic replace. Quota: 🟢 2 GETs + 1 PUT.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNoPreview only: perform the read side and return a PLAN without changing anything. Pass false to commit. Default true
positionsYesRotation amount; positive = first N move to end, negative = last |N| move to front
max_resultsNoMax items to return (default: SPOTIFY_MCP_MAX_ITEMS env or 50)
playlist_idYesPlaylist to rotate, as ID or spotify:playlist: URI
response_formatNo'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API objectconcise
Behavior3/5

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

No annotations are provided, so the description carries the disclosure burden. I adds real behavioral context — 'Written as one atomic replace' discloses atomicity and the quota line '2 GETs + 1 PUT' discloses a mutating write path — but it never explicitly states that the operation modifies the playlist or that dry_run defaults to true to avoid changes.

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 short sentences, each earning its place: core semantics, implementation note, and cost. The rotation behavior is front-loaded and there is zero 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 5-paramder tool with a 100%-documented schema and no output schema, the description covers the key gaps: rotation math, atomicity, and quota. Nothing essential is missing, though it could have referenced the dry_run plan workflow or the rotate_playl_plan sibling given the read-first mutation pattern.

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 baseline is 3. The description mostly restates what the positions schema already says, adding only the 'wraps around' nuance; it does not materially extend the paramter 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?

States a specific verb and resource with precise, unambiguous semantics: 'Rotate a playlist by N positions' with exact direction behavior for positive and negative N including wrap-around. The behavior is defined well enough to distinguish from rotation-related sibling tools, though it does not explicitly name any sibling (e.g., rotate_playlist_plan, playlist_reverse) to rule out confusion.

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

Usage Guidelines2/5

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

The description gives no when-to-use or when-not-to-use guidance and does not reference alternatives like rotate_playlist_plan or reorder_playlist items. The quota and atomic-replace notes imply cost context, but nothing tells an agent when this tool beats another.

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