Skip to main content
Glama

save_smart_playlist_rule

Save a smart-playlist rule to local storage so it can be refreshed later. Define the rule once, then reuse it for ongoing playlist updates.

Instructions

Persist a smart-playlist rule to the local sidecar for later refresh (mirrors backup sidecar pattern).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesRule name / playlist key
ruleYesRule object (source, filters, limit, etc.)
response_formatNo'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API objectconcise
Behavior3/5

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

With no annotations, the description carries the burden of behavioral disclosure. It discloses the core effect—persisting to a local sidecar—and even references the backup sidecar pattern, which helps set expectations. However, it does not mention overwrite behavior, idempotency, sidecar file scope, or failure/response details, leaving some operational uncertainty.

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 a single, front-loaded sentence with no filler. The parenthetical 'mirrors backup sidecar pattern' is compact and adds useful context without bloating the text.

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?

The description covers the essential facts: what is saved, where it is saved, and why. However, with no annotations and no output schema, it leaves out details about response content, overwrite semantics, and what 'later refresh' concretely requires. The response_format parameter partially covers output expectations, but the overall context is adequate rather than fully complete.

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?

The input schema has 100% description coverage for all parameters, including the nested rule object and response_format enum. The description adds no parameter-specific meaning beyond the general notion of a 'rule', so the baseline of 3 is appropriate.

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 uses a specific verb ('Persist') and names the resource ('smart-playlist rule') and destination ('local sidecar'), with an explicit purpose ('for later refresh'). This clearly distinguishes it from siblings like create_smart_playlist, which would create an actual playlist, and refresh_smart_playlist, which would consume the saved rule.

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 indicates this tool is for persisting a rule locally so it can be refreshed later, giving clear contextual usage direction. It does not explicitly name alternatives or exclusion conditions, but the sidecar-persistence framing separates it effectively from playlist-creation and refresh tools.

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/NovaLux12/spotify-mcp-server'

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