Skip to main content
Glama

get_playlist_tracks

Retrieve every track from a Spotify playlist in order, with artist, album, year, duration, popularity and date added, and optionally include each track’s Spotify link.

Instructions

Every track of a loaded playlist, in playlist order: track, artist (with featured artists), album, year, duration, popularity and date added. Reads the local cache, so it always has the full playlist.

Args: playlist: the playlist's name (or a unique part of it), ID or Spotify link. include_links: add each track's Spotify link (longer output).

Input Schema

NameRequiredDescriptionDefault
playlistYes
include_linksNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does add useful context: it reads the local cache, always has the full playlist, preserves playlist order, and describes the returned fields. It stops short of covering error behavior when a playlist name is ambiguous or not loaded, and does not explicitly state read-only status beyond 'reads'.

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

Conciseness5/5

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

The description front-loads the key purpose and scope, then gives a compact Args section with only the two parameters. Every sentence adds useful information, and there is no filler.

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 two-parameter read/list tool with an output schema, the description covers the important behavior: cache source, full playlist, ordering, returned fields, and parameter meanings. It could be slightly more complete by addressing ambiguous playlist names or missing playlists, but it is sufficient for correct invocation.

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?

Schema description coverage is 0%, so the description must compensate, and it does: playlist accepts a name, unique part of a name, ID, or Spotify link, while include_links adds each track's Spotify link and lengthens output. This goes well beyond the bare string/boolean schema.

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 clearly states the resource and scope: every track of a loaded playlist, in playlist order, with listed fields. It distinguishes itself from tools like find_tracks by emphasizing 'loaded playlist' and full local-cache coverage, but it does not explicitly name sibling alternatives such as show_playlist.

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 by 'loaded playlist' and the option to add links, which gives enough context to select it for playlists already loaded into cache. However, there is no explicit when-to-use versus siblings such as show_playlist, find_tracks, or group_tracks.

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