Skip to main content
Glama

sort_playlist_plan

Preview a playlist reordered by name, artist, album, duration, added-at date, or release era without committing changes; then apply the planned order to save it.

Instructions

Plan a sort of a playlist by name, artist, album, duration, added-at date or release era and preview the exact resulting order — read-only, commits nothing (use sort_playlist_apply to commit). Quota: 🟢 1–2 GETs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sort_byNoSort key. Default name
directionNoSort direction. Default asc
max_resultsNoMax items to return (default: SPOTIFY_MCP_MAX_ITEMS env or 50)
playlist_idYesPlaylist to plan a sort for (ID or spotify:playlist: URI)
response_formatNo'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API objectconcise
Behavior4/5

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

With no annotations provided, the description carries the full burden, and it delivers: 'read-only, commits nothing' discloses the non-mutating behavior, and 'Quota: 🟢 1–2 GETs' discloses resource cost. The only minor gap is that it doesn't touch on error cases or what happens for playlists that cannot be resolved, but the core behavioral profile is well covered.

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?

Three dense sentences with zero filler: purpose and sort keys first, then the commit alternative, then quota. The most decision-relevant facts (read-only, preview, commit sibling) are front-loaded, and every clause 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 tool with no output schema and no annotations, the description covers purpose, behavior, quota, and the sibling to use for committing. The response_format parameter covers output shape, so the missing piece is minor (e.g., pagination interaction with max_results, or handling of duplicate sort keys). Slightly shy of fully complete, hence 4.

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%, and each parameter already has a solid description including defaults ('Default name', 'Default asc') and bounds. The description adds the prose list of sort keys, which mirrors the schema enum, so it adds marginal value beyond structured data. Baseline 3 is appropriate.

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 states a specific verb ('plan a sort'), the resource (playlist), the available sort keys (name, artist, album, duration, added-at date, release era), and the key outcome (preview the exact resulting order). It explicitly distinguishes itself from sort_playlist_apply and is clearly differentiated from siblings like reverse_playlist_plan, rotate_playlist_plan, and interleave_playlists_plan.

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

Usage Guidelines5/5

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

The description names the alternative explicitly ('use sort_playlist_apply to commit') and gives the selection condition: use this tool when you want to preview a sort without committing. This is direct, actionable guidance an agent can act on without inference.

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/NovaLux12/spotify-mcp-server'

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