Skip to main content
Glama
jamiew

Spotify MCP Server

by jamiew

Get Tracks

get_tracks
Read-onlyIdempotent

Retrieve detailed metadata for Spotify tracks by ID, including release date, with batch lookup support for up to 50 tracks.

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
track_idsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
tracksYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.6.1

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint, idempotentHint, openWorldHint), the description discloses a meaningful behavioral trait: batch lookup may be withheld by Spotify and the tool transparently falls back to one request per track while guaranteeing the same result. This is exactly the kind of non-obvious behavior that saves an agent from assuming API limitations. It also clarifies the return shape for single vs. multiple IDs.

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?

The description is well-structured with a front-loaded summary followed by Args, Returns, and Note sections. Each section adds necessary context. The note is slightly verbose ('50 tracks in 1 API call instead of 50' could be clearer), but every sentence earns its place and no extraneous content is present.

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?

With an output schema present, the description need not enumerate every return field; it still highlights release_date and the single-ID return shape. Annotations cover safety (readOnly) and idempotency, while the description covers the parameter limit and fallback behavior. Nothing essential for invoking this tool correctly is missing.

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

Parameters5/5

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

The schema provides only the type (string or array of strings) with zero description coverage. The description compensates fully by stating that track_ids accepts a single ID or list, the 50-track cap, and the batch/fallback behavior tied to that parameter. An agent gets all the semantic information needed to construct a valid call.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description starts with a specific verb and resource: 'Get detailed information about one or more Spotify tracks.' This clearly distinguishes it from sibling tools like get_artist, get_album, or get_saved_tracks, which target different resources. The scope is unambiguous and immediately actionable for an agent.

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?

The description implies when to use the tool (when you have track IDs and need their metadata), and the note about batch efficiency adds a relevant usage consideration ('50 tracks in 1 API call'). However, it does not explicitly state alternatives or when not to use this tool compared to siblings like get_saved_tracks or search_music. The guidance is present but implied rather than explicit.

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