Skip to main content
Glama
Yonsn76

Spotify MCP Server

by Yonsn76

spotifyPlayer

Control Spotify playback with actions like play, pause, skip, adjust volume, shuffle, repeat, and manage devices. Use to play tracks, albums, artists, or playlists by URI or ID, and handle playback errors.

Instructions

Controla reproduccion de Spotify. MANEJO DE ERRORES:

  • Si error "No hay dispositivo activo": 1) Usa spotifyInfo(accion="devices") para obtener lista. 2) Si hay dispositivos, usa spotifyPlayer(accion="transfer", dispositivo="ID") para activarlo y luego reintenta play. 3) Si no hay dispositivos, usa spotifyPlayer(accion="openApp"), espera que cargue, repite desde paso 1.

  • Si transfer falla o no hay dispositivos despues de abrir: Pide al usuario que reproduzca algo manualmente en Spotify para activar la sesion.

  • Si error "Premium requerido": Informa que necesita Spotify Premium.

  • Para reproducir: Primero busca con spotifyInfo(accion="search"), luego usa el ID con play. FLUJO RECOMENDADO cuando no reproduce: devices -> transfer(dispositivo=ID) -> play. Si falla, openApp -> esperar -> devices -> transfer -> play.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accionYesplay=reproducir(uri o tipo+id), pause/resume, next/prev, volume(valor:0-100), shuffle(valor:bool), repeat(valor:track/context/off), seek(valor:ms), queue=agregar a cola, transfer=cambiar dispositivo, playLiked=reproducir Me gusta, openApp=abrir Spotify(valor:true=web)
uriNoURI completo de Spotify ej: spotify:track:ID (alternativa a tipo+id)
tipoNoTipo de contenido para play/queue
idNoID del contenido (obtener de spotifyInfo search)
valorNoValor según acción: volume(0-100), shuffle(bool), repeat(track/context/off), seek(ms), openApp(true=forzar web)
dispositivoNoID del dispositivo (obtener de spotifyInfo devices)
enContextoNoPara tracks: reproducir en contexto del álbum (default: true, false=solo la canción)
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It excels by detailing error-handling scenarios (e.g., 'No hay dispositivo activo', 'Premium requerido'), recovery steps (using spotifyInfo, transfer, openApp), and user interactions (e.g., 'Pide al usuario que reproduzca algo manualmente'). This goes far beyond basic functionality.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is overly verbose and poorly structured, mixing purpose, error-handling, and workflows in a dense paragraph. It lacks front-loading of core functionality, and many sentences could be condensed or moved to a separate guidelines section, reducing clarity.

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?

Given the complexity of a playback control tool with no annotations and no output schema, the description is highly complete. It covers purpose, usage scenarios, error recovery, and integration with sibling tools, providing all necessary context for an agent to operate effectively despite missing structured data.

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 schema already documents all parameters thoroughly. The description doesn't add significant meaning beyond the schema, though it implies usage patterns (e.g., using 'uri' or 'tipo+id' for play). Baseline 3 is appropriate when the schema does the heavy lifting.

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 clearly states the tool's purpose as 'Controla reproduccion de Spotify' (controls Spotify playback), which is a specific verb+resource combination. However, it doesn't explicitly differentiate from sibling tools like spotifyInfo or spotifyLibrary, though the focus on playback control implies a distinction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides extensive usage guidelines, including explicit error-handling workflows (e.g., 'Si error "No hay dispositivo activo"'), recommended flows ('FLUJO RECOMENDADO cuando no reproduce'), and references to sibling tools (spotifyInfo for search and devices). It clearly indicates when and how to use this tool versus alternatives.

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/Yonsn76/spotify-mcp'

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