Skip to main content
Glama

reorder_playlist_tracks

Move a track to a new position within a TIDAL playlist by specifying its current and target 0-based indices. Use it to change playlist track order.

Instructions

Move/reorder a track within a TIDAL playlist.

USE THIS TOOL WHENEVER A USER ASKS FOR:
- "Move track at position X to position Y"
- "Reorder my playlist"
- "Put song #5 at the beginning"
- Any request to change the order of tracks in a playlist

This function moves a track from one position to another within a playlist.
Indices are 0-based (first track is index 0).

When processing the results of this tool:
1. Confirm the track was moved successfully
2. Remind the user that indices are 0-based
3. Describe the move clearly (e.g., "moved from position 5 to position 2")

Args:
    playlist_id: The TIDAL ID of the playlist (required)
    from_index: Current position of the track (0-based) (required)
    to_index: New position for the track (0-based) (required)

Returns:
    A dictionary with "status" and move details. Returns an "error" key on failure.

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>",
      "from_index": "<from_index>",
      "to_index": "<to_index>"
    },
    "name": "reorder_playlist_tracks"
  }
}

Input Schema

NameRequiredDescriptionDefault
to_indexYes
from_indexYes
playlist_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does a decent job: it discloses that indices are 0-based, that the operation is a move (not a copy), and that the return is a dictionary with 'status' and move details plus an 'error' key on failure. It omits ownership/permission requirements and whether an out-of-range index fails or clamps, which are material for a mutation tool.

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

Conciseness3/5

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

Key facts (operation, 0-based indexing) are front-loaded, but the body repeats the purpose statement ('This function moves a track from one position to another') after the usage block already made that clear. The numbered 'When processing the results' section is prescriptive boilerplate that adds bulk without helping an agent decide or invoke the tool.

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 simple three-parameter mutation with no output schema, the description covers the operation, parameter meaning, index base, and return shape including the error key. The remaining gap is permission/ownership context and edge-case index behavior, which keeps it from being fully complete.

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?

Schema description coverage is 0%, so the description must compensate, and it does: all three required parameters are explained, including the TIDAL ID meaning for playlist_id and the 0-based semantics for from_index and to_index. It stops short of specifying valid ranges or behavior for negative/out-of-bounds indices.

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 opens with a specific verb and resource combination ('Move/reorder a track within a TIDAL playlist') that is clearly distinct from sibling operations like add_tracks_to_playlist or remove_tracks_from_playlist. It does not explicitly name those siblings, but the operation is unambiguous from the wording.

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?

It provides an explicit 'USE THIS TOOL WHENEVER A USER ASKS FOR' block with four concrete request phrasings, which strongly covers the when-to-use side. There is no when-not guidance or mention of prerequisites such as needing playlist edit rights.

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