Skip to main content
Glama

add_tracks_to_playlist

Adds one or more tracks to an existing TIDAL playlist and reports which were added, with reasons for failures. Use when a user asks to put songs into a playlist they can edit.

Instructions

Add tracks to an existing TIDAL playlist.

USE THIS TOOL WHENEVER A USER ASKS FOR:
- "Add these songs to my playlist"
- "Add [track] to [playlist name]"
- "Put these tracks in my playlist"
- Any request to add songs/tracks to an existing playlist

This function adds tracks to a user's existing TIDAL playlist. The playlist
must already exist, and the user must have permission to edit it.

When processing the results of this tool:
1. Confirm how many tracks were added successfully
2. Provide clear feedback about the operation
3. If any tracks failed to add, explain why

Args:
    playlist_id: The TIDAL ID of the playlist (required)
    track_ids: A list of TIDAL track IDs to add to the playlist (required)

Returns:
    A dictionary with "status", "tracks_added". 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>",
      "track_ids": "<track_ids>"
    },
    "name": "add_tracks_to_playlist"
  }
}

Input Schema

NameRequiredDescriptionDefault
track_idsYes
playlist_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A3.8/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 disclose real behavior: edit-permission requirement, a return shape with 'status', 'tracks_added' and an 'error' key on failure, and expected post-call reporting of partial failures. It does not address duplicate tracks, maximum batch size, ordering of appended tracks, or rate limits, which are the remaining behavioral unknowns for a batch mutation.

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 structure is front-loaded and scannable, but the trigger-phrase list plus a duplicate restatement of the purpose sentence consumes space without adding new information. The result-processing steps are useful but read as agent instructions rather than tool documentation.

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 mutation with no output schema, the definition covers the prerequisites, the parameters, and the return/failure structure, which is enough for an agent to call it and report results. Gaps remain around duplicate handling and bulk limits, but nothing essential to a correct invocation is missing.

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 has to explain both parameters, and the Args block does map each one and marks them required. However, the explanations largely restate names and types already visible in the schema, adding only the detail that IDs are TIDAL-specific; nothing is said about array ordering, empty-list behavior, or limits.

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 opening sentence states a specific verb and resource ('Add tracks to an existing TIDAL playlist'), which cleanly separates it from sibling mutations like create_tidal_playlist and remove_tracks_from_playlist. The second sentence merely restates the same fact, adding length rather than distinguishing it further from siblings.

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 explicit trigger phrasings ('Add these songs to my playlist') and a clear precondition that the playlist must already exist and be editable by the user. It never names an alternative tool to use instead, e.g. create_tidal_playlist when no playlist exists or remove_tracks_from_playlist for the inverse, so the when-not guidance is only implied.

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