Skip to main content
Glama

playlist_flip_order

Reverse a playlist's order in one atomic update: the last item becomes first. Fixes playlists imported backwards by replacing the entire track list at once.

Instructions

Reverse a playlist: last item becomes first, written as one atomic replace. The standard fix for imports that arrived backwards. Quota: 🟢 2 GETs + 1 PUT.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNoPreview only: perform the read side and return a PLAN without changing anything. Pass false to commit. Default true
max_resultsNoMax items to return (default: SPOTIFY_MCP_MAX_ITEMS env or 50)
playlist_idYesPlaylist to reverse, as ID or spotify:playlist: URI
response_formatNo'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API objectconcise
Behavior3/5

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

With no annotations provided, the description carries the full burden. It does disclose two important behavioral traits: the operation is atomic ('one atomic replace') and the quota (2 GETs + 1 PUT). However, it omits the critical dry_run behavior described in the schema (default true, preview-only), and does not mention that the change is permanent or irreversible. For a mutation tool, this is a moderate but not complete disclosure.

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 sentences with no filler. The first sentence states the purpose and atomicity, the second gives a use case and quota. Every part earns its place, and the key information is front-loaded. This is an exemplar of concise, effective tool descriptions.

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

Completeness3/5

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

Given the mutation nature, no annotations, and no output schema, the description is somewhat under-specified. It fails to mention the dry_run parameter's preview semantics, which defaults to true and is crucial for safe execution (the tool may not actually modify anything if not passed false). It also doesn't describe the return value or plan format. However, the quota and atomicity are useful. For a tool with this complexity, more context is needed.

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 coverage is 100% for all 4 parameters, so the schema already documents each one. The description adds no additional parameter-level detail. Per the baseline for high schema coverage, a score of 3 is appropriate. The description does not compensate for any missing semantic nuance beyond the schema.

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: 'Reverse a playlist' with specific resource (playlist) and intent (last item becomes first). It also notes 'written as one atomic replace', which adds specificity. However, it doesn't explicitly distinguish itself from the sibling tool 'playlist_reverse' which likely performs a similar operation, so there is some ambiguity for an agent deciding between them.

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 gives one specific use case: 'The standard fix for imports that arrived backwards.' This implies when it might be used but provides no guidance on when NOT to use it or how it differs from alternatives like playlist_reverse, playlist_sort, or playlist_shuffle. An agent would have no basis to prefer this tool over its sibling that appears to do the same thing.

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