Skip to main content
Glama

find_duplicates_in_playlist

Detect duplicate tracks in a Spotify playlist: repeated URIs and relinked copies of the same song under different URIs, enabling playlist cleanup.

Instructions

Find duplicate tracks in a playlist: repeated URIs plus relinked copies of the same song appearing under different URIs. Also covers: find_duplicate_tracks_across_playlists (cross-playlist), find_duplicate_playlists (playlist-level), remove_duplicate_playlist_items — See also: find_duplicate_tracks_across_playlists, find_duplicate_playlists, remove_duplicate_playlist_items.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
max_resultsNoMax items to return (default: SPOTIFY_MCP_MAX_ITEMS env or 50)
playlist_idYesPlaylist ID
response_formatNo'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API objectconcise

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.26.1

TDQS

A3.7/5.0
Behavior3/5

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

There are no annotations, so the description carries the behavioral burden. It does convey a non-mutating 'find' operation and defines what counts as a duplicate, but it does not explicitly state that the playlist is not modified, nor does it disclose return shape, output limits, or any API/auth considerations.

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 main purpose is front-loaded and the sibling scopes are useful. However, the 'Also covers' phrasing is ambiguous, and the three sibling tool names are listed twice, adding redundancy and mild confusion.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a low-complexity find tool, the description covers the core domain and routes to siblings, with parameters fully documented in the schema. It is not fully complete because there is no output schema and no explicit statement about read-only behavior or result format beyond the schema-provided defaults.

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 100%, so the schema already documents all three parameters, including defaults, enums, and limits. The description adds no parameter-specific meaning beyond tying the tool to a playlist context, so the baseline of 3 is appropriate.

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?

The description states a specific verb and resource: it finds duplicate tracks in a playlist, explicitly covering both repeated URIs and relinked same-song variants. It also differentiates this tool from siblings by labeling them as cross-playlist, playlist-level, and removal tools, so an agent can identify the exact scope.

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 description names the relevant alternatives—find_duplicate_tracks_across_playlists, find_duplicate_playlists, and remove_duplicate_playlist_items—and clarifies their scopes in parentheses. It does not explicitly say 'use this when duplicates are within a single playlist; otherwise use X,' but the scoped alternative list makes the intended choice clear.

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

Deploy Server

Other Tools