Skip to main content
Glama
ElBeldu

Spotify MCP Server

by ElBeldu

addTracksToPlaylist

Add Spotify tracks or podcast episodes to a playlist. Pass track IDs or full URIs to insert items at a chosen position.

Instructions

Add tracks or podcast episodes to a Spotify playlist. Accepts Spotify track IDs, episode IDs, or full Spotify URIs (e.g. spotify:episode:xxx).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
positionNoPosition to insert the items (0-based index)
trackIdsYesArray of Spotify IDs or URIs to add. Plain IDs are assumed to be tracks. To add podcast episodes, pass full URIs: spotify:episode:{id}.
playlistIdYesThe Spotify ID of the playlist

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, but it only states accepted ID/URI formats. It omits that this is a mutating, persistent operation, whether it requires ownership/collaboration rights, the default append behavior, per-request item limits, or whether duplicate tracks are allowed.

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 short sentences, front-loaded with the action and resource, then the accepted input formats. No filler or redundancy.

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?

Parameters are fully documented in the schema and there is no output schema to explain, so the core is covered. However, for a mutation tool with zero annotations, the description says nothing about permissions, side effects, or limits, leaving behavioral gaps an agent would want closed.

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 restates the ID/URI format already documented in the trackIds schema field and adds a minor example, but contributes no meaning beyond the schema (e.g. how position interacts with the default append).

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 states a precise verb+resource (add tracks/episodes to a Spotify playlist) and distinguishes itself implicitly from siblings like removeTracksFromPlaylist and reorderPlaylistItems. It is clear what the tool does, though it never names an alternative tool to route between.

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?

There is no when-to-use guidance, no mention of prerequisites (e.g. needing a playlist in the user's library or the playlist-modify scope), and no contrast with sibling tools such as addToQueue or createPlaylist. The agent must infer usage entirely.

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