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(),
    }),
Behavior5/5

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

With no annotations provided, the description carries full burden and delivers comprehensive behavioral disclosure. The 'SKIP BEHAVIOR' section details how skipping works with shuffle/repeat modes, and 'WHAT IT RETURNS' describes the response format. The 'REQUIREMENTS' section covers authentication needs and prerequisites.

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

Conciseness4/5

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

The description is well-structured with clear sections (USE CASES, WHAT IT RETURNS, etc.) but could be more concise. Some sections like 'EXAMPLES' and 'SKIP BEHAVIOR' contain redundant information that could be condensed while maintaining clarity. The front-loading is effective with the core purpose stated first.

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?

For a mutation tool with no annotations and no output schema, the description provides exceptional completeness. It covers purpose, usage scenarios, return values, behavioral details, examples, and requirements - giving the agent everything needed to understand when and how to use this tool effectively.

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 description coverage is 100%, so the baseline is 3. The description adds value by explaining authentication requirements ('Valid Spotify access token') in the REQUIREMENTS section, which provides context beyond the schema's parameter descriptions. However, it doesn't add significant additional parameter semantics beyond what the schema already documents well.

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 specific action ('Skip to the next track') and resource ('user's playback queue or playlist'), distinguishing it from siblings like 'skip_to_previous' and 'pause_player'. It provides a precise verb+resource combination that leaves no ambiguity about the tool's function.

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 'USE CASES' section explicitly lists multiple scenarios for when to use this tool, and the 'REQUIREMENTS' section clearly states prerequisites (active playback session, valid token, available next track). It also distinguishes from alternatives by focusing on next-track skipping specifically.

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

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