Skip to main content
Glama
cyber-band-mcp

cyber-band-mcp

by chenzy2006

export_midi

Converts a project into a standard multi-track MIDI file and preview JSON for frontend audition; enforces audit-pass checks by default to prevent exporting conflicting scores.

Instructions

将工程编译为标准多轨 .mid 文件并输出前端试听 .preview.json。

Args: project_id: 目标工程 ID。 output_dir: 导出目录(相对于工作区根目录),默认 "output"。 filename: 可选输出文件前缀(不含扩展名)。 require_audit_pass: 是否强制要求最近一次审计通过(无 error 冲突),默认 True。

Returns: 导出文件路径与轨道统计信息;若审计未通过且 require_audit_pass=True 则返回拒绝状态。

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": {
      "project_id": "<project_id>"
    },
    "name": "export_midi"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameNo
output_dirNooutput
project_idYes
require_audit_passNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the behavioral burden. It usefully discloses the audit gate (rejection when require_audit_pass=True and the last audit fails) and mentions both output artifacts, but omits file-overwrite behavior, permissions, and other side effects of writing into output_dir.

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-loaded with the core action, then structured Args/Returns blocks that are easy to scan. Each line earns its place; the Returns section is somewhat redundant given an output schema exists, but it is not wasteful.

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?

For a 4-parameter export tool with no annotations, the definition covers the purpose, all parameters, the audit precondition, and return behavior. Given an output schema exists, the explicit Returns text is bonus rather than necessity; overall it is complete enough to invoke correctly.

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 0% schema description coverage, the description does the heavy lifting and documents all four parameters with real added meaning: output_dir is relative to the workspace root with default 'output', filename is a prefix without extension, and require_audit_pass defaults to True with gating semantics. Minor gaps remain (e.g., filename character constraints), keeping it from a 5.

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: compiles the project into a standard multi-track .mid file and also emits a frontend preview .preview.json. This clearly distinguishes it from siblings like audit_arrangement or init_project, so an agent knows this is the export/render step.

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?

The dependency on a passing audit is implied via require_audit_pass (default True) and the rejection status, which gives contextual guidance on preconditions. However, there is no explicit 'use this when' statement or reference to alternatives, so usage is only implied rather than spelled out.

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