Skip to main content
Glama

previous-track

Skip to the previous track in Spotify playback using natural language commands through Claude Desktop integration.

Instructions

Skip to the previous track

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "type": "object" }

Implementation Reference

  • Handler for the 'previous-track' tool. It calls the Spotify API endpoint /me/player/previous with POST to skip to the previous track and returns a success message.
    if (name === "previous-track") { await spotifyApiRequest("/me/player/previous", "POST"); return { content: [ { type: "text", text: "Skipped to previous track.", }, ], }; }
  • index.ts:704-711 (registration)
    Registration of the 'previous-track' tool in the MCP server's tool list, including name, description, and input schema (no parameters required).
    { name: "previous-track", description: "Skip to the previous track", inputSchema: { type: "object", properties: {}, }, },
  • Input schema for 'previous-track' tool: an empty object since no parameters are needed.
    inputSchema: { type: "object", properties: {}, },

Other Tools

Related 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/imprvhub/mcp-claude-spotify'

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