Skip to main content
Glama

playlist_sort

Sort any Spotify playlist in place by date added, name, artist, duration, or popularity. Preview changes with dry-run before applying.

Instructions

Sort a playlist in place by added_at/name/artist/duration/popularity. Quota: 🟢 GET all + PUT/POST. Also covers: sort_playlist_plan / sort_playlist_apply (safe plan/apply) — See also: sort_playlist_plan, sort_playlist_apply.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNoPreview only: validate inputs and describe exactly what would change without performing it
sort_byNoname_asc
max_resultsNoMax items to return (default: SPOTIFY_MCP_MAX_ITEMS env or 50)
playlist_idYes
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

C2.8/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral disclosure burden. It reveals that the operation mutates a playlist ('in place') and mentions quota, but it does not disclose side effects, reversibility, permission requirements, or what changes a dry_run prevents. The 'safe plan/apply' phrasing is vague and unhelpful.

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 first sentence is concise and information-dense, and the quota note is useful. However, the ending redundantly mentions the plan/apply siblings twice ('Also covers' plus 'See also'), adding confusion rather than clarity.

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

Completeness2/5

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

There is no output schema and no annotations, so the description must explain return behavior, mutation impact, and tool selection context. It explains none of these: an agent cannot tell what the tool returns, whether dry_run is recommended for safety, or how this relates to the plan/apply siblings. This is particularly risky for an in-place mutation tool.

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?

The schema already documents dry_run, max_results, and response_format, covering about 60% of parameters. The description adds useful context for sort_by by naming the underlying fields, but it does not clarify playlist_id, sort direction semantics, or how dry_run affects the result beyond the schema description.

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 opening phrase 'Sort a playlist in place by added_at/name/artist/duration/popularity' clearly names a specific verb, resource, and sort keys. However, the subsequent 'Also covers: sort_playlist_plan / sort_playlist_apply' blurs the tool's exact scope and does not sharply distinguish it from those siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit guidance on when to choose this tool over sort_playlist_plan or sort_playlist_apply. The 'See also' note names siblings but provides no decision criteria, and 'Also covers' is ambiguous about whether this tool is meant to replace them.

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