Skip to main content
Glama

get_playlist_snapshot

Read-onlyIdempotent

Fetch a Spotify playlist's snapshot ID and item count to detect changes before updates and support optimistic concurrency.

Instructions

Expose snapshot_id + item count for optimistic concurrency. Quota: 2 GETs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
max_resultsNoMax items to return (default: SPOTIFY_MCP_MAX_ITEMS env or 50)
playlist_idYesPlaylist ID, spotify:playlist: URI, or URL
response_formatNo'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API objectconcise

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.31.0
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / playlist_id / description
      Added value: +"Playlist ID, spotify:playlist: URI, or URL"
  2. Addedv1.26.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare read-only and idempotent behavior. The description adds useful context beyond annotations: the quota cost (2 GETs) and the concurrency reason for requesting snapshot_id, though it does not detail return shape or pagination.

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 short sentences/fragments with zero filler. It front-loads the returned values and then the quota constraint, so every element 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 simple read-only snapshot tool with supporting annotations and a fully described schema, the description states the core return values and quota cost. It could say more about how max_results interacts with the count or what response_format controls, but it is largely complete.

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 playlist_id, max_results, and response_format are already documented in the schema. The description adds no parameter-specific syntax, defaults, or selection guidance, so the baseline of 3 applies.

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?

States the specific data it exposes (snapshot_id and item count) and a purpose (optimistic concurrency), which distinguishes it from playlist-item tools. However, it never says 'playlist' and does not explicitly contrast itself with siblings like get_playlist or get_playlist_items.

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?

Mentions optimistic concurrency as a use context and quota cost, implying when it is useful. It does not give explicit when-not guidance or name alternative tools for cases where full playlist data or items are needed.

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