Skip to main content
Glama
spotify-mcp

spotify-mcp

by codebyotto

Create a Spotify playlist

create_playlist

Creates a new empty Spotify playlist for the signed-in user; use it when the user asks for a new playlist, not to extend an existing one.

Instructions

Create a new, empty playlist owned by the signed-in user.

WRITE: this changes the user's Spotify account immediately and cannot be undone by these tools. Calling it twice creates two playlists. Only call it when the user asked for a new playlist; to extend an existing one, use list_my_playlists instead. The returned id is the playlist_id for add_tracks_to_playlist. Check warnings and tell the user about them before adding tracks.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>"
    },
    "name": "create_playlist"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesPlaylist name shown in Spotify.
publicNoRequested visibility (default private). Spotify does not reliably honour public=false; the result's `public` and `warnings` report what Spotify actually stored.
descriptionNoOptional playlist description.

Output Schema

NameRequiredDescriptionDefault
idYesSpotify playlist ID. Pass this to add_tracks_to_playlist.playlist_id.
nameYes
ownerYesOwner's display name (or user ID if there is none).
publicYes
can_editYesTrue if the current user owns or collaborates on the playlist, i.e. tracks can be added.
warningsNoDifferences between what was requested and what Spotify actually stored.
item_countYesNumber of tracks/episodes, if Spotify reports it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=false and idempotentHint=false, but the description goes further with concrete consequences: the change is immediate, cannot be undone by these tools, and calling it twice yields two playlists. It also tells the agent to read the returned `id` and surface `warnings` before adding tracks, which is behavior an agent cannot get from the annotations.

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 write warning and irreversibility come first, then the usage condition, then the return-value handoff to the next tool. Every sentence carries a distinct instruction and nothing is repeated from the schema or annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values needn't be explained, yet the description still supplies the one thing that matters operationally, how the returned id and warnings feed into the next step. For a three-parameter mutation tool this is as complete as an agent needs.

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 coverage is 100%, so name, public, and description are already documented, including the note that Spotify may not honour public=false. The description adds no parameter-level detail beyond the schema, so the baseline of 3 applies.

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 opening sentence gives a specific verb and resource plus scope: 'Create a new, empty playlist owned by the signed-in user.' The word 'empty' and the owner constraint separate it cleanly from add_tracks_to_playlist and list_my_playlists without requiring either schema to be opened.

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?

It states an explicit when-condition ('Only call it when the user asked for a *new* playlist') and names an alternative for the other case. The guidance is slightly off, though: 'to extend an existing one, use list_my_playlists' points at a listing tool rather than the add_tracks_to_playlist tool the description itself references elsewhere, so the routing signal for that case is weaker than it appears.

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