Skip to main content
Glama

music_list

Browse or search the Douyin music library by category or keyword and retrieve track metadata, previews, and copyright flags for effects.

Instructions

列出抖音音乐:两个参数都不传时返回音乐库的分类(像塑原创、推荐、抖音收藏、潮流心选等)的 code 和名称;传 query 按关键词搜索,或传 category_code 看某个分类的第一页(35 首)。返回 music_id、标题、作者、时长 duration_sec、封面 cover_ref、试听 preview_ref(音频引用)和 has_copyright(音乐库给的版权标记,false 或 null 的不要用于要发布的特效)。

返回里的图片、视频、音频给的是短引用(*_ref / *_refs,如 img:12、video:3),交给 image_view:图片直接显示,视频和音频返回原地址;引用在 MCP 服务这次运行期间有效。

Input Schema

NameRequiredDescriptionDefault
queryNo搜索关键词。
instance_idNo官方 list_instances 返回的 instance_id,与 project_path 二选一。
project_pathNo目标工程的绝对路径。与 instance_id 二选一;只开了一个工程窗口时都可省略。
category_codeNo分类 code(不带参数调用时返回);与 query 二选一。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Because there are no annotations, the description carries the full burden, and it discloses real operational behavior: the page size of 35 for category browsing, the fact that *_ref references are valid only during this MCP service run, and a safety-relevant warning that has_copyright=false or null must not be used for effects intended for publishing. It omits authentication and permission requirements and does not state whether the operation is read-only, though that is self-evident.

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?

The description is front-loaded with the modes, then lists return fields, then follows with the reference-resolution rules. Every sentence carries information, though the reference-resolution paragraph is generic cross-tool plumbing that could live in shared documentation rather than here.

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?

With no output schema, the description must explain the returns, and it does: music_id, title, author, duration_sec, cover_ref, preview_ref, and has_copyright with its usage caveat. The remaining gap is that the description does not say how many results a query search returns or whether results can be paged, but the category case is specified.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds semantics the schema cannot express: the default behavior when both query and category_code are omitted returns the category codes and names, and category_code yields the first page of 35 tracks. That mode interaction is genuinely beyond the field-level descriptions.

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 names a specific verb and resource (list Douyin music) and defines three operating modes: neither parameter (category list), query (keyword search), and category_code (first page of a category). It clearly describes the tool's unique behavior, though it never names the sibling music_apply or explains how this tool differs from it (list versus apply).

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?

The description gives explicit mode-selection guidance: how to call the tool when you want the category list, when you pass query, and when you pass category_code (first page, 35 tracks). The only gap is that it does not say what to do next, such as using music_apply to apply a track, or when to choose search over browsing categories.

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