Skip to main content
Glama

add_to_playlist

Add a file or stream to a LibreTime playlist by ID; optionally set position or append to the end. Check current contents before choosing the next position.

Instructions

Add a file or stream to a playlist. Use get_playlist_contents to check the current contents and determine the next position.

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_id": "<playlist_id>"
    },
    "name": "add_to_playlist"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idNoFile ID to add (use for audio files)
positionNoPosition in the playlist (0-based). Appends to end if omitted.
stream_idNoStream ID to add (use for webstreams)
playlist_idYesPlaylist ID to add to

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.5/5.0
Behavior2/5

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

No annotations are supplied, so the description bears the full disclosure burden. It says nothing about required permissions, whether duplicate entries are allowed, what happens with an out-of-range position, or what the call returns, leaving the mutation semantics largely opaque.

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 short sentences, front-loaded with the action and followed by the one piece of preparatory advice that matters. Nothing is wasted or buried.

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?

For a four-parameter mutation tool with no annotations and no output schema, the definition covers the happy path but omits error behavior, the file_id/stream_id exclusivity rule as a hard requirement, and any return information. It is adequate but leaves real gaps for an agent to guess at.

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%, so the baseline is 3. The description reinforces that file_id and stream_id are alternatives for audio versus webstreams, and the get_playlist_contents tip adds practical meaning to 'position,' but no format or constraint detail goes beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: 'Add a file or stream to a playlist.' That is clearly distinct from get_playlist_contents or create_playlist, though it does not explicitly name a sibling it replaces or competes with.

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 gives concrete guidance to call get_playlist_contents first to inspect current contents and derive the next position, which is a real workflow prerequisite. It stops short of stating when not to use the tool or what to do on failure, so it is strong but not exhaustive.

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