Skip to main content
Glama

Update or reorder playlist

update_playlist
DestructiveIdempotent

Rename a playlist, edit its description, genre or tags, and reorder its existing tracks by BPM, Camelot key, duration or release date. Never adds or removes tracks.

Instructions

Change a playlist's title, description, genre or tags and/or reorder its tracks: sort_by (bpm, camelot, duration or released, with direction asc/desc; camelot goes number by number and, inside a number that has both letters, starts with the letter that mixes with the previous track, so it leaves as few harmonic clashes as possible, and tracks without a key go last) or track_order with all its ids in the desired order. Never adds or removes tracks. Does not write if the API hides any track. If after writing it does not see the same set of tracks, it restores the previous order and reports it.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "playlist_id": "<playlist_id>"
    },
    "name": "update_playlist"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoComma-separated tags, e.g. "warm, deep house" (a list is also accepted)
genreNo
titleNo
sort_byNo
directionNo
descriptionNo
playlist_idYes
track_orderNoAll the playlist's ids, in the new order

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, destructiveHint=true, idempotentHint=true) by disclosing the safety protocol: it does not write when the API hides tracks, and after writing it verifies the track set and restores the previous order if it differs. That is exactly the kind of mutation-risk detail an agent needs before calling a destructive tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in the first clause, then operation modes, then the safety guarantee, which is good ordering. The camelot parenthetical is dense and long, but it carries real ordering semantics that the schema cannot express, so the length is largely earned.

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?

Given 8 parameters, a destructive mutation hint and no output schema, the definition covers the risky parts well: what is and isn't modified, failure handling, and rollback reporting. It leaves minor gaps on parameter interaction (sort_by + track_order precedence), on the untouched metadata fields, and on what the result payload contains.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With only 25% schema description coverage, the description carries most of the burden and does so for the hard parameters: it defines sort_by's four keys, direction's asc/desc, detailed camelot semantics (number-by-number, letter start to avoid clashes, keyless tracks last), and that track_order must be complete. The metadata fields (title, description, genre) are only listed with no format guidance, and playlist_id is unexplained.

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?

States a specific verb (change/reorder) and resource (playlist's title, description, genre, tags, tracks) and explicitly bounds scope with 'Never adds or removes tracks', which cleanly separates it from add_tracks_to_playlist and remove_tracks_from_playlist without needing to open their schemas.

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

Usage Guidelines4/5

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

Explains the two operating modes (sort_by vs track_order with all its ids) and rules out add/remove operations, giving the agent clear selection context. It stops short of explicit routing language such as naming the sibling tools for adding/removing, and never says whether sort_by and track_order can be combined.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.