Skip to main content
Glama

Update Spotify playlist

update_playlist
DestructiveIdempotent

Push draft edits to the published Spotify playlist by replacing its tracks and details. Refuses if the playlist changed in Spotify since the last write unless force is set.

Instructions

Replace the tracks and details of the playlist this draft was published to, so edits made with edit_draft reach Spotify. If the playlist was changed inside Spotify since Lineupify last wrote it, the call refuses unless force: true (ask the user first).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNo
draftIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare destructive/idempotent/openWorld, yet the description adds behavior not covered there: a concurrency conflict check against Spotify, refusal semantics, and the requirement to confirm with the user before forcing. That is exactly the kind of context the description should carry beyond structured hints.

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, zero padding, and the workflow purpose is front-loaded ahead of the edge-case/force caveat. Every clause earns its place.

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?

For a destructive mutation with no output schema, the description covers purpose, trigger, and the drift-refusal path well; annotations carry the safety profile. It stops short of saying what the result looks like or what 'details' (name/description) are overwritten, a minor gap.

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 0%, so the description must compensate. It explains force fully (bypasses the drift refusal, should be user-approved) but says nothing about draftId beyond implying it identifies the published draft, leaving one of two params undocumented.

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 gives a specific verb ('replace the tracks and details') and a precise resource ('the playlist this draft was published to'), and it ties itself to the edit_draft sibling instead of leaving the workflow ambiguous. An agent can distinguish it from create_playlist, read_playlist, and edit_draft without opening the schema.

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 clearly states the triggering context ('so edits made with edit_draft reach Spotify') and the precondition for failure, but it doesn't explicitly contrast with siblings like create_playlist or set_playlist_image. The workflow guidance is strong enough that an agent knows when to call it.

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