Skip to main content
Glama
Spotify & TMDB Web MCP Server

Spotify & TMDB Web MCP Server

dedupe_playlist

DestructiveIdempotent

Removes duplicate songs from a Spotify playlist while keeping the first occurrence of each track. Use it to clean up repeated entries before playback or sharing.

Instructions

Removes all duplicate songs from a Spotify playlist, keeping only the first occurrence of each song.

Args: playlist_id: The Spotify ID, URI, or URL of the playlist to deduplicate.

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

Input Schema

NameRequiredDescriptionDefault
playlist_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already disclose destructiveHint=true, idempotentHint=true, and openWorldHint=true, so the description only needs to add what annotations can't express. It does exactly that by specifying the retention policy — the first occurrence survives, later duplicates are dropped — which is the single most important non-obvious behavioral detail. It stops short of saying whether the playlist is edited in place, whether order is preserved, or how 'duplicate' is determined (track ID vs. title/artist match).

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

Conciseness4/5

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

The purpose sentence is front-loaded and complete. The Args block slightly restates the same idea ('playlist to deduplicate'), but it is short and the parameter detail is worth the space, so nothing is meaningfully wasteful.

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 single-parameter mutation tool with an output schema and full annotation coverage, the definition supplies what's missing: the retention rule and accepted identifier formats. Remaining gaps — duplicate-matching criteria and in-place edit semantics — are modest given the destructive hint already warns the agent that the playlist will be modified.

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 0%, so the description carries the full burden — and it does, clarifying that playlist_id accepts a Spotify ID, URI, or URL, not just a bare ID. That is meaningful added meaning beyond the schema. It does not state any validation or error behavior for malformed identifiers.

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 ('Removes all duplicate songs from a Spotify playlist') plus the exact retention rule ('keeping only the first occurrence'). No sibling tool does deduplication, so an agent can route here unambiguously 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 Guidelines3/5

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

Usage is implied by the purpose — an agent knows to call this when a playlist has duplicates — but there is no explicit when-to-use vs. when-not guidance, no prerequisite checks (e.g., ownership or auth scope), and no note about alternatives such as manually rebuilding a playlist.

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