Skip to main content
Glama

get_playlist_tracks

Retrieves all tracks from a specified TIDAL playlist, including track details and total count, so users can list and inspect songs in their playlists.

Instructions

Retrieves all tracks from a specified TIDAL playlist.

USE THIS TOOL WHENEVER A USER ASKS FOR:
- "Show me the songs in my playlist"
- "What tracks are in my [playlist name] playlist?"
- "List the songs from my playlist"
- "Get tracks from my playlist"
- "View contents of my TIDAL playlist"
- Any request to see what songs/tracks are in a specific playlist

This function retrieves tracks from a specific playlist in the user's TIDAL
account. By default, it fetches ALL tracks using automatic pagination.
The playlist_id must be provided, which can be obtained from the
get_user_playlists() function.

When processing the results of this tool:
1. Present the playlist information (title, description, track count)
2. List the tracks in a clear, organized format with track name, artist, album
3. Include track durations where available
4. Mention the total number of tracks in the playlist
5. If there are many tracks, highlight interesting patterns or variety

Args:
    playlist_id: The TIDAL ID of the playlist to retrieve (required)
    limit: Maximum number of tracks to retrieve (default: None = all tracks)

Returns:
    A dictionary with "playlist_id", "tracks", and "total_tracks".
    Returns an "error" key on failure.

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_tracks"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
playlist_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does meaningful work: it discloses that pagination is automatic and that all tracks are fetched by default, and it documents the return shape ('playlist_id', 'tracks', 'total_tracks') plus an 'error' key on failure. It omits authentication/login requirements and any behavior when limit is smaller than the playlist size.

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?

Purpose is correctly front-loaded, but the five trigger bullets restate the same request in near-identical phrasing, and the five-step 'when processing the results' block is output-formatting advice rather than tool-selection content. Roughly half the text could be cut without losing guidance.

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 two-parameter read tool with no annotations and no output schema, the definition covers invocation prerequisites, default pagination behavior, and return keys including the error path. Missing authentication context and limit-truncation semantics are the only notable gaps.

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 must compensate and largely does: playlist_id is described as the TIDAL ID obtainable from get_user_playlists(), and limit is described as a maximum with default None meaning all tracks. The one gap is that it never explains what happens when limit is below the total — whether a truncated list is returned or pagination is bypassed.

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?

States a specific verb and resource — 'Retrieves all tracks from a specified TIDAL playlist' — and the 'all tracks / automatic pagination' clause separates it from a limited or search-style listing. Read against siblings such as add_tracks_to_playlist, remove_tracks_from_playlist, and get_user_playlists, an agent can identify this as the read-only content fetch without opening any schema.

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?

Provides an explicit trigger list of user phrasings and states the prerequisite that playlist_id comes from get_user_playlists(), which is real routing guidance. It stops short of stating when NOT to use it (for example, discovering playlists versus reading one, or searching tracks across the library), so it names a feeder tool rather than a true alternative.

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