Skip to main content
Glama

Update voice part

update_part
DestructiveIdempotent

Rename, reposition, resize, or move a voice part between tracks in an OpenUtau project. Set fit_to_notes=true to trim or extend it to the bar line after its last note.

Instructions

Rename, move (position, track) or resize a voice part; fit_to_notes=true trims or extends it to the first bar line after its last note. Notes keep their part-relative positions. Returns the part's new values (live: project summary). Use remove_part to delete it. / ボイスパートの名前変更・移動・長さ変更。fit_to_notes=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": {
      "part": "<part>"
    },
    "name": "update_part"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew part name. / 新しいパート名
partYesVoice part index from 0, counting voice parts only (see get_project voice_parts). / ボイスパート番号(0 から、ボイスパートのみ数える)
pathNoA .ustx file to edit directly (OpenUtau may be closed). Omit to use the project open in OpenUtau (needs the bridge). / 直接編集する .ustx ファイル(OpenUtau は閉じていて可)。省略で OpenUtau のプロジェクト
trackNoMove the part to this track index. / 移動先のトラック番号
durationNoNew length in ticks. / 新しい長さ(ティック)
positionNoNew start tick in the song. / 新しい開始ティック
fit_to_notesNotrue sets the length to end on the first bar line after the last note (instead of duration). / true で最後の音符の後の最初の小節線までの長さに

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.5.0
    • addedInput schema / properties / duration / description
      Added value: +"New length in ticks. / 新しい長さ(ティック)"
    • addedInput schema / properties / fit_to_notes
      Added value: +{
      +  "default": false,
      +  "description": "true sets the length to end on the first bar line after the last note (instead of duration). / true で最後の音符の後の最初の小節線までの長さに",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / name / description
      Added value: +"New part name. / 新しいパート名"
    • addedInput schema / properties / part / description
      Added value: +"Voice part index from 0, counting voice parts only (see get_project voice_parts). / ボイスパート番号(0 から、ボイスパートのみ数える)"
    • 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: +"New start tick in the song. / 新しい開始ティック"
    • addedInput schema / properties / track / description
      Added value: +"Move the part to this track index. / 移動先のトラック番号"
  2. Changed18 schema fields changedv0.4.0
    • removedInput schema / properties / duration / anyOf
      Removed value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / duration / default
      Removed value: -null
    • removedInput schema / properties / duration / title
      Removed value: -"Duration"
    • addedInput schema / properties / duration / type
      Added value: +"integer"
    • 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 / part / title
      Removed value: -"Part"
    • removedInput schema / properties / position / anyOf
      Removed value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / position / default
      Removed value: -null
    • removedInput schema / properties / position / title
      Removed value: -"Position"
    • addedInput schema / properties / position / type
      Added value: +"integer"
    • removedInput schema / properties / track / anyOf
      Removed value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / track / default
      Removed value: -null
    • removedInput schema / properties / track / title
      Removed value: -"Track"
    • addedInput schema / properties / track / type
      Added value: +"integer"
    • removedInput schema / title
      Removed value: -"update_partArguments"
  3. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (destructiveHint=true, idempotentHint=true, openWorldHint=false), so no contradiction exists — rename/move/resize are value overwrites consistent with destructiveHint. The description goes beyond them by disclosing the side effect that notes keep part-relative positions and by stating the return value ('Returns the part's new values (live: project summary)'), which annotations cannot convey.

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, two dense sentences with no filler, and the delete-alternative is placed last. The fully duplicated Japanese translation roughly doubles the length and adds nothing for an English-only agent, though it appears to be an intentional localization convention.

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 7-parameter mutation tool with no output schema, the description covers the mutation scope, a key side effect, a conditional parameter interaction, the live-vs-file execution mode and a sibling for deletion. It stops short of saying whether resizing can orphan or clip notes that fall outside the new bounds, which is the main residual ambiguity.

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; the description nevertheless adds real meaning: 'trims or extends' clarifies that fit_to_notes can shorten a part, not merely extend it, and 'Notes keep their part-relative positions' tells the agent what a resize does to contained notes — behavior the schema does not state.

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?

The description opens with concrete verbs tied to one resource: 'Rename, move (position, track) or resize a voice part'. It enumerates the exact mutation surface (name, position, track, duration/fit_to_notes), which lets an agent distinguish it from add_part, remove_part and update_track 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 Guidelines4/5

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

It explicitly routes deletion to remove_part and explains the mode choice (path for a closed .ustx, omit to use the live project needing the bridge) and when to prefer fit_to_notes over duration. It does not explicitly contrast update_part with update_track/update_project, but the enumerated fields make the boundary inferable.

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