Skip to main content
Glama
Spotify MCP Server

Spotify MCP Server

by jamiew

Get Playlist

get_playlist
Read-onlyIdempotent

Retrieve basic metadata for a Spotify playlist by ID, such as name and details, without tracks. Use the separate playlist tracks tool when you need track listings.

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.

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": {
      "playlist_id": "<playlist_id>"
    },
    "name": "get_playlist"
  }
}

Input Schema

NameRequiredDescriptionDefault
playlist_idYes

Output Schema

NameRequiredDescriptionDefault
idYes
nameYes
ownerNo
publicNo
tracksNo
descriptionNo
total_tracksNo

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

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

Annotations already declare readOnlyHint=true, idempotentHint=true and openWorldHint=true, so safety is covered; the description adds real value by stating the response omits tracks and that pagination lives in a different tool. It does not mention error behavior for invalid IDs or auth requirements, which keeps it from a 5.

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 Args/Returns/Note scaffolding plus a closing note repeats the same fact three times: no tracks, use get_playlist_tracks. The message is front-loaded and understandable, but redundant sentences dilute it and the Returns block duplicates what the output schema already provides.

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?

With one required parameter, an output schema present, and annotations covering the safety profile, the description supplies what is needed to select and call the tool. The one residual gap is the playlist_id format, which neither schema nor description pins down.

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

Parameters3/5

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

Schema description coverage is 0%, so the description carries the full burden for the single parameter. It states 'playlist_id: Spotify playlist ID', which identifies the parameter's meaning but does not specify the expected format (e.g., base-62 ID versus URI/URL), leaving an ambiguity an agent could hit.

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 names a specific verb and resource ('Get basic information about a Spotify playlist') and explicitly differentiates itself from the sibling get_playlist_tracks by stating it returns 'Playlist metadata (no tracks)'. The phrase 'basic information' is slightly vague about which metadata fields are returned, keeping it just short of a 5.

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?

It gives clear routing guidance: for tracks, use get_playlist_tracks, and it notes that tool 'supports full pagination for large playlists', which is a useful selection criterion. It does not address cases like when to use list_playlists versus get_playlist, but the primary alternative is handled well.

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