Skip to main content
Glama
martin-gomola

Spotify MCP Server

addTracksToPlaylist

Add tracks or podcast episodes to any Spotify playlist by providing track IDs, episode IDs, or full URIs. Specify the playlist and the items to update.

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
Behavior2/5

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

No annotations are provided, so the description must carry the full burden of behavioral disclosure. The description only states what the tool does, not side effects such as whether items are appended by default, how duplicates are handled, or whether specific authentication or permissions are needed. This lack of critical behavior details is a significant gap for a mutating operation.

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?

The description is a single, focused sentence, immediately stating the action and accepted input formats. It is free of superfluous details and efficiently conveys the core purpose.

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?

For a simple add operation, the description plus schema adequately specify the inputs. However, the description omits details about the operation's outcome (e.g., whether a response returns the updated playlist) and any prerequisites. The lack of an output schema and annotations means the description should offer more context, but the tool's low complexity keeps this at a medium level.

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?

The input schema provides full descriptions for all three parameters (100% coverage). The description largely paraphrases the trackIds schema description (e.g., accepting full URIs for episodes) but adds no new meaning beyond the schema. Baseline of 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 clearly states the tool's function: 'Add tracks or podcast episodes to a Spotify playlist.' It uses a specific verb and resource, and the mention of accepting IDs or URIs further clarifies scope. This distinguishes it from sibling tools like removeTracksFromPlaylist or reorderPlaylistItems.

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 implies usage for adding items to a playlist but does not explicitly state when to use it over alternatives or provide exclusions. No comparison to siblings like addToQueue or createPlaylist is given, leaving the agent to infer the correct context from the tool name and description.

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/martin-gomola/spotify-mcp-server'

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