Skip to main content
Glama

playlist_diff

Compare two playlists to identify tracks unique to each, tracks in both, and whether shared tracks maintain the same relative order. Get a clear diff result.

Instructions

Compare two playlists: what is only in A, only in B, and in both — plus whether the shared tracks appear in the same relative order. Read-only. Quota: 🟢 4 GETs. Also covers: diff_playlists (live playlist diff), playlist_difference_plan (subtract plan) — See also: diff_playlists, playlist_difference_plan.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
max_resultsNoMax items to return (default: SPOTIFY_MCP_MAX_ITEMS env or 50)
playlist_a_idYesFirst playlist, as ID or spotify:playlist: URI
playlist_b_idYesSecond playlist, as ID or spotify:playlist: URI
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?

With no annotations provided, the description carries the full burden and does well by explicitly stating 'Read-only' and including the quota. It also clarifies what the comparison returns, including order information. It does not cover pagination or error behavior, but that is a minor gap for a read-only comparison.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core description is compact and front-loaded with the comparison semantics, followed by read-only and quota info. The alias/reference section has some redundancy between 'Also covers' and 'See also', which keeps it from being perfectly concise.

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 read-only comparison tool with a well-documented schema, the description covers the operation's purpose, result dimensions, safety profile, quota, and sibling relationships. No output schema exists, but the response_format parameter and description provide enough guidance for 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 parameters are already documented with meaningful descriptions. The tool description adds no extra parameter-level semantics beyond what the schema provides, so the baseline of 3 applies.

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 ('Compare'), specific resources ('two playlists'), and the exact dimensions of comparison (A-only, B-only, both, and order of shared tracks). It also names sibling tools diff_playlists and playlist_difference_plan, making differentiation immediate.

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 surfaces sibling tools and gives brief purpose notes (live playlist diff, subtract plan), but it never explicitly says when to use playlist_diff over those alternatives. Selection is implied rather than stated, and the 'Also covers' phrasing adds ambiguity.

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