Skip to main content
Glama

spotify_sort_playlist

Sort any Spotify playlist by track, artist, album, duration, or date added.

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?

With no annotations, the description must disclose behavioral traits, but it only states that the tool sorts a playlist. It does not mention whether the sort is destructive (modifies the playlist in place), reversible, or requires specific permissions. The existence of an output schema is unaddressed.

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 sentence of 12 words, directly stating the purpose and sortable fields. It is concise and front-loaded with no wasted words.

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 3 parameters, no annotations, and an output schema, the description is incomplete. It fails to explain crucial behavioral details (e.g., whether the playlist is modified in place), required inputs beyond playlist_id, or any side effects. The output schema is not referenced.

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 0%, yet the description lists the valid values for sort_by (track_name, etc.), which adds semantic value beyond the schema. However, it does not explain the format of playlist_id or the effect of reverse. The defaults are in the schema but not in the description.

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 clearly states the verb 'Sort' and the resource 'playlist', and lists the specific sort fields (track_name, artist_name, album_name, duration, date_added), making the purpose unambiguous and distinct from sibling tools like spotify_reorder_playlist.

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?

No guidance is provided on when to use this tool vs alternatives (e.g., spotify_reorder_playlist for manual reordering). There are no prerequisites or context about when sorting is appropriate.

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