Skip to main content
Glama

get_artist

Retrieve detailed artist information from Spotify, including biography, genres, popularity metrics, and external links, for research, playlist creation, and music discovery.

Instructions

Get comprehensive information about any artist including their biography, genres, and popularity metrics.

🎯 USE CASES: • Research artist background before concerts or festivals • Build artist-focused playlists with complete discography knowledge • Discover artist genres and influences for music recommendations • Analyze artist popularity trends and follower growth • Create detailed artist profiles for music databases

📝 WHAT IT RETURNS: • Artist name, biography, and profile images • Genre classifications and musical styles • Spotify popularity score and follower count • External URLs (official website, social media) • Related artist suggestions and collaborators

🔍 EXAMPLES: • "Get information about Taylor Swift" • "Show me details for artist ID: 06HL4z0CvFAxyc27GXpf02" • "I want to learn about this new artist I discovered" • "Get profile info for the band that sang this song"

💡 TIPS: • Use before exploring an artist's full catalog • Great for understanding an artist's evolution over time • Check follower count to gauge current popularity

⚠️ REQUIREMENTS: • Valid Spotify access token • Artist must exist in Spotify's database

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
artistIdYesSpotify artist ID or URI
tokenYesSpotify access token for authentication

Implementation Reference

  • The MCP tool handler function for 'get_artist' that extracts token and artistId from args and delegates to SpotifyService.getArtist.
    handler: async (args: any, spotifyService: SpotifyService) => { const { token, artistId } = args; return await spotifyService.getArtist(token, artistId); },
  • Input schema definition for the 'get_artist' tool using createSchema for token and artistId parameters.
    schema: createSchema({ token: commonSchemas.token(), artistId: commonSchemas.spotifyId("artist"), }),
  • Registration of all tools including artistTools (containing get_artist) into the central allTools registry used by ToolRegistrar.
    export const allTools: ToolsRegistry = { ...albumTools, ...artistTools, ...trackTools, ...playlistTools, ...playbackTools, ...userTools, ...searchTools, };
  • SpotifyService helper method that performs the actual API call to retrieve artist information from Spotify.
    async getArtist(token: string, artistId: string): Promise<SpotifyArtist> { const id = this.extractId(artistId); return await this.makeRequest<SpotifyArtist>(`artists/${id}`, token); }
  • Instantiation of ToolRegistrar with SpotifyService, which handles MCP tool definitions and execution for all registered tools including get_artist.
    const toolRegistrar = new ToolRegistrar(spotifyService);

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/latiftplgu/Spotify-OAuth-MCP-server'

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