Skip to main content
Glama
marcelmarais

Spotify MCP Server

by marcelmarais

resumePlayback

Resume Spotify music playback on your active device. Use this tool to restart paused songs or playlists.

Instructions

Resume Spotify playback on the active device

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deviceIdNoThe Spotify device ID to resume playback on

Implementation Reference

  • The handler function for the 'resumePlayback' tool. It resumes Spotify playback on the specified device ID (or active device) using the Spotify API.
      handler: async (args, _extra: SpotifyHandlerExtra) => {
        const { deviceId } = args;
    
        await handleSpotifyRequest(async (spotifyApi) => {
          await spotifyApi.player.startResumePlayback(deviceId || '');
        });
    
        return {
          content: [
            {
              type: 'text',
              text: 'Playback resumed',
            },
          ],
        };
      },
    };
  • Input schema for the 'resumePlayback' tool, defining an optional 'deviceId' parameter.
    schema: {
      deviceId: z
        .string()
        .optional()
        .describe('The Spotify device ID to resume playback on'),
    },
  • src/play.ts:506-506 (registration)
    The 'resumePlayback' tool is included in the 'playTools' array export.
    resumePlayback,
  • src/index.ts:12-14 (registration)
    All tools from playTools (including 'resumePlayback') are registered to the MCP server.
    [...readTools, ...playTools, ...albumTools].forEach((tool) => {
      server.tool(tool.name, tool.description, tool.schema, tool.handler);
    });
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the action but doesn't cover critical aspects like required permissions (e.g., Spotify Premium subscription), side effects (e.g., resumes from last position), error conditions (e.g., no active device), or rate limits. For a mutation tool with zero annotation coverage, this leaves significant gaps in understanding its behavior.

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

Conciseness5/5

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

The description is a single, efficient sentence that directly states the tool's purpose without any redundant words. It's appropriately sized for a simple action tool and front-loads the essential information. Every word earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given this is a mutation tool with no annotations and no output schema, the description is insufficiently complete. It doesn't explain what happens on success (e.g., playback resumes), possible return values, error scenarios, or dependencies like requiring an active Spotify session. For a tool that changes system state, more contextual information is needed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 100%, with the single parameter 'deviceId' fully documented in the schema. The description adds no additional parameter information beyond what the schema provides (e.g., it doesn't clarify what happens if deviceId is omitted vs. provided). This meets the baseline expectation when the schema handles parameter documentation.

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 ('Resume Spotify playback') and the target resource ('on the active device'), distinguishing it from sibling tools like pausePlayback, playMusic, skipToNext, etc. It uses a precise verb+resource combination that leaves no ambiguity about its function.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., whether playback must be paused first), when not to use it (e.g., if no active device exists), or how it relates to similar tools like playMusic or pausePlayback. The agent must infer usage from the tool name alone.

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

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