Skip to main content
Glama

Add voice part

add_part

Adds an empty voice part to a track and returns its index, enabling notes or melodies to be placed with add_notes or add_melody.

Instructions

Add an empty voice part to a track. Notes go in with add_notes or add_melody; parts grow to fit their notes, and update_part fit_to_notes=true trims one to the next bar line. Returns part (its voice part index); live also summary. / トラックに空のボイスパートを追加します。音符は add_notes か add_melody。part(番号)を返します。

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": {
      "track": "<track>"
    },
    "name": "add_part"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoPart name (default "New Part"). / パート名
pathNoA .ustx file to edit directly (OpenUtau may be closed). Omit to use the project open in OpenUtau (needs the bridge). / 直接編集する .ustx ファイル(OpenUtau は閉じていて可)。省略で OpenUtau のプロジェクト
trackYesTrack index from 0 (see get_project tracks). / トラック番号(0 から)
durationNoLength in ticks (7680 = 4 bars of 4/4). / 長さ(ティック)
positionNoStart tick in the song (0 = start). / 曲中の開始ティック

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.5.0
    • addedInput schema / properties / duration / description
      Added value: +"Length in ticks (7680 = 4 bars of 4/4). / 長さ(ティック)"
    • addedInput schema / properties / name / description
      Added value: +"Part name (default \"New Part\"). / パート名"
    • addedInput schema / properties / path
      Added value: +{
      +  "description": "A .ustx file to edit directly (OpenUtau may be closed). Omit to use the project open in OpenUtau (needs the bridge). / 直接編集する .ustx ファイル(OpenUtau は閉じていて可)。省略で OpenUtau のプロジェクト",
      +  "type": "string"
      +}
    • addedInput schema / properties / position / description
      Added value: +"Start tick in the song (0 = start). / 曲中の開始ティック"
    • addedInput schema / properties / track / description
      Added value: +"Track index from 0 (see get_project tracks). / トラック番号(0 から)"
  2. Changed8 schema fields changedv0.4.0
    • removedInput schema / properties / duration / title
      Removed value: -"Duration"
    • removedInput schema / properties / name / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / name / default
      Removed value: -null
    • removedInput schema / properties / name / title
      Removed value: -"Name"
    • addedInput schema / properties / name / type
      Added value: +"string"
    • removedInput schema / properties / position / title
      Removed value: -"Position"
    • removedInput schema / properties / track / title
      Removed value: -"Track"
    • removedInput schema / title
      Removed value: -"add_partArguments"
  3. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly=false, destructive=false, idempotent=false, openWorld=false), and the description adds genuinely new behavior: parts auto-grow to fit their notes, trimming is a separate update_part operation, and the call returns the part index (plus a summary in live mode). It does not mention failure modes such as an out-of-range track index, which keeps it below 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?

The English text is front-loaded, dense, and every clause carries information (creation, note routing, growth behavior, trim alternative, return value). The verbatim Japanese restatement roughly doubles the length without adding new information, which is the only real cost.

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 correctly compensates by naming the return value (part index, plus summary in live mode), and it explains the growth/trim lifecycle an agent needs to sequence calls. Only the preconditions for the target track are left implicit, a minor gap for a 5-parameter creation tool.

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 100%, so track, name, path, duration, and position are all already documented, including the 7680-tick default. The description adds no additional meaning about the parameters beyond the empty-versus-populated distinction, so the baseline of 3 applies.

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 ('Add an empty voice part to a track') and immediately clarifies that it creates an EMPTY part, with notes arriving via add_notes or add_melody. This distinguishes it cleanly from the sibling note-creation and update_part tools without requiring the agent to open those schemas.

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?

Routes the agent explicitly to add_notes/add_melody for content and to update_part fit_to_notes=true for trimming, which is real when-to-use guidance in a workflow context. It stops short of stating exclusions or prerequisites (e.g., whether the track must already exist or whether a project must be open), so it is clear but not exhaustive.

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