Skip to main content
Glama

get_artist

Retrieve detailed artist information from Spotify including biography, genres, popularity metrics, and related artists for music research and 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
tokenYesSpotify access token for authentication
artistIdYesSpotify artist ID or URI

Implementation Reference

  • The handler function that executes the get_artist tool logic, delegating to SpotifyService.getArtist
    handler: async (args: any, spotifyService: SpotifyService) => { const { token, artistId } = args; return await spotifyService.getArtist(token, artistId); },
  • Input schema for the get_artist tool, defining required token and artistId parameters
    schema: createSchema({ token: commonSchemas.token(), artistId: commonSchemas.spotifyId("artist"), }),
  • SpotifyService.getArtist helper method that performs the actual API request to Spotify for artist data
    async getArtist(token: string, artistId: string): Promise<SpotifyArtist> { const id = this.extractId(artistId); return await this.makeRequest<SpotifyArtist>(`artists/${id}`, token); }
  • Registration of artistTools (including get_artist) into the central allTools registry used by ToolRegistrar
    export const allTools: ToolsRegistry = { ...albumTools, ...artistTools, ...trackTools, ...playlistTools, ...playbackTools, ...userTools, ...searchTools, };
  • Instantiation of ToolRegistrar in MCP server, which registers all tools including get_artist for MCP usage
    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