Skip to main content
Glama

Convert UTAU .ust

convert_ust
Destructive

Convert between UTAU .ust and .ustx files without OpenUtau, preserving vibrato and Mode2 pitch data. Imports .ust or exports a voice part, with overwrite protection by default.

Instructions

Convert between classic UTAU .ust and .ustx files (no OpenUtau needed), keeping vibrato (VBR) and Mode2 pitch (PBS/PBW/PBY/PBM). .ust to .ustx: reads Shift_JIS unless a Charset= line says otherwise; import the .ust itself, not a MIDI made from it. .ustx to .ust: one voice part, gaps become R rests. Refuses to overwrite unless overwrite=true. Returns the new file's summary (import) or path and blocks (export). / UTAU の .ust と .ustx を相互変換します(ビブラートとピッチ点も保持)。.ust→.ustx は取り込み、.ustx→.ust は1パートを 書き出し(隙間は休符 R)。overwrite=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": {
      "source": "<source>",
      "destination": "<destination>"
    },
    "name": "convert_ust"
  }
}

Input Schema

NameRequiredDescriptionDefault
partNoExport only: voice part to write (default 0). / 書き出すボイスパート
singerNoImport only: voicebank id or name for the track. / 取り込み時の音源
sourceYesA .ust to import, or a .ustx to export from. / 変換元(.ust か .ustx)
encodingNoExport only: "shift_jis" (default, what UTAU reads) or "utf-8". / 書き出しの文字コード
overwriteNoReplace destination if it exists. / 既存ファイルを置き換える
phonemizerNoImport only: phonemizer (default: the voicebank's). / 取り込み時の音素化器
destinationYesThe new .ustx (import) or .ust (export). / 変換先(.ustx か .ust)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and readOnlyHint=false, and the description adds the concrete mitigation: 'Refuses to overwrite unless overwrite=true'. It also discloses encoding auto-detection, the single-part export limitation, gap-to-rest conversion, and what comes back ('the new file's summary (import) or path and blocks (export)') — substantial behavior beyond the annotations.

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 purpose, then direction-tagged clauses, then the return/overwrite note — an agent can skim the first clause and get the gist. The English/Japanese duplication roughly doubles the length, and the return-format clause sits at the end, but there is little filler.

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 responsibly explains what is returned for each direction, and covers overwrite protection, encoding, and the one-part export limit. It leaves open what happens to .ustx parts other than the selected one and how conversion failures are surfaced — minor gaps for a 7-parameter format-conversion tool.

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% and already marks part/singer/phonemizer/encoding as direction-specific, so baseline is 3. The description still adds meaning the schema lacks: export writes only 'one voice part', and import's charset behavior depends on a Charset= line in the source file, which informs the encoding parameter's role.

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 and resource with scope: 'Convert between classic UTAU .ust and .ustx files', plus the qualifier 'no OpenUtau needed' which separates it from the project-level siblings (open_project, export_project). Both directions are named and the preserved data (vibrato VBR, Mode2 PBS/PBW/PBY/PBM) makes the tool's identity unmistakable.

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?

Gives direction-specific conditions: '.ust to .ustx: reads Shift_JIS unless a Charset= line says otherwise; import the .ust itself, not a MIDI made from it', and '.ustx to .ust: one voice part, gaps become R rests'. The MIDI note is effectively an exclusion steering the agent away from the wrong input. It does not name a sibling alternative when the task is really OpenUtau-side editing, so it stops short of 5.

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