Skip to main content
Glama
superseoworld

MCP Spotify Server

get_multiple_albums

Retrieve Spotify catalog details for multiple albums using their IDs, enabling batch access to album information for up to 20 albums at once.

Instructions

Get Spotify catalog information for multiple albums

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsYesArray of Spotify album IDs or URIs (max 20)

Implementation Reference

  • The main handler function that fetches multiple albums from Spotify API after validation and ID extraction.
    async getMultipleAlbums(args: MultipleAlbumsArgs) {
      if (args.ids.length === 0) {
        throw new McpError(
          ErrorCode.InvalidParams,
          'At least one album ID must be provided'
        );
      }
    
      if (args.ids.length > 20) {
        throw new McpError(
          ErrorCode.InvalidParams,
          'Maximum of 20 album IDs allowed'
        );
      }
    
      const albumIds = args.ids.map(this.extractAlbumId);
      return this.api.makeRequest(`/albums?ids=${albumIds.join(',')}`);
    }
  • TypeScript interface defining the input arguments for getMultipleAlbums.
    export interface MultipleAlbumsArgs {
      ids: string[];
    }
  • src/index.ts:280-294 (registration)
    Tool registration in the listTools response, including name, description, and input schema.
      name: 'get_multiple_albums',
      description: 'Get Spotify catalog information for multiple albums',
      inputSchema: {
        type: 'object',
        properties: {
          ids: {
            type: 'array',
            items: { type: 'string' },
            description: 'Array of Spotify album IDs or URIs (max 20)',
            maxItems: 20
          }
        },
        required: ['ids']
      },
    },
  • src/index.ts:766-772 (registration)
    Dispatch logic in callTool handler that invokes the albums handler.
    case 'get_multiple_albums': {
      const args = this.validateArgs<MultipleAlbumsArgs>(request.params.arguments, ['ids']);
      const result = await this.albumsHandler.getMultipleAlbums(args);
      return {
        content: [{ type: 'text', text: JSON.stringify(result, null, 2) }],
      };
    }
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It states what the tool does but provides no information about rate limits, authentication requirements, error behavior, response format, or whether this is a read-only operation. For a tool that presumably makes API calls, this leaves significant gaps in understanding its operational characteristics.

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 communicates the core purpose without unnecessary words. It's appropriately sized for a straightforward retrieval 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 the lack of annotations and output schema, the description is insufficiently complete. For a tool that retrieves catalog information, users need to know what information is returned, how errors are handled, authentication requirements, and rate limits. The current description only covers the basic purpose, leaving too many operational questions unanswered.

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, with the 'ids' parameter clearly documented as 'Array of Spotify album IDs or URIs (max 20)'. The description adds no additional parameter information beyond what's in the schema, so it meets but doesn't exceed the baseline expectation when schema coverage is complete.

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 ('Spotify catalog information for multiple albums'), making the purpose immediately understandable. It distinguishes from sibling 'get_album' by specifying 'multiple albums', though it doesn't explicitly contrast with other multi-item tools like 'get_multiple_artists' or 'get_multiple_audiobooks'.

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?

No guidance is provided about when to use this tool versus alternatives. The description doesn't mention when to choose this over 'get_album' for single albums, or when batch retrieval is preferred. There's no context about prerequisites, limitations, or typical use cases.

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