Skip to main content
Glama

playlist_diff

Compare two Spotify playlists to find tracks only in the first, only in the second, and shared by both, while checking whether common tracks appear in the same relative order. Read-only comparison.

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.

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
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. It discloses the read-only nature ('Read-only') and API cost ('Quota: 🟢 4 GETs'), which are the most important behavioral traits for an agent weighing safety and resource usage. It does not cover edge cases like identical playlists or duplicate tracks, but the core safety/cost profile is clearly stated.

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?

Two tight sentences with zero filler. The core computation is front-loaded, followed by essential safety and cost disclosures. Every clause earns its place.

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 moderately complex comparison tool with no output schema and no annotations, the description covers the essential ground: operation semantics, output categories, order check, read-only safety, and quota cost. It could be more complete about return representation and edge-case behavior, but the response_format parameter partially covers output expectations.

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. The description adds modest value by framing 'A' and 'B' semantics via 'only in A, only in B', which maps cleanly onto playlist_a_id and playlist_b_id, but it does not add details about format, pagination, or response_format beyond what the schema already documents.

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 specifies a precise operation: comparing two playlists with explicit output categories (only in A, only in B, in both) plus a relative-order check. This distinguishes it from siblings like playlist_intersect, playlist_subtract, and compare_playlist_covers without needing to inspect their 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 clearly implies when to use the tool: whenever a full set-difference comparison including ordering is needed. However, it does not explicitly name alternatives or state when-not-to-use conditions, despite many comparison siblings existing (playlist_intersect, playlist_symmetric_difference, diff_playlists).

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