Skip to main content
Glama

remove_tracks_from_playlist

Remove specific tracks from a TIDAL playlist by track IDs or 0-based position indices, so users can delete unwanted songs and confirm how many were removed.

Instructions

Remove tracks from a TIDAL playlist by track IDs or position indices.

USE THIS TOOL WHENEVER A USER ASKS FOR:
- "Remove this song from my playlist"
- "Delete tracks from [playlist name]"
- "Take out these songs from the playlist"
- Any request to remove songs/tracks from a playlist

This function removes specific tracks from a user's TIDAL playlist. You can
remove tracks either by their TIDAL IDs or by their position in the playlist
(0-based index).

When processing the results of this tool:
1. Confirm how many tracks were removed successfully
2. Provide clear feedback about what was removed
3. If using indices, remind the user they are 0-based (first track = index 0)

Args:
    playlist_id: The TIDAL ID of the playlist (required)
    track_ids: A list of TIDAL track IDs to remove (use this OR indices)
    indices: A list of track positions (0-based) to remove (use this OR track_ids)

Returns:
    A dictionary with "status", "tracks_removed". 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": "remove_tracks_from_playlist"
  }
}

Input Schema

NameRequiredDescriptionDefault
indicesNo
track_idsNo
playlist_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose the return keys ('status', 'tracks_removed', 'error'), the 0-based index convention, and that track_ids/indices are alternatives. It is silent on the most consequential behaviors: what happens if both track_ids and indices are supplied, whether multi-index removal shifts positions (remove in original order vs sequentially), permission/auth requirements, and whether removal is undoable.

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 and trigger phrases are front-loaded and the Args/Returns structure is scannable, but the 'When processing the results of this tool' numbered block is procedural prompt guidance that partially restates the Returns section, and the sentence 'This function removes specific tracks from a user's TIDAL playlist' duplicates the opening line.

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?

There is no output schema, and the description compensates by describing the response shape and the failure key; all three parameters are documented despite 0% schema coverage. The remaining gap is behavioral rather than descriptive: the index-shift semantics for multi-track removal and the both-parameters-supplied case are undefined for a destructive mutation with no annotations.

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% — the schema supplies only bare titles and untyped array items — so the Args block is doing real work: it marks playlist_id as required, states both lists are alternatives, and specifies that indices are 0-based. It still doesn't state element types or that track_ids are TIDAL IDs the agent must resolve first via search_tracks, which keeps it from a 5.

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 first sentence gives a precise verb, resource, and both selection mechanisms (track IDs or position indices), so the agent knows exactly what operation this performs. It is clearly distinct from the add/reorder/delete-playlist siblings by implication, but it never names or contrasts an adjacent tool (e.g. delete_tidal_playlist removing the whole playlist), so it falls 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?

The 'USE THIS TOOL WHENEVER A USER ASKS FOR' block with quoted example utterances gives strong, concrete when-to-use guidance that maps directly onto user phrasing. It offers no exclusions or named alternatives, so the agent must infer that whole-playlist deletion belongs to delete_tidal_playlist rather than here.

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