Skip to main content
Glama

find_duplicate_playlists

Scan your Spotify playlists to identify exact and near-duplicate track sets, using Jaccard overlap threshold, to help clean up redundant playlists.

Instructions

Scan your playlists for exact and near-duplicate track sets. Exact = identical URI sets (order-insensitive); near = Jaccard overlap >= threshold. Read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNoPreview only: validate inputs and describe exactly what would change without performing it
scan_capNoMax items walked per playlist (default fetchAllCap)
thresholdNoJaccard threshold for near-duplicates (default 0.85)
max_playlistsNoHow many playlists to scan (default 50, max 100)
Behavior4/5

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

With no annotations provided, the description carries the full burden of safety disclosure, and it delivers the critical trait: 'Read-only.' This is especially valuable in a sibling set full of mutating operations (dedupe_playlist_apply, remove_duplicate_playlist_items, clean_all_playlists). The exact/near definitions also add algorithmic transparency. It could have gone further by noting performance implications (up to 100 playlists × 10,000 tracks with pairwise Jaccard comparisons) or expected output shape, which keeps it from a 5.

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?

Three sentences, every one earning its place: sentence one states the core purpose, sentence two defines the two modes with precise formal semantics, sentence three declares the safety trait. The main function is front-loaded and there is zero filler or redundancy.

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?

The description adequately covers the algorithm and safety for a moderately complex analytical tool, but there is no output schema and the description never states what the tool returns (e.g., list of duplicate playlist pairs with similarity scores). It also does not explicitly differentiate itself from the near-name sibling find_duplicate_tracks_across_playlists. These are meaningful gaps for an agent deciding whether to call the tool and how to consume its result.

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 baseline is 3 and the schema already fully documents all four parameters (dry_run, scan_cap, threshold, max_playlists) with defaults and ranges. The description adds marginal value by defining 'Jaccard overlap >= threshold' in plain terms, which reinforces the threshold parameter's semantics, but it does not elaborate on dry_run, scan_cap, or max_playlists beyond what the schema states.

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 uses a specific verb ('Scan') with a clear resource ('your playlists... track sets') and precisely defines both detection modes: exact = identical URI sets (order-insensitive), near = Jaccard overlap >= threshold. This set-comparison framing distinguishes it from closely-named siblings like find_duplicate_tracks_across_playlists (track-level dedup) and find_duplicates_in_playlist (within a single playlist).

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 use case is implied clearly: call this when you want to find whole playlists that are exact or near copies of each other. However, there is no explicit when-to-use vs when-not-to-use guidance, and no alternative routing despite the large sibling set containing overlap_playlists, playlist_overlap_matrix, and find_duplicate_tracks_across_playlists, which an agent could easily confuse with this tool.

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