Skip to main content
Glama

Kindle Music

链接/文件名定位 / Resolve a link, filename or album code

km_resolve

把用户手里的下载文件名、UPM 链接、本站链接(专辑 / 厂牌 / 选曲清单 / 歌单 / 搜索结果页)、外站链接或带连字符的专辑编号,定位成下一步可用的对象。 Resolves a download filename, UPM link, kindlemusic.cn link (album / label / pick list / playlist / search page), other web link or hyphenated album code into something the other km_* tools can act on.

何时用 / When: 用户贴的是 KM_PUC045_TK003_xxx.mp3、universalproductionmusic.com 链接、www.kindlemusic.cn/… 链接或 PUC-045 这类编号时,先调本工具;不要把它们当关键词丢进 km_search(会零结果)。

返回 / Returns: { q, resolved }。resolved 为 null 表示认不出或库里没有。按 kind 接下一步:

  • kind="track",source 为 upm / filename(文件名 / UPM 链接):{ albumCode, trackNumber(主曲曲号), trackIdentity, trackTitle, albumTitle }。剪辑版文件名一律映射到主版本;接着用 km_track_versions(albumCode, trackNumber) 取全部版本,或 km_search(searchField="album", keyword=albumCode) 拿曲目 id。

  • kind="album",source="code"(编号):{ albumCode, albumTitle }。接着用 km_search(searchField="album", keyword=albumCode)。

  • source="site"(本站链接):

    • kind="track" 带 trackId:trackId 就是曲目 id,可直接喂 km_similar_by_track;带 trackNumber(专辑页 ?trackNumber=):可直接喂 km_track_versions(albumCode, trackNumber)。

    • kind="album":{ albumCode, trackId:null },同上接 km_search(searchField="album")。

    • kind="label":{ includeLabels:[厂牌名] },原样放进 km_search 的 includeLabels 按厂牌收窄。

    • kind="resultSet":{ code },选曲清单(/picks/),用 km_get_result_set(code) 读回。

    • kind="playlist":{ playlistId } 或 { shareType, shareCode },网站歌单 / 歌单分享链接,MCP 没有读取歌单的工具,请让用户在网站打开,或说出想要的风格改用 km_search。

    • kind="search":{ tier, args },网站搜索结果页的条件已还原成 km_search 入参,原样传给 km_search 即可复现用户看到的那次检索。

    • kind="page":本站首页 / 列表页 / 场景页 / 指南,没有可直接检索的对象。

  • kind="keywords",source="slug"(外站链接、或本站认不出的路径):{ keyword },取自链接里的搜索参数或最后一段路径;可作为 km_search 的关键词(含中文时带 expand="fast",或改用 searchField="ai")。视频网站链接通常取不出曲名,有参考音频请走 km_similar_by_audio。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
qYesThe filename, link or album code exactly as the user gave it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/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 burden and does well: it discloses the failure mode (resolved=null when unrecognized or absent from library), the kind/source taxonomy, and gaps in the toolchain (playlists have no MCP reader; video-site links usually cannot yield a track name, so use km_similar_by_audio). It does not mention latency, network calls, or explicit read-only status, so it stops 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?

Bilingual and long, but structured with headers (When/Returns) and a per-kind bullet list, with purpose and the km_search caveat front-loaded. The kind-by-kind routing is dense but each branch earns its place; only minor redundancy comes from the paired Chinese/English text.

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?

No output schema exists, so the description must explain returns and it does: it documents the { q, resolved } envelope plus the fields returned per kind/source and the exact next call for each. Nothing an agent needs to act on the result 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?

Schema coverage is 100%, so the baseline is 3, but the description adds meaning beyond the schema field by enumerating accepted input forms (album/label/pick-list/playlist/search-page URLs, external links, hyphenated codes) and stressing the 'exactly as the user gave it' constraint implicitly.

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 pair (resolve a filename/link/album code into an actionable object) and explicitly differentiates from the sibling km_search ('不要把它们当关键词丢进 km_search'). An agent can identify the tool's job without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit when-to-use triggers (pasted filename, UPM/kindlemusic link, hyphenated code) and the negative case (do not treat as keyword in km_search, which yields zero results). It also routes to the correct follow-up tool per kind (km_track_versions, km_get_result_set, km_similar_by_track), so alternatives are named and conditioned.

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