Skip to main content
Glama
jamiew

Spotify MCP Server

by jamiew

Get Playlist

get_playlist
Read-onlyIdempotent

Retrieve basic metadata for a Spotify playlist by ID, including name and owner, without returning tracks. Use to get quick playlist details.

Instructions

Get basic information about a Spotify playlist.

Args:
    playlist_id: Spotify playlist ID

Returns:
    Playlist metadata (no tracks - use get_playlist_tracks for tracks)

Note: This returns playlist info only. For tracks, use get_playlist_tracks
which supports full pagination for large playlists.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
playlist_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
nameYes
ownerNo
publicNo
tracksNo
descriptionNo
total_tracksNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 readOnlyHint=true and idempotentHint=true, so the safe read-only nature is covered. The description adds an important behavioral boundary by stating that the result is playlist metadata only and excludes tracks. This is useful context beyond the annotations, though it does not detail error behavior or auth requirements.

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?

The description is clearly structured with Args, Returns, and a Note, making it easy to scan. However, it is redundant: the Returns line already says 'no tracks - use get_playlist_tracks for tracks', and the Note repeats the same instruction. A more concise version would remove this duplication.

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 simple single-parameter read-only tool, the description covers the core information: what it does, its argument, its return scope, and the correct sibling for tracks. The main gap is the lack of playlist_id format guidance, but the output schema and annotations carry much of the burden. Overall, an agent can use this tool correctly with minimal inference.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate. It only says 'playlist_id: Spotify playlist ID', which adds little beyond the schema property name 'Playlist Id'. It does not explain the expected format, how to extract the ID from a playlist URL, or provide any example, leaving a meaningful gap for a required parameter.

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 clearly states 'Get basic information about a Spotify playlist' and immediately distinguishes itself from the sibling get_playlist_tracks by explicitly saying 'no tracks'. This makes the tool's scope obvious and prevents confusion with track-related playlist tools.

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

Usage Guidelines4/5

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

The description explicitly says to use get_playlist_tracks for tracks and notes that it supports full pagination. This gives a clear when-to-use alternative for the main ambiguity, though it does not mention when to use list_playlists or other playlist-related siblings. Overall, the guidance is strong for the most likely confusion.

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