Skip to main content
Glama

Create a smart (self-updating) playlist

create_smart_playlist

Create a rule-based smart playlist in Navidrome that stays current by continuously re-evaluating your library, for criteria like '90s rock not played in a year'.

Instructions

Create a playlist defined by RULES rather than a fixed track list. Navidrome re-evaluates it continuously, so it stays current without regeneration — ideal for standing playlists like '90s rock I haven't played in a year'.

Rules are Navidrome's native criteria format: {"all":[{"is":{"genre":"Rock"}},{"inTheRange":{"year":[1990,1999]}},{"notInTheLast":{"lastPlayed":365}}],"sort":"playCount","order":"desc","limit":100}

Operators: is, isNot, gt, lt, contains, notContains, startsWith, endsWith, inTheRange, before, after, inTheLast, notInTheLast. Combine with all (AND) / any (OR), which may nest. Fields include: title, album, artist, albumartist, genre, year, dateadded, datemodified, lastplayed, playcount, rating, starred, loved, comment, bpm, length, filepath, filetype.

Note: rules operate on Navidrome's own fields only — ListenBrainz listen counts and Last.fm tags are NOT available here. For those, use search_tracks plus create_playlist.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
rulesYesNavidrome smart-playlist criteria object.
publicNo
commentNo
Behavior4/5

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

The description discloses that Navidrome continuously re-evaluates rules, so playlists stay current without regeneration. It also reveals a key limitation: rules operate only on Navidrome's own fields, not ListenBrainz or Last.fm. With no annotations provided, this carries the full burden well, though it omits return values or error behavior.

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 dense but well-structured, opening with a clear purpose, then a concrete example, followed by operator/field lists and a limitations note. It is long, but every section earns its place given the complexity of the rules parameter.

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?

Given the complex nested rules object and no annotations/output schema, the description covers the critical aspects: rule syntax, operators, fields, and unsupported data. It could add what the API returns or error scenarios, but it is largely complete for invoking the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description provides an extensive explanation of the rules parameter, including a JSON example, a list of all operators, combinators (all/any), nesting, and available fields. This goes far beyond the schema's generic 'criteria object' description and fully compensates for the low schema coverage of other parameters.

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 'Create a playlist defined by RULES rather than a fixed track list', distinguishing it from the sibling create_playlist. It also provides a concrete use case ('90s rock I haven't played in a year') and emphasizes the self-updating behavior.

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

Usage Guidelines5/5

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

It explicitly positions the tool for standing/self-updating playlists with an example, and explicitly directs users to search_tracks plus create_playlist when ListenBrainz/Last.fm fields are needed. The contrast with fixed track lists is clear, giving both when-to-use and when-not-to-use context.

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/312-dev/navidrome-mcp'

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