Skip to main content
Glama
crates-music-mcp

crates-music-mcp

by guohangbk

add_songs_to_playlist

Adds specified songs to an existing playlist on QQ Music, NetEase, or Kugou by searching each track and skipping any it cannot match.

Instructions

给已有歌单加歌(不会新建歌单)。

service: qq_music | netease | kugou playlist_id: my_playlists 返回的 id songs: 「歌名 - 歌手」,逗号/分号/换行分隔;也接受列表 JSON。 例如 "晴天 - 周杰伦, 海阔天空 - Beyond" count: 最多加几首(0 = 全部) Returns {"ok","service","playlist_id","added","matched","failed"}。 每首歌在目标平台现场搜索,找不到就跳过(记进 failed),不会塞错歌。

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": {
      "service": "<service>",
      "playlist_id": "<playlist_id>"
    },
    "name": "add_songs_to_playlist"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNo
songsNo
serviceYes
playlist_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full disclosure burden and does well: it reveals that each song is searched live on the target platform, that unmatched songs are skipped and recorded in failed rather than mis-inserted, and that count caps the batch. It omits auth/cookie prerequisites and any rate-limit or ordering behavior, which keeps it short of a 5.

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?

Front-loads the single most important constraint (existing playlists only) and then uses a compact aligned parameter block that is fast to scan. The trailing Returns line mostly restates output-schema field names, so it is the one part that does not fully earn its space.

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 4-parameter mutation tool with no annotations and no schema descriptions, the definition covers purpose, per-parameter format, failure semantics (skip + failed list), and output shape via the existing output schema. An agent has everything needed to call it correctly on the first attempt.

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

Parameters5/5

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

Schema coverage is 0%, so the description must compensate and it does for all four parameters: service enumerates the three platforms, playlist_id ties back to my_playlists, songs defines the exact "歌名 - 歌手" format with delimiters and a worked example plus a JSON-list alternative, and count explains that 0 means all.

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?

States a specific verb+resource (add songs to a playlist) and immediately bounds the scope with "给**已有**歌单加歌(不会新建歌单)", which cleanly separates it from the create_qq_playlist / create_ncm_playlist / create_kugou_playlist siblings without naming them.

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?

Makes the when-to-use condition explicit (playlist must already exist) and routes the agent to the my_playlists sibling as the source of playlist_id. It does not state the inverse rule (use create_*_playlist when no playlist exists), so the guidance is clear but not fully closed-loop.

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