Skip to main content
Glama

spotify_sort_playlist

Sort Spotify playlists by track name, artist name, album name, duration, or date added. Configure sort criteria and reverse order to organize your music collection.

Instructions

Sort a playlist by track_name, artist_name, album_name, duration, or date_added.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
playlist_idYes
sort_byNoartist_name
reverseNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. While it lists sortable fields, it fails to state that this operation permanently mutates the playlist order, requires write permissions, or describe idempotency characteristics. The agent cannot infer safety or side effects from the text alone.

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?

The description is a single, efficient sentence with no redundant words. It front-loads the core action and immediately follows with the critical constraint (available sort fields), making it easy to parse.

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?

Given this is a mutation operation with zero annotation coverage and zero schema parameter descriptions, the description is insufficient. It omits the mutation nature of the operation and leaves two of three parameters undocumented. While an output schema exists (reducing the need for return value description), the input side is critically under-documented.

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?

With 0% schema description coverage, the description partially compensates by documenting the valid values for the 'sort_by' parameter (track_name, artist_name, etc.). However, it fails to describe 'playlist_id' (e.g., expected URI format) or explain the 'reverse' parameter's behavior (ascending vs descending).

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 clearly states the action (sort) and target resource (playlist), and specifically enumerates the available sort criteria (track_name, artist_name, album_name, duration, date_added). However, it does not distinguish this tool from the sibling 'spotify_reorder_playlist', leaving ambiguity about when to use sorting versus manual reordering.

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?

The description provides no guidance on when to use this tool versus alternatives (e.g., 'spotify_reorder_playlist' or 'spotify_get_playlist_tracks' followed by client-side sorting). There are no prerequisites, exclusions, or contextual triggers mentioned.

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/gupta-kush/spotify-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server