Skip to main content
Glama

find_duplicates_in_playlist

Identifies duplicate tracks in a Spotify playlist, including repeated URIs and relinked copies of the same song under different URIs. Helps clean up playlists.

Instructions

Find duplicate tracks in a playlist: repeated URIs plus relinked copies of the same song appearing under different URIs.

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
Behavior3/5

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

With no annotations, the description must carry the disclosure burden. It presents the tool as a read-only 'find' operation and specifies the detection behavior (repeated URIs plus relinked copies). It does not explicitly state non-mutation, limits, or error behavior, but the verb and duplicate taxonomy provide adequate transparency for a lookup-only tool.

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?

One compact sentence that front-loads the core action and uses a colon to define the duplicate scope. There is no filler, repetition of schema details, or unnecessary elaboration.

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?

The tool is low complexity and the schema covers parameter semantics and response format choices. The description covers the central duplicate-detection semantics. It could be more complete by explicitly noting it does not modify the playlist or pointing to the sibling for cross-playlist duplicates, but nothing essential is missing for calling it correctly.

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?

The schema already describes all three parameters (playlist_id, max_results, response_format) with 100% coverage, so the description does not need to add parameter detail. It adds no new parameter meaning beyond the schema, so the baseline 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?

States a specific verb ('Find'), resource ('duplicate tracks in a playlist'), and defines the two duplicate categories it handles (repeated URIs and relinked copies). This scope clearly distinguishes it from siblings like find_duplicate_tracks_across_playlists and removal tools.

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?

The description embeds a scope cue ('in a playlist') that implies single-playlist analysis rather than cross-playlist or library-wide checks. However, it does not explicitly state when to choose this tool over find_duplicate_tracks_across_playlists, remove_duplicate_playlist_items, or find_duplicate_saved_tracks.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/NovaLux12/spotify-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server