Skip to main content
Glama

List playlists

get_playlists
Read-onlyIdempotent

Retrieve the playlist hierarchy from an Engine DJ library, including folder depth, track counts, and missing-track warnings. Optionally select a specific library.

Instructions

The library's playlist tree, in the order Engine DJ displays it -- taken from the Playlist.nextListId chain, which is where that order actually lives (the PlaylistPath view's position column runs the other way). Flat and in pre-order, so reading top to bottom is exactly the sidebar: depth and path carry the nesting, parent_id names the folder. is_folder means the list has child lists (Engine has no folder flag; a folder is a playlist other playlists sit under), so an emptied folder reads as an empty playlist. track_count is entries in that list alone, never rolled up from children, and missing_count is how many of them name a track that is not in this library. warnings appears when a link chain is broken or cyclic; nothing is ever dropped from the list because of one. With more than one library connected, pass library (a uuid or path from list_libraries, either the ~/... form or the absolute one) to choose which one; the default is the supported library with the most tracks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
libraryNoWhich library to use: either the uuid or the path reported by list_libraries (the reported ~/... form is accepted, as is the absolute path). Omit it to use the supported library holding the most tracks. A READ may always omit it. A WRITE may omit it only when a single supported library is connected: with two or more, a write refuses with ambiguous_library listing them, since the choice decides which disk changes; ask the user which, then pass it here. A library copied onto another drive keeps its uuid, so a uuid can name two connected libraries: a write naming such a uuid refuses with ambiguous_library as well. Pass the path to write to one of them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.17.2

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, non-destructive), the description discloses many behavioral details: the flat pre-order representation, field semantics (depth, path, parent_id, is_folder, track_count, missing_count), the meaning of warnings for broken/cyclic chains, and the guarantee that nothing is dropped. It also explains the multiple-library handling and default selection, adding substantial value.

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?

The description is long but information-dense, with every sentence contributing new context. It is front-loaded with the core purpose and then elaborates on ordering, fields, and edge cases. While longer than typical, the complexity of the tool justifies the length, and there is no redundancy.

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?

The description thoroughly covers the output structure (fields like depth, path, parent_id, is_folder, track_count, missing_count), ordering, warnings, and library selection. It doesn't explicitly describe the JSON return format or pagination, but given the field names and the limit parameter, it is largely complete. The absence of an output schema is compensated by this detailed description.

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 tool description adds significant meaning to the library parameter, explaining how to choose between libraries, the ambiguity behavior, and the default. For limit, it adds nothing beyond the schema (which lacks a description), but limit is self-explanatory. With schema coverage at 50%, the description compensates for the missing limit description and enriches the library parameter.

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 purpose: listing the library's playlist tree in Engine DJ's display order. It specifies the resource (playlists) and the verb (list), and differentiates from siblings by describing the ordering and the source (Playlist.nextListId chain), which is distinct from other tools like get_playlist_tracks or search_tracks.

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?

The description provides clear context on when to use the tool (to retrieve the playlist tree) and explains the library parameter's behavior, including when to omit it and the default selection. It also hints at an alternative view (PlaylistPath) but doesn't explicitly name sibling tools or state exclusions. The guidance is strong but not exhaustive.

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