Skip to main content
Glama

refresh_smart_playlist

Reapply a saved smart playlist rule, refresh its candidate matches, and update the playlist content with the new results.

Instructions

Refresh a persisted smart playlist: rebuild candidates from the stored rule and recreate the playlist content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesRule name saved via save_smart_playlist_rule
dry_runNoPreview only: validate inputs and describe exactly what would change without performing it
playlist_idNoExisting playlist id to refresh (else creates new)
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 full burden of disclosing behavioral traits. 'Recreate the playlist content' conveys that this mutates and replaces existing playlist content, which is useful, but it does not explicitly state that the operation is destructive/overwriting or describe what happens when no playlist_id is provided (create new). The disclosure is adequate but shallow for a mutation tool.

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 one tight sentence with the operative verb front-loaded and no filler words. The colon-separated elaboration ('rebuild candidates... recreate content') earns its place by explaining the internal behavior. It is concise rather than under-specified, though it could carry slightly more context without becoming verbose.

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 schema fully documents all four parameters, which reduces the description's burden. However, this is a mutating tool with no annotations and no output schema, so the description should ideally disclose return behavior, explicit overwrite semantics, and when it creates a new playlist vs refreshing an existing one. It covers the core action but leaves the operational envelope to the schema.

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?

Schema description coverage is 100%, so the baseline of 3 applies; every parameter (name, dry_run, playlist_id, response_format) is already documented in the input schema with clear semantics. The description does not add parameter-level meaning beyond what the schema provides, but it does not need to.

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 ('refresh') targeting a specific resource ('persisted smart playlist') and then explains the mechanism ('rebuild candidates from the stored rule and recreate the playlist content'). This clearly distinguishes it from sibling tools like create_smart_playlist and save_smart_playlist_rule, so an agent can tell which operation is which without opening schemas.

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 its use case: it is for refreshing an already-persisted smart playlist rather than creating one. The name parameter referencing 'Rule name saved via save_smart_playlist_rule' hints at the prerequisite, but the description itself gives no explicit when-to-use or when-not-to-use guidance and names no alternatives among the many playlist/mutation siblings.

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