Skip to main content
Glama
Stipe15

spotify-mcp

by Stipe15

replace_playlist_items

Idempotent

Replace the contents of a Spotify playlist with a new set of URIs, discarding existing items. A preview shows what will be lost; an empty list clears the playlist.

Instructions

Replace a playlist's entire contents with a new list of URIs — the existing items are discarded. The preview shows what will be lost alongside what replaces it. Pass an empty list to clear the playlist entirely. For more than 100 URIs, the first 100 replace in one call and the rest are appended after.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urisYes
playlist_idYes
confirm_tokenNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes
resultNo
statusYes
previewNo
next_stepNo
expires_atNo
confirm_tokenNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior1/5

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

The description states 'the existing items are discarded', which is a destructive side effect, while the annotations declare destructiveHint=false. This is a direct contradiction, so the description's otherwise useful behavioral detail cannot be credited.

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 sentences, each earning its place: the core operation, the preview and clearing behavior, and the batch limit. The description is front-loaded and contains no filler.

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?

Core behavior and edge cases are covered, and the output schema handles return values. However, the unexplained confirm_token parameter is a gap for a destructive operation, and the contradiction with destructiveHint=false undermines an agent's ability to assess risk.

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 0%, but the description adds real meaning for the uris parameter: empty list clears, and over 100 URIs uses a two-step replacement. However, it says nothing about playlist_id or confirm_token, leaving the purpose of confirm_token in this destructive operation unexplained.

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 states a specific verb and resource: 'Replace a playlist's entire contents with a new list of URIs'. It clearly distinguishes this from incremental operations like add, remove, or reorder by emphasizing the entire contents are replaced and existing items are discarded.

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 gives clear operational context: use it for full replacement or emptying a playlist, and it explains the 100-URI batching behavior. It does not explicitly name sibling alternatives or state when not to use it, so it stops short of full usage guidance.

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

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/Stipe15/spotify-mcp'

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