Skip to main content
Glama

convert_ncm

Converts specified NCM files to native MP3 or FLAC using local ncmdump, preserving the original files.

Instructions

通过本机 ncmdump 将指定 NCM 解包为其原生 MP3/FLAC;保留源文件。

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": {
      "input_file": "<input_file>",
      "output_dir": "<output_dir>"
    },
    "name": "convert_ncm"
  }
}

Input Schema

NameRequiredDescriptionDefault
input_fileYes
output_dirYes用户指定的本机绝对目录

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=false, destructiveHint=false, openWorldHint=false, and the description usefully adds a non-redundant behavioral fact: '保留源文件' (the source is preserved), which confirms non-destructive behavior. It also discloses the external local-binary dependency. However, for a write operation it stays silent on whether existing output files are overwritten, what happens when the source is not a valid NCM, and where output filenames come from.

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?

A single compact sentence with the action, mechanism, output format, and the source-preservation guarantee front-loaded. No filler and nothing to trim.

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?

There is no output schema, so the description should carry the return story, and it only partly does: it names the output format and source preservation but not the resulting file path or naming convention. For a two-parameter write tool this is workable but leaves an agent guessing about the result and about overwrite/error behavior.

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 description coverage is 50%: output_dir is documented in the schema, input_file is not. The description adds real meaning the schema lacks by implying input_file must be an NCM file (the parameter is only named 'input_file'), but it says nothing extra about output_dir, path formats, or whether the directory must already exist.

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?

States a specific verb (解包/convert), a specific resource (NCM files), the output formats (原生 MP3/FLAC), and the mechanism (本机 ncmdump). That is enough for an agent to distinguish it from the playlist/search/download/status siblings without opening the schema, though it never names a sibling explicitly.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: '通过本机 ncmdump' signals the prerequisite that ncmdump must be installed locally, and '指定 NCM' implies an already-downloaded local file. There is no explicit when-to-use versus when-not guidance and no pointer to the sibling that produces the NCM in the first place.

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