Skip to main content
Glama

Beats

Add a track

add_to_playlist
Idempotent

Append a track to one of the listener's own playlists. Use it after create_playlist; the demo playlists pl1, pl2 and pl3 are read-only. Returns ok, or ok false with the reason, such as a track that is already there.

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": {
      "id": "<id>",
      "track_id": "<track_id>"
    },
    "name": "add_to_playlist"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesthe playlist id, from create_playlist or list_playlists
track_idYesthe track to add

Output Schema

NameRequiredDescriptionDefault
okYes
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare the safety profile (non-read-only, non-destructive, idempotent, closed-world); the description adds the read-only demo-playlist constraint and the fact that duplicates fail rather than silently no-op. That operational failure detail genuinely extends beyond the structured fields, though it does not state permission or auth requirements.

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?

Three short sentences that are front-loaded with the action, then the prerequisite, then the return contract. Every sentence carries distinct information with no repetition of the title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter mutation with full schema coverage, annotations, and an output schema, the description covers the prerequisite, the environment constraint, and the failure shape. Nothing an agent needs in order to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema description coverage the baseline is 3, but the description adds real meaning by restricting "id" to a playlist the listener owns and excluding the demo playlists, which the schema does not say. It does not otherwise elaborate on track_id or id format beyond what the schema and examples provide.

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?

"Append a track to one of the listener's own playlists" gives a specific verb plus resource and scopes it to the listener's own playlists. It is clearly separable from create_playlist and remove_from_playlist without opening either 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?

States a prerequisite ("use it after create_playlist") and an explicit exclusion (playlists pl1, pl2, pl3 are read-only), which is solid when-to-use guidance. It does not point at the inverse operation remove_from_playlist, so an explicit alternative is left implicit.

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