Skip to main content
Glama

Add tracks to a playlist

playlist_add_tracks

Append published tracks to one of the person's playlists in the given order, in one step. Tracks already in it are skipped, unknown or unpublished ones are counted as unavailable.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "playlist": "<playlist>",
      "tracks": "<tracks>"
    },
    "name": "playlist_add_tracks"
  }
}

Input Schema

NameRequiredDescriptionDefault
tracksYesTrack IDs
playlistYesPlaylist ID or URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations it discloses real mutation semantics: existing tracks are skipped, unknown/unpublished tracks are tolerated as 'unavailable' rather than failing the call, and input order is preserved. That partial-success behavior is valuable and not present in structured fields. Minor tension: skip-if-present reads as repeat-safe while idempotentHint=false, so the agent cannot fully predict a second identical call.

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?

One sentence, front-loaded with the action and followed immediately by the two edge-case behaviors. No filler or redundant restatement of the title.

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 two-parameter batch mutation with a fully described schema and clear annotations, this covers what the tool does and how it handles bad input. The one gap is outcome reporting — the word 'counted' hints at a result summary, but which tracks succeeded versus were skipped is left unstated and there is no output schema to fill that in.

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 coverage is 100%, with both parameters documented ('Track IDs', 'Playlist ID or URL'), so the baseline is 3. The description adds only that tracks must be published and ordered; it does not clarify the maxItems=100 limit or how invalid entries are reported.

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 names a specific verb and resource ('Append ... tracks ... to one of the person's playlists') and adds scope qualifiers ('published', 'in the given order', 'in one step') that separate it from playlist_update, playlist_remove_tracks, and playlist_create without needing their 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?

It conveys the batch context ('in one step') and that only published tracks qualify, which implies when the tool is appropriate, but it never states when to use an alternative (e.g. playlist_update) or any prerequisite such as playlist ownership. Usage must be inferred.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources