Skip to main content
Glama

Playlists

music_playlists
Read-onlyIdempotent

List Apple Music playlists with track counts and smart status, or retrieve tracks from a named playlist. Use paging and cursor to handle large results.

Instructions

List your playlists (with track counts and whether they are smart), or pass name to get one playlist's tracks. Large results come in parts (see paging and cursor).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "music_playlists"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
limitNoMax tracks.
cursorNoLeave out at first. When a result has paging.has_more, repeat the call with the same arguments plus cursor set to paging.cursor to get the next part.
open_if_closedNoOpen Music if it is not running (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed world, so safety is covered structurally. The description adds value beyond that by disclosing result shape (track counts, smart-vs-regular playlists) and by explaining that large results are chunked into parts with a cursor handshake. It does not state default part size or whether cursors expire, but the core behavior is well disclosed.

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, both earning their place: the first covers both modes and their outputs, the second covers paging. The dual-mode distinction is front-loaded before the pagination caveat. No filler, no restatement of the title.

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?

With no output schema, the description bears full responsibility for describing returns, and it only partially does so — it names track counts and the smart flag but not the playlist identifier or name field an agent would need to pass back as `name`, nor the shape of a track. The pagination hint references `paging.has_more`/`paging.cursor` fields that are never formally defined anywhere. It says enough to start a call but not quite enough to chain calls confidently.

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 coverage is 75%, with `cursor` and `open_if_closed` already documented in the schema. The description supplies the missing meaning for `name` — it is not a filter on the playlist list but a switch to the single-playlist tracks mode, which is a non-obvious semantic the schema does not convey. `limit` remains ambiguous ("Max tracks" does not say whether it caps playlists, tracks, or both), which holds this below a 5.

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 states a specific verb and resource ("List your playlists") and explicitly distinguishes a second mode ("pass name to get one playlist's tracks"), so an agent can tell the two behaviors apart from the text alone. It also names what each mode returns (track counts, smart flag, tracks). It stops short of naming any sibling tool, so the boundary with e.g. music_search or music_top is left implicit.

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 gives clear context-based routing: omit `name` to enumerate playlists, supply `name` to fetch one playlist's tracks. The paging instruction adds a second concrete usage rule (retry with the same arguments plus cursor when has_more is set). There are no explicit when-not-to-use statements or named alternatives, which keeps it off a 5.

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