Skip to main content
Glama

itunes_sort_playlist

Sort tracks in any playlist alphabetically by title, artist, or album to get the order you want.

Instructions

Sort all tracks in a playlist alphabetically by 'title', 'artist', or 'album'.

Args: playlist: The name of the playlist to sort. sort_by: Attribute to sort by: 'title', 'artist', or 'album' (default 'title').

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sort_byNotitle
playlistYes
Behavior3/5

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

With no annotations, the description carries the transparency burden. It discloses the core behavior (sorting all tracks alphabetically by a chosen attribute), but it does not mention side effects such as whether the playlist order is permanently modified, whether the operation is reversible, or any permission requirements.

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?

The description is concise and well-structured: a one-sentence purpose statement followed by a compact Args list. Every sentence adds value, and there is no redundant filler.

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?

For a simple two-parameter tool, the description covers the main purpose and parameters, but it lacks information about return values, error cases (e.g., playlist not found), and side effects. Given no output schema and no annotations, this leaves some gaps for an agent.

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?

The schema has 0% description coverage, but the description compensates by explaining each parameter: playlist is 'the name of the playlist to sort' and sort_by is 'Attribute to sort by: title, artist, or album (default title).' This adds meaningful allowed values and default behavior beyond the bare schema.

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 clearly states the tool's function: 'Sort all tracks in a playlist alphabetically by title, artist, or album.' It uses a specific verb and resource, and the scope ('all tracks') distinguishes it from sibling tools like itunes_move_playlist_track or itunes_get_playlist_tracks.

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

Usage Guidelines3/5

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

The description implies when to use the tool—whenever a playlist needs sorting—but it does not explicitly discuss alternatives, prerequisites, or when not to use it. No exclusions or comparisons to sibling tools are provided.

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/suleyman416/mcp-applemusic'

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