Skip to main content
Glama

Remove tracks from playlist

remove_tracks_from_playlist
DestructiveIdempotent

Remove one or more tracks from a playlist in a single write while preserving the order of remaining tracks. By default duplicates stay unchanged; enable all_copies to remove every copy.

Instructions

Remove one or more tracks from a playlist in a single write. Keeps the order of the rest. If a track appears more than once in the playlist, nothing is changed unless all_copies is true (then every copy is removed); to remove a single copy use remove_track_from_playlist with position.

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": "remove_tracks_from_playlist"
  }
}

Input Schema

NameRequiredDescriptionDefault
track_idsYes
all_copiesNoRemove every copy of a track that appears more than once. Default false
playlist_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, but the description adds real semantics beyond them: order of remaining tracks is preserved, size of the write is stated, and duplicate tracks are a no-op unless all_copies is true. It stops short of disclosing permission requirements or what happens for track_ids absent from the playlist, so it is strong but not exhaustive.

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?

Two tight sentences plus a parenthetical, front-loaded with the core action and with the duplicate caveat attached to the parameter it concerns. Every clause carries operative information; nothing is 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?

With a 3-parameter schema, rich annotations and no output schema, the definition covers what an agent needs to call it correctly, including the tricky duplicate case. Only secondary details such as permissions or response shape are absent, which is acceptable given the annotation coverage.

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 description coverage is only 33% (only all_copies is documented in-schema), so the description must compensate and largely does: it explains all_copies' default and effect on duplicates, and clarifies that track_ids may hold multiple tracks. playlist_id's meaning as the target playlist is only implicit, which keeps it from a perfect score.

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 ('Remove one or more tracks from a playlist') plus scope ('in a single write'), and explicitly contrasts itself with the sibling remove_track_from_playlist for single-copy removal. An agent can distinguish it from siblings 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly names the alternative tool and the condition that selects it ('to remove a single copy use remove_track_from_playlist with position'), and states the duplicate-handling condition for this tool. When-to-use and when-to-use-something-else are both covered.

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