Skip to main content
Glama

Get playlist

get_playlist
Read-onlyIdempotent

A playlist's name, owner, followers and description, plus limit tracks (max 100) from offset with lifetime play counts. Use next_offset from the answer to page through long playlists (later pages skip the metadata and cost one request).

Input Schema

NameRequiredDescriptionDefault
limitNoTracks to return (1-100).
offsetNoIndex of the first track (0 = start).
playlistYesSpotify playlist id, spotify:playlist:<id> URI or open.spotify.com/playlist/<id> URL.
include_play_countsNoAdd each track's lifetime play count.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, so the safety bar is met. The description adds genuinely non-obvious behavior: the 100-track cap, that lifetime play counts are attached, and that subsequent pages omit metadata and consume one request each — useful for planning request budgets.

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 payload content is front-loaded, the pagination rule follows. Every clause carries information an agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description carries the return-value burden and does so — it lists the metadata fields, the track slice, play counts, and the `next_offset` control field. Nothing essential to correct invocation is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description goes beyond the schema by tying `offset`/`limit` to a paging loop driven by a `next_offset` value returned in the answer, which adds interpretive meaning the schema alone doesn't convey.

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?

The description names the resource and enumerates exactly what comes back — name, owner, followers, description, plus a bounded track slice with lifetime play counts — so the agent knows this is a playlist-metadata-plus-track-page tool. It does not explicitly contrast with siblings like `get_tracks` or `get_album`, but the scope is unambiguous on its own.

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?

It gives concrete operational guidance: use `next_offset` from the response to page, and later pages skip metadata and cost one request. That tells the agent how to iterate. It stops short of stating when to prefer this over `get_tracks` or `search`, so no explicit alternative routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.