Skip to main content
Glama

skip_to_next

Skip to the next track in Spotify playback to navigate playlists, skip unwanted songs, or control music progression during listening sessions.

Instructions

Skip to the next track in the user's playback queue or playlist.

🎯 USE CASES: β€’ Skip songs that don't match current mood or activity β€’ Navigate through playlists and albums quickly β€’ Build custom music control interfaces β€’ Create voice-activated skip commands β€’ Implement automatic skipping based on user preferences

πŸ“ WHAT IT RETURNS: β€’ Information about the new track that started playing β€’ Updated playback position reset to beginning β€’ Queue information showing remaining tracks β€’ Confirmation of successful skip operation β€’ Device state with new playback status

πŸ” EXAMPLES: β€’ "Skip to the next song" β€’ "Play the next track in this playlist" β€’ "Move forward to the next song" β€’ "I don't like this song, skip it"

🎡 SKIP BEHAVIOR: β€’ Follows playlist/album order when not shuffled β€’ Respects shuffle mode for random progression β€’ May trigger repeat behavior at end of playlists β€’ Updates listening history and statistics β€’ Can trigger discovery algorithms for similar music

⚠️ REQUIREMENTS: β€’ Valid Spotify access token with user-modify-playback-state scope β€’ Active playback session with available next track β€’ User must have appropriate device control permissions

Input Schema

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

Implementation Reference

  • MCP tool registration for 'skip_to_next' including schema, description, and handler function that delegates to SpotifyService.skipToNext
    skip_to_next: { title: "Skip to Next Track", description: `Skip to the next track in the user's playback queue or playlist. 🎯 USE CASES: β€’ Skip songs that don't match current mood or activity β€’ Navigate through playlists and albums quickly β€’ Build custom music control interfaces β€’ Create voice-activated skip commands β€’ Implement automatic skipping based on user preferences πŸ“ WHAT IT RETURNS: β€’ Information about the new track that started playing β€’ Updated playback position reset to beginning β€’ Queue information showing remaining tracks β€’ Confirmation of successful skip operation β€’ Device state with new playback status πŸ” EXAMPLES: β€’ "Skip to the next song" β€’ "Play the next track in this playlist" β€’ "Move forward to the next song" β€’ "I don't like this song, skip it" 🎡 SKIP BEHAVIOR: β€’ Follows playlist/album order when not shuffled β€’ Respects shuffle mode for random progression β€’ May trigger repeat behavior at end of playlists β€’ Updates listening history and statistics β€’ Can trigger discovery algorithms for similar music ⚠️ REQUIREMENTS: β€’ Valid Spotify access token with user-modify-playback-state scope β€’ Active playback session with available next track β€’ User must have appropriate device control permissions`, schema: createSchema({ token: commonSchemas.token(), deviceId: commonSchemas.deviceId(), }), handler: async (args: any, spotifyService: SpotifyService) => { const { token, deviceId } = args; return await spotifyService.skipToNext(token, deviceId); }, },
  • Core implementation of skipToNext in SpotifyService class, which makes POST request to Spotify API endpoint /me/player/next
    async skipToNext( token: string, deviceId: string | null = null ): Promise<void> { const endpoint = deviceId ? `me/player/next?device_id=${deviceId}` : "me/player/next"; return await this.makeRequest<void>(endpoint, token, {}, "POST"); }
  • Aggregation of all tools including playbackTools (which contains skip_to_next) into the central allTools registry used by the MCP server
    export const allTools: ToolsRegistry = { ...albumTools, ...artistTools, ...trackTools, ...playlistTools, ...playbackTools, ...userTools, ...searchTools, };
  • Input schema for skip_to_next tool using common token and deviceId schemas
    schema: createSchema({ token: commonSchemas.token(), deviceId: commonSchemas.deviceId(), }),

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

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