Skip to main content
Glama

diff_playlists

Compare two Spotify playlists to identify tracks exclusive to each and tracks present in both but at different positions, with fully paged results and accurate totals.

Instructions

Compare two playlists fully paged: tracks only in A, only in B (by track ID), and tracks present in both but at different positions. Rendered rows are capped by max_results; totals are always accurate. Also covers: playlist_diff (snapshot diff), playlist_difference_plan (A minus B plan) — See also: playlist_diff, playlist_difference_plan.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYesFirst playlist, as ID or spotify:playlist: URI
bYesSecond playlist, as ID or spotify:playlist: URI
dry_runNoPreview only: validate inputs and describe exactly what would change without performing it
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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.26.1

TDQS

A3.9/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses meaningful operational traits: the tool is fully paged, rendered rows are capped by max_results, and totals remain accurate even when rows are limited. It does not explicitly confirm that a comparison is non-mutating or describe error cases, but for a read-style diff tool the stated behaviors are substantial.

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 behavior is front-loaded and dense, which is good. However, the end of the description is redundant: 'Also covers: playlist_diff (snapshot diff), playlist_difference_plan (A minus B plan)' is immediately followed by 'See also: playlist_diff, playlist_difference_plan', repeating the same tool names and weakening the overall structure.

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 explains the main result categories and the max_results/totals behavior, which is helpful given there is no output schema. However, it leaves ambiguity about how max_results applies across the diff buckets, what the actual response shape looks like, and whether 'fully paged' means automatic internal pagination or requires further calls. These gaps matter because no output schema exists to fill them.

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 a, b, dry_run, max_results, and response_format thoroughly. The description adds conceptual meaning to a and b by explaining what comparisons happen between them, but it does not need to compensate for missing schema documentation. A 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?

The description starts with a clear, specific verb and resource: compare two playlists, and enumerates exactly what the comparison yields (tracks only in A, only in B by track ID, and position differences). It also distinguishes itself from playlist_diff and playlist_difference_plan, so an agent can tell this tool apart from closely named siblings without opening schemas.

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 most likely alternatives, playlist_diff and playlist_difference_plan, and tags them with short scopes ('snapshot diff', 'A minus B plan'), which gives useful context for choosing among siblings. It stops short of explicit 'use X when / use Y instead' guidance, but the differentiation is clear enough for an agent to reason about the intended use.

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