Skip to main content
Glama

next_track

Skip to the next track in your Spotify queue to continue playback without interruption.

Instructions

Skip to next track in queue

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • main.py:44-47 (handler)
    FastMCP tool handler for 'next_track'. Registers the tool and executes by delegating to SpotifyClient.next_track().
    @mcp.tool() async def next_track() -> str: """Skip to next track in queue""" return await client.next_track()
  • SpotifyClient helper method implementing next_track logic using spotipy library.
    async def next_track(self) -> str: """ Skip to the next track. """ try: self.sp.next_track() return "Skipped to next track" except Exception as e: return f"Error skipping track: {str(e)}"

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

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