Skip to main content
Glama
freddy24-7

spotify-mcp-server

by freddy24-7

generate_playlist

Create a Spotify playlist from a natural-language prompt. Interprets your request, generates a tracklist, and adds matching tracks to a new playlist.

Instructions

Generate and populate a Spotify playlist from a natural-language prompt.

Uses Claude to interpret the prompt and produce a tracklist, then creates a new playlist and searches for each track on Spotify.

Parameters

prompt : str Natural-language description, e.g. "10 summer hits from 2024". playlist_name : str, optional Name for the new playlist. If omitted, Claude will suggest one.

Returns

dict Keys: playlist_id, playlist_name, playlist_url, tracks_added (int), tracks_not_found (list[str]).

Raises

EnvironmentError If GEMINI_API_KEY is not configured. ValueError If prompt is blank.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYes
playlist_nameNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

The description discloses the workflow (interpret prompt, create playlist, search/add tracks), return values, and error conditions, which is commendable for a tool with no annotations. However, it contains an internal contradiction: it says 'Uses Claude' but then raises EnvironmentError for 'GEMINI_API_KEY', which could mislead an agent about the actual API dependency.

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 well-structured with a one-sentence summary, a brief workflow explanation, and clearly labeled Parameters/Returns/Raises sections. It is appropriately sized, with no filler words, and front-loads the tool's 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?

The description covers the full workflow, output keys, and exceptions, making it mostly self-sufficient. However, the Claude/Gemini naming inconsistency is a notable error that reduces reliability, and it does not reference sibling tools or mention Spotify authentication requirements. Given the tool's moderate complexity, this leaves a few gaps.

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

Parameters5/5

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

The input schema only provides types and required status for the two parameters, with no descriptions. The description compensates fully by documenting each parameter in a dedicated section, including an example for 'prompt' and the default behavior for 'playlist_name'.

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 with a specific verb ('Generate and populate') and resource ('Spotify playlist') and input ('natural-language prompt'). It differentiates from sibling tools like create_playlist by describing the end-to-end workflow of interpreting the prompt, creating the playlist, and adding tracks.

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 implies its use case by emphasizing 'natural-language prompt' and the automated workflow, but it does not explicitly state when to prefer this over alternatives like add_to_playlist or search_and_add. No exclusions or sibling comparisons are provided, though the context is clear enough for most cases.

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/freddy24-7/MCP-Spotify'

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