Skip to main content
Glama
superseoworld

MCP Spotify Server

get_current_user_playlists

Retrieve a list of playlists owned or followed by the current Spotify user, with options to limit results and offset starting position for pagination.

Instructions

Get a list of the playlists owned or followed by the current Spotify user

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of playlists to return (1-50)
offsetNoThe index of the first playlist to return

Implementation Reference

  • The core handler function that implements the tool logic by making a Spotify API request to /me/playlists with pagination parameters.
    async getCurrentUserPlaylists(args: GetCurrentUserPlaylistsArgs) {
      const { limit, offset } = args;
    
      const params = {
        ...(limit !== undefined && { limit }),
        ...(offset !== undefined && { offset })
      };
    
      return this.api.makeRequest(
        `/me/playlists${this.api.buildQueryString(params)}`
      );
    }
  • TypeScript interface defining the input arguments for the get_current_user_playlists tool, extending PaginationParams.
    export interface GetCurrentUserPlaylistsArgs extends PaginationParams {
      limit?: number;
      offset?: number;
    }
  • src/index.ts:877-883 (registration)
    Dispatch handler in the main switch statement that routes the tool call to the playlistsHandler.getCurrentUserPlaylists method.
    case 'get_current_user_playlists': {
      const args = this.validateArgs<GetCurrentUserPlaylistsArgs>(request.params.arguments || {}, []);
      const result = await this.playlistsHandler.getCurrentUserPlaylists(args);
      return {
        content: [{ type: 'text', text: JSON.stringify(result, null, 2) }],
      };
    }
  • src/index.ts:620-639 (registration)
    Tool registration in the ListTools response, defining the name, description, and input schema for the tool.
    {
      name: 'get_current_user_playlists',
      description: 'Get a list of the playlists owned or followed by the current Spotify user',
      inputSchema: {
        type: 'object',
        properties: {
          limit: {
            type: 'number',
            description: 'Maximum number of playlists to return (1-50)',
            minimum: 1,
            maximum: 50
          },
          offset: {
            type: 'number',
            description: 'The index of the first playlist to return',
            minimum: 0
          }
        }
      },
    },
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 mentions the scope ('owned or followed by the current Spotify user') but fails to describe critical behaviors such as authentication requirements, rate limits, pagination handling (implied by limit/offset parameters), or the response format. This leaves significant gaps for a tool that likely requires user context.

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 front-loads the core purpose without unnecessary words. It earns its place by specifying the resource scope ('owned or followed by the current Spotify user'), making it appropriately concise and well-structured.

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 the lack of annotations and output schema, the description is incomplete for a tool that retrieves user-specific data. It omits essential context such as authentication needs, response structure, error handling, and how it differs from sibling playlist tools. The high schema coverage doesn't compensate for these behavioral gaps.

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 input schema has 100% description coverage, clearly documenting both parameters (limit and offset) with constraints. The description adds no additional parameter semantics beyond what the schema provides, so it meets the baseline score of 3 for adequate but not enhanced parameter understanding.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('Get') and resource ('list of the playlists owned or followed by the current Spotify user'), making the purpose immediately understandable. However, it doesn't explicitly differentiate from sibling tools like 'get_featured_playlists' or 'get_category_playlists', which also retrieve playlists but with different scopes or filters.

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 like 'get_featured_playlists' or 'get_category_playlists'. It lacks context about prerequisites (e.g., authentication state) or exclusions, leaving the agent to infer usage based on 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/superseoworld/mcp-spotify'

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