Skip to main content
Glama
Spotify MCP Server

Spotify MCP Server

by jamiew

Get Tracks

get_tracks
Read-onlyIdempotent

Retrieve detailed metadata, including release dates, for one or more Spotify tracks by ID; batch lookup supports up to 50 tracks in one request.

Instructions

Get detailed information about one or more Spotify tracks.

Args:
    track_ids: Single track ID or list of track IDs (up to 50)

Returns:
    TrackList with 'tracks' containing track metadata including release_date.
    For single ID, returns {'tracks': [track]}.

Note: Batch lookup is much more efficient where it is available - 50 tracks
in 1 API call instead of 50. Spotify withholds the batch endpoint from some
apps, in which case this transparently falls back to one request per track,
so the result is the same either way.

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": {
      "track_ids": "<track_ids>"
    },
    "name": "get_tracks"
  }
}

Input Schema

NameRequiredDescriptionDefault
track_idsYes

Output Schema

NameRequiredDescriptionDefault
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.7/5.0
Behavior4/5

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

Annotations already cover readOnly/idempotent/openWorld, but the description adds meaningful behavior beyond them: the tool prefers a batch endpoint and transparently degrades to one request per track when Spotify withholds it, so output is identical either way. That cost/latency disclosure is exactly the kind of context annotations cannot convey.

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

Conciseness3/5

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

Front-loaded with the purpose, which is good, but the note is redundant — '50 tracks in 1 API call instead of 50' restates itself, and the fallback paragraph could be one clause shorter. The Args/Returns pseudo-docstring formatting repeats structure the schema and output schema already encode.

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

Completeness4/5

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

For a one-parameter lookup with an output schema present, the description covers input shape, return shape, and the hidden batching behavior. The main remaining gap is ID format and behavior on invalid/unknown IDs, which an agent would otherwise discover only by error.

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 carries the burden and does: it documents that track_ids accepts a single string or a list, and caps the list at 50. That is the key semantic an agent needs to avoid an API error, though ID format (URI vs bare ID) is left unspecified.

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 opens with a specific verb+resource: 'Get detailed information about one or more Spotify tracks', making the batch/single duality explicit. It is clearly a metadata lookup by ID, distinct from search_music or get_saved_tracks, but it never names a sibling or states why you'd pick this over get_playlist_tracks/get_album.

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?

Implied usage is 'you already have track IDs and want metadata', and the batch-efficiency note is a genuine usage tip. However, it gives no explicit when-to-use vs alternatives (e.g. search_music when you don't have IDs) and no failure/error guidance for invalid IDs.

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