Skip to main content
Glama

dedupe_playlist_apply

Remove duplicate tracks from a Spotify playlist, keeping the first or last occurrence. Backs up items locally and atomically replaces the playlist; preview with dry-run, then commit.

Instructions

Remove duplicate uris from a playlist keeping the first (or last) occurrence: backs up the current items to a local file first, then rewrites via one atomic replace. dry_run defaults to TRUE. Quota: 🟢 GET + 1 local write + 1 PUT when committing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keepNoWhich occurrence to keep. Default first
dry_runNoPreview only: perform the read side and return a PLAN without changing anything. Pass false to commit. Default true
playlist_idYesPlaylist to dedupe (ID or spotify:playlist: URI)
response_formatNo'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API objectconcise
Behavior4/5

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

With no annotations, the description carries the transparency burden and does well: it discloses that current items are backed up locally before rewriting, that rewriting happens through one atomic replace, that dry_run defaults to TRUE, and what quota the operation consumes. It does not cover ownership requirements or failure behavior, but the key safety-relevant behavior is clearly disclosed.

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 dense, front-loaded sentences cover purpose, safety behavior, default mode, and quota with no filler. Every sentence earns its place, and the most important behavioral information appears early.

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 mutating tool with no annotations and no output schema, the description covers the essential context: what it does, the backup-first behavior, atomic replace, dry_run default, and quota. It is slightly incomplete in not describing when to prefer the plan-only sibling or what the dry-run plan looks like, but the parameter descriptions partially fill that gap.

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 parameters, including defaults and enums. The description adds slight framing by mentioning keeping 'first (or last)' occurrences and dry_run defaulting to TRUE, but it does not add meaningful semantic detail beyond what the schema already provides. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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: removing duplicate URIs from a playlist while keeping the first or last occurrence. It also clarifies the mutation is applied via an atomic replace after a backup. However, it does not explicitly distinguish itself from closely related siblings like dedupe_playlist_plan or remove_duplicate_playlist_items, so some sibling differentiation is missing.

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 implies usage context: dry_run defaults to TRUE, and committing involves a backup plus an atomic replace. It communicates the safe preview-by-default workflow and quota expectations, but it does not explicitly say when to use this tool versus dedupe_playlist_plan or other playlist-dedupe alternatives, nor does it state any exclusions.

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