Skip to main content
Glama
superseoworld

MCP Spotify Server

get_artist

Retrieve detailed Spotify catalog information for an artist using their Spotify ID or URI to access artist profiles, discographies, and related data.

Instructions

Get Spotify catalog information for an artist

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe Spotify ID or URI for the artist

Implementation Reference

  • The core implementation of the 'get_artist' tool. Extracts the Spotify artist ID from the input and makes an API request to retrieve the artist's catalog information.
    async getArtist(args: ArtistArgs) {
      const artistId = this.extractArtistId(args.id);
      return this.api.makeRequest(`/artists/${artistId}`);
    }
  • TypeScript interface defining the input arguments for the get_artist tool, consisting of the required 'id' field.
    export interface ArtistArgs {
      id: string;
    }
  • src/index.ts:141-154 (registration)
    Registration of the 'get_artist' tool in the ListTools response, providing name, description, and input schema specification.
    {
      name: 'get_artist',
      description: 'Get Spotify catalog information for an artist',
      inputSchema: {
        type: 'object',
        properties: {
          id: {
            type: 'string',
            description: 'The Spotify ID or URI for the artist'
          }
        },
        required: ['id']
      },
    },
  • src/index.ts:710-716 (registration)
    Dispatch logic in the CallToolRequest handler that validates arguments and delegates to the ArtistsHandler.getArtist method.
    case 'get_artist': {
      const args = this.validateArgs<ArtistArgs>(request.params.arguments, ['id']);
      const result = await this.artistsHandler.getArtist(args);
      return {
        content: [{ type: 'text', text: JSON.stringify(result, null, 2) }],
      };
    }
  • Helper method used by getArtist to normalize Spotify artist IDs or URIs to plain IDs.
    private extractArtistId(id: string): string {
      return id.startsWith('spotify:artist:') ? id.split(':')[2] : id;
    }
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. While 'Get' implies a read-only operation, it doesn't specify authentication requirements, rate limits, error conditions, or what 'catalog information' includes (e.g., basic metadata vs. detailed analytics). This leaves significant gaps for an agent to understand operational constraints.

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 immediately conveys the core functionality without unnecessary words. Every element ('Get', 'Spotify catalog information', 'for an artist') serves a clear purpose, making it optimally 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 insufficiently complete. As a read operation in an API context, it should ideally mention authentication needs, rate limiting, or response format expectations. The current description leaves too many operational questions unanswered for effective agent use.

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 single parameter 'id' clearly documented as accepting 'Spotify ID or URI'. The description doesn't add any parameter semantics beyond what the schema already provides, so it meets the baseline for high schema coverage without compensating value.

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 action ('Get') and resource ('Spotify catalog information for an artist'), making the purpose immediately understandable. However, it doesn't explicitly differentiate this tool from sibling tools like 'get_multiple_artists' or 'get_artist_albums', which would require more specific scope clarification.

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. With sibling tools like 'get_multiple_artists' (for batch retrieval) and 'get_artist_albums' (for related data), there's no indication of when this single-artist lookup is preferred or what its limitations might be.

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