Skip to main content
Glama
jamiew

Spotify MCP Server

by jamiew

Create Playlist

create_playlist

Create a new Spotify playlist with a specified name, optional description, and privacy setting. Returns the created playlist.

Instructions

Create a new Spotify playlist.

Args:
    name: Playlist name
    description: Playlist description (default: empty)
    public: Whether playlist is public (default: False)

Returns:
    The created Playlist

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
publicNo
descriptionNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
nameYes
ownerNo
publicNo
tracksNo
descriptionNo
total_tracksNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.7.0
    • changedInput schema / properties / public / default
      Previous value: -trueNew value: +false
  2. Changed6 schema fields changedv0.6.1
    • addedOutput schema / $defs / Track / properties / id / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedOutput schema / $defs / Track / properties / id / default
      Added value: +null
    • removedOutput schema / $defs / Track / properties / id / type
      Removed value: -"string"
    • addedOutput schema / $defs / Track / properties / is_local
      Added value: +{
      +  "default": false,
      +  "title": "Is Local",
      +  "type": "boolean"
      +}
    • addedOutput schema / $defs / Track / properties / played_at
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Played At"
      +}
    • changedOutput schema / $defs / Track / required
      Previous value: -[
      -  "name",
      -  "id",
      -  "artist"
      -]New value: +[
      +  "name",
      +  "artist"
      +]
  3. Changed5 schema fields changedv0.3.1
    • addedOutput schema / $defs
      Added value: +{
      +  "Track": {
      +    "description": "A Spotify track with metadata.",
      +    "properties": {
      +      "added_at": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Added At"
      +      },
      +      "album": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Album"
      +      },
      +      "album_id": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Album Id"
      +      },
      +      "artist": {
      +        "title": "Artist",
      +        "type": "string"
      +      },
      +      "artists": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Artists"
      +      },
      +      "duration_ms": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Duration Ms"
      +      },
      +      "external_urls": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "External Urls"
      +      },
      +      "id": {
      +        "title": "Id",
      +        "type": "string"
      +      },
      +      "name": {
      +        "title": "Name",
      +        "type": "string"
      +      },
      +      "popularity": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Popularity"
      +      },
      +      "release_date": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "title": "Release Date"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "id",
      +      "artist"
      +    ],
      +    "title": "Track",
      +    "type": "object"
      +  }
      +}
    • addedOutput schema / description
      Added value: +"A Spotify playlist."
    • addedOutput schema / properties
      Added value: +{
      +  "description": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "title": "Description"
      +  },
      +  "id": {
      +    "title": "Id",
      +    "type": "string"
      +  },
      +  "name": {
      +    "title": "Name",
      +    "type": "string"
      +  },
      +  "owner": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "title": "Owner"
      +  },
      +  "public": {
      +    "anyOf": [
      +      {
      +        "type": "boolean"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "title": "Public"
      +  },
      +  "total_tracks": {
      +    "anyOf": [
      +      {
      +        "type": "integer"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "title": "Total Tracks"
      +  },
      +  "tracks": {
      +    "anyOf": [
      +      {
      +        "items": {
      +          "$ref": "#/$defs/Track"
      +        },
      +        "type": "array"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ],
      +    "default": null,
      +    "title": "Tracks"
      +  }
      +}
    • addedOutput schema / required
      Added value: +[
      +  "name",
      +  "id"
      +]
    • changedOutput schema / title
      Previous value: -"create_playlistDictOutput"New value: +"Playlist"
  4. Changed5 schema fields changedv1.0.0
    • removedOutput schema / $defs
      Removed value: -{
      -  "Track": {
      -    "description": "A Spotify track with metadata.",
      -    "properties": {
      -      "album": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Album"
      -      },
      -      "artist": {
      -        "title": "Artist",
      -        "type": "string"
      -      },
      -      "artists": {
      -        "anyOf": [
      -          {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Artists"
      -      },
      -      "duration_ms": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Duration Ms"
      -      },
      -      "external_urls": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": {
      -              "type": "string"
      -            },
      -            "type": "object"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "External Urls"
      -      },
      -      "id": {
      -        "title": "Id",
      -        "type": "string"
      -      },
      -      "name": {
      -        "title": "Name",
      -        "type": "string"
      -      },
      -      "popularity": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Popularity"
      -      }
      -    },
      -    "required": [
      -      "name",
      -      "id",
      -      "artist"
      -    ],
      -    "title": "Track",
      -    "type": "object"
      -  }
      -}
    • removedOutput schema / description
      Removed value: -"A Spotify playlist."
    • removedOutput schema / properties
      Removed value: -{
      -  "description": {
      -    "anyOf": [
      -      {
      -        "type": "string"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "default": null,
      -    "title": "Description"
      -  },
      -  "id": {
      -    "title": "Id",
      -    "type": "string"
      -  },
      -  "name": {
      -    "title": "Name",
      -    "type": "string"
      -  },
      -  "owner": {
      -    "anyOf": [
      -      {
      -        "type": "string"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "default": null,
      -    "title": "Owner"
      -  },
      -  "public": {
      -    "anyOf": [
      -      {
      -        "type": "boolean"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "default": null,
      -    "title": "Public"
      -  },
      -  "total_tracks": {
      -    "anyOf": [
      -      {
      -        "type": "integer"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "default": null,
      -    "title": "Total Tracks"
      -  },
      -  "tracks": {
      -    "anyOf": [
      -      {
      -        "items": {
      -          "$ref": "#/$defs/Track"
      -        },
      -        "type": "array"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ],
      -    "default": null,
      -    "title": "Tracks"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "name",
      -  "id"
      -]
    • changedOutput schema / title
      Previous value: -"Playlist"New value: +"create_playlistDictOutput"
  5. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations indicate readOnlyHint=false (a write operation) and destructiveHint=false. The description adds minimal behavioral context by noting it returns the created Playlist, but it does not disclose side effects (e.g., playlist appears in user's library) or any permission requirements. The bar is lower due to annotations, but the description adds only a thin layer of value.

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 tight docstring with Args and Returns sections, no filler. Every sentence earns its place, and the essential information (name, description, public, return) is front-loaded. Highly efficient.

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?

Given the tool's simplicity, the output schema, and annotations, the description covers the essentials. It could mention authentication or that the playlist is created for the authenticated user, but this is minor. The description is adequate for an agent to call it correctly without further context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% (no descriptions in the schema), so the description compensates by explaining each parameter: name, description, and public, including defaults. This adds meaning beyond the schema's type and default fields. It lacks constraints like length limits, but the core semantics are covered.

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 (Create) and resource (Spotify playlist), clearly distinguishing it from sibling tools like get_playlist or update_playlist_details. No ambiguity about what the tool accomplishes.

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 provides no guidance on when to use this tool versus alternatives. While it is the only creation tool among siblings, it does not mention prerequisites (e.g., authentication), nor does it clarify that it should not be used for updating or retrieving playlists. Implied by context but not explicit.

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