Skip to main content
Glama

sort_playlist

Reorders the VLC playlist by ID, name, author, track number, or random order, with an option to reverse the result for quick queue organization.

Instructions

Sort the playlist.

Args: mode: One of id, name, author, random, track_number reverse: True to sort in reverse order

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": {
      "mode": "<mode>"
    },
    "name": "sort_playlist"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes
reverseNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does not state that this is a mutating, order-changing operation, whether the reorder is persistent, whether playback is interrupted, or what happens with an empty playlist — all material for a playlist-mutating tool.

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?

Extremely tight: one imperative sentence followed by the two parameter notes. Nothing is redundant and the purpose is front-loaded, which is appropriate for a simple two-parameter 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?

An output schema exists, so return values need not be explained, and the parameter list covers the only non-obvious input. The remaining gap is behavioral (in-place vs. persistent, effect on playback), which the missing annotations would otherwise have covered.

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% and "mode" has no enum, so the description's enumeration of the five accepted values is genuinely additive and prevents an unconstrained string. However it does not clarify semantics such as what "id" sorts by (track id vs. file id) or how ties are broken, and "reverse" merely restates the schema's boolean.

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?

"Sort the playlist" names a specific verb and resource, and the args block narrows the scope to keyed ordering (id, name, author, random, track_number). It is clear what the tool does, though it never says which playlist it operates on (current/active) or whether the sort is applied in place.

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 no when-to-use guidance, no prerequisites, and no alternatives. Since several siblings (get_playlist, clear_playlist, remove_playlist_item) touch the same resource, a sentence on why to sort rather than recreate the playlist would have helped. Only the parameter list implies usage.

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