Skip to main content
Glama
Spotify MCP Server

Spotify MCP Server

by jamiew

Get Artist

get_artist
Read-onlyIdempotent

Retrieve details for one or more Spotify artists in a single batched request, cutting repeated API calls, and get top tracks when a single artist is requested.

Instructions

Get details for one or more Spotify artists, batched into a single request.

Args:
    artist_ids: One artist ID/URI, or a list of up to 50. A list costs one
        Spotify request rather than one per artist.
Returns:
    ArtistInfo whose `artists` follows the order requested. `top_tracks` is
    filled only when a single artist was requested, and is empty rather than
    an error when Spotify withholds that endpoint.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "artist_ids": "<artist_ids>"
    },
    "name": "get_artist"
  }
}

Input Schema

NameRequiredDescriptionDefault
artist_idsYes

Output Schema

NameRequiredDescriptionDefault
artistsYes
top_tracksYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.8.1
    • addedOutput schema / $defs / Track / properties / show
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Show"
      +}
    • addedOutput schema / $defs / Track / properties / show_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Show Id"
      +}
    • addedOutput schema / $defs / Track / properties / type
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Type"
      +}
  2. Addedv0.6.1

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and openWorld, so safety is covered. The description adds real behavioral detail beyond them: batching collapses N lookups into one request, results preserve requested order, and `top_tracks` is populated only for single-artist calls and returns empty instead of erroring when Spotify withholds it.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the one-line purpose, then Args/Returns sections that are scannable and free of filler. The Returns text partially restates what the output schema already encodes, but the conditional `top_tracks` behavior justifies its presence.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter read tool with an output schema and safety annotations already in place, nothing an agent needs is missing: input forms, batch limit, ordering guarantee, and the conditional/empty-result behavior of `top_tracks` are all covered.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must carry parameter meaning, and it does: it accepts a single ID or URI as well as a list, and caps the list at 50. It does not describe ID format validity or behavior when some IDs are invalid, which keeps it below the top score.

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?

States a specific verb and resource ('Get details for one or more Spotify artists') plus the batching scope, which is more precise than the title alone. It does not explicitly name a sibling such as get_followed_artists or search_music to disambiguate, so differentiation is left implicit in the ID-based input.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: the agent can infer this is the tool for looking up artists when IDs/URIs are already known, and the note that 'a list costs one Spotify request rather than one per artist' gives useful cost context. There is no explicit when-not guidance or named alternative for discovery-by-name.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.