Skip to main content
Glama

Spotify MCP Server

by latiftplgu

skip_to_previous

Use this tool to skip back to the previous track or restart the current track from the beginning. Ideal for correcting accidental skips, replaying favorite parts, or navigating playlists in reverse order.

Instructions

Skip to the previous track or restart the current track from the beginning.

🎯 USE CASES: • Go back to replay favorite parts of songs • Navigate backwards through playlists or albums • Correct accidental skips to next track • Replay tracks that were particularly enjoyable • Build comprehensive playback control systems

📝 WHAT IT RETURNS: • Information about the track that started playing • Playback position reset to beginning of track • Updated queue and playback state information • Confirmation of successful skip operation • Device status with new playback details

🔍 EXAMPLES: • "Go back to the previous song" • "Play that last track again" • "Skip back to the song before this one" • "I want to hear that again"

🎵 SKIP BEHAVIOR: • Restarts current track if more than 3 seconds have played • Goes to actual previous track if within first 3 seconds • Follows reverse playlist/album order • Respects shuffle mode for random navigation • Updates position in listening history

⚠️ REQUIREMENTS: • Valid Spotify access token with user-modify-playback-state scope • Active playback session currently running • Previous track must exist in queue or history

Input Schema

NameRequiredDescriptionDefault
deviceIdNoSpotify device ID (optional, uses active device if not specified)
tokenYesSpotify access token for authentication

Input Schema (JSON Schema)

{ "properties": { "deviceId": { "description": "Spotify device ID (optional, uses active device if not specified)", "type": "string" }, "token": { "description": "Spotify access token for authentication", "type": "string" } }, "required": [ "token" ], "type": "object" }

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/latiftplgu/Spotify-OAuth-MCP-server'

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