Skip to main content
Glama

playlist_intersect

Find tracks common to multiple Spotify playlists. Optionally overwrite a target playlist with the intersection, or preview changes with dry-run mode.

Instructions

Keep only the tracks present in ALL of 2–10 playlists, written as one atomic replace — the missing set op (union/subtract/XOR exist). Without a target it reports the intersection read-only. Quota: 🟢 N GETs + 1 PUT when committing. Also covers: playlist_intersection (same op, unified) — See also: playlist_intersection.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dedupeNoDedupe within the RESULT sequence: keep the first or last occurrence, or none. Default nonenone
dry_runNoPreview only: perform the read side and return a PLAN without changing anything. Default true — pass false to commit.
max_resultsNoMax items to return (default: SPOTIFY_MCP_MAX_ITEMS env or 50)
response_formatNo'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API objectconcise
target_playlist_idNoExisting playlist (ID or spotify:playlist: URI) to ATOMICALLY OVERWRITE with the result. Omit to compute read-only.
source_playlist_idsYesPlaylists to intersect, as IDs or spotify:playlist: URIs (2–10)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.26.1

TDQS

A4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full behavioral disclosure burden. It usefully discloses atomic overwrite semantics, read-only behavior when no target is given, and quota cost (N GETs + 1 PUT when committing). It does not detail failure modes or the exact plan structure returned, but the disclosed mutation behavior is transparent.

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 core explanation is compact and front-loaded, and the quota note is useful. However, the ending 'Also covers: playlist_intersection (same op, unified) — See also: playlist_intersection' is redundant and confusing, undermining the otherwise efficient structure.

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 description, combined with the detailed input schema, covers the operation, source/target semantics, read-only vs. commit behavior, dedupe option, dry-run flag, and quota. The ambiguous relationship with playlist_intersection and lack of output-structure hints are the only noticeable gaps, but they do not prevent correct invocation.

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 six parameters well. The description reinforces key semantics like 2–10 source playlists and target-driven overwrite, but it adds little beyond what the schema already 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 states a specific verb and resource: keep only tracks present in ALL of 2–10 playlists, written as one atomic replace. It also explicitly distinguishes this from the other set operations (union/subtract/XOR), making the tool's purpose immediately clear among many playlist siblings.

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 provides clear context: use this for intersection, with the read-only vs. committing behavior determined by whether a target playlist is provided. It names related set-op siblings (union/subtract/XOR) and references playlist_intersection, though it does not explicitly state when not to use this tool over that sibling.

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