Skip to main content
Glama

Edit notes

edit_notes
DestructiveIdempotent

Edit existing OpenUtau notes in place by index to change pitch, timing, lyrics, tuning, vibrato, or phoneme timing; apply shared vibrato to selected notes.

Instructions

Edit notes in place by index: position, duration, tone, lyric, tuning, vibrato (any field; length > 0 turns it on), phoneme_overrides (per-phoneme offset ticks, preutter/overlap ms; 0 clears). vibrato + indices gives the same vibrato to many notes (omit indices for every note). Pitch curves are kept; OpenUtau clamps preutter/overlap to the sample. Use set_pitch for pitch curves, set_lyrics for many lyrics at once. Returns the edited notes (file: edited count). / 番号で指定した音符をその場で編集します(位置・長さ・音高・歌詞・微調整・ビブラート・音素タイミング)。 vibrato と indices で複数の音符に同じビブラート(indices 省略で全音符)。ピッチ曲線は保持。ピッチ曲線は set_pitch。

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": "edit_notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
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 のプロジェクト
editsNoOne entry per note: index plus the fields to change. / 音符ごとの変更
indicesNoWith vibrato: the notes that get it; omit for every note in the part. / vibrato を付ける音符(省略で全音符)
vibratoNoVibrato fields for many notes at once (the notes in indices, or every note). / 複数の音符に同じビブラート

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changedv0.5.0
    • addedInput schema / properties / edits / description
      Added value: +"One entry per note: index plus the fields to change. / 音符ごとの変更"
    • changedInput schema / properties / edits / items / properties / tone / description
      Previous value: -"MIDI number or note name (C4 = 60). / MIDI 番号または音名(C4 = 60)"New value: +"MIDI number or note name (C4 = 60, A#3, Bb3). / MIDI 番号または音名(C4 = 60)"
    • changedInput schema / properties / edits / items / properties / vibrato / description
      Previous value: -"Vibrato fields to change. / 変更するビブラート項目"New value: +"Vibrato fields to change; length > 0 turns it on. / 変更するビブラート項目"
    • changedInput schema / properties / edits / items / properties / vibrato / properties / depth / description
      Previous value: -"Depth in cents. / 深さ(セント)"New value: +"Depth in cents 5..200. / 深さ(セント)"
    • changedInput schema / properties / edits / items / properties / vibrato / properties / in / description
      Previous value: -"Fade-in percent. / フェードイン(%)"New value: +"Fade-in percent 0..100. / フェードイン(%)"
    • changedInput schema / properties / edits / items / properties / vibrato / properties / length / description
      Previous value: -"Percent of note length (0 = off). / 音符長に対する割合(0 で無効)"New value: +"Percent of note length 0..100 (0 = off). / 音符長に対する割合(0 で無効)"
    • changedInput schema / properties / edits / items / properties / vibrato / properties / out / description
      Previous value: -"Fade-out percent. / フェードアウト(%)"New value: +"Fade-out percent 0..100. / フェードアウト(%)"
    • changedInput schema / properties / edits / items / properties / vibrato / properties / period / description
      Previous value: -"Period in ms. / 周期(ミリ秒)"New value: +"Period in ms 5..500. / 周期(ミリ秒)"
    • changedInput schema / properties / edits / items / properties / vibrato / properties / shift / description
      Previous value: -"Phase shift percent. / 位相シフト(%)"New value: +"Phase shift percent 0..100. / 位相シフト(%)"
    • addedInput schema / properties / indices
      Added value: +{
      +  "description": "With vibrato: the notes that get it; omit for every note in the part. / vibrato を付ける音符(省略で全音符)",
      +  "items": {
      +    "type": "integer"
      +  },
      +  "type": "array"
      +}
    • 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 / vibrato
      Added value: +{
      +  "description": "Vibrato fields for many notes at once (the notes in indices, or every note). / 複数の音符に同じビブラート",
      +  "properties": {
      +    "depth": {
      +      "description": "Depth in cents 5..200. / 深さ(セント)",
      +      "type": "number"
      +    },
      +    "drift": {
      +      "description": "Pitch drift (-100..100). / ドリフト(-100〜100)",
      +      "type": "number"
      +    },
      +    "in": {
      +      "description": "Fade-in percent 0..100. / フェードイン(%)",
      +      "type": "number"
      +    },
      +    "length": {
      +      "description": "Percent of note length 0..100 (0 = off). / 音符長に対する割合(0 で無効)",
      +      "type": "number"
      +    },
      +    "out": {
      +      "description": "Fade-out percent 0..100. / フェードアウト(%)",
      +      "type": "number"
      +    },
      +    "period": {
      +      "description": "Period in ms 5..500. / 周期(ミリ秒)",
      +      "type": "number"
      +    },
      +    "shift": {
      +      "description": "Phase shift percent 0..100. / 位相シフト(%)",
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "part",
      -  "edits"
      -]New value: +[
      +  "part"
      +]
  2. Changed8 schema fields changedv0.4.0
    • removedInput schema / $defs
      Removed value: -{
      -  "NoteEdit": {
      -    "properties": {
      -      "duration": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "New length in ticks. / 新しい長さ",
      -        "title": "Duration"
      -      },
      -      "index": {
      -        "description": "Note index in the part. / パート内の音符番号",
      -        "title": "Index",
      -        "type": "integer"
      -      },
      -      "lyric": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "New lyric. / 新しい歌詞",
      -        "title": "Lyric"
      -      },
      -      "position": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "New start tick. / 新しい開始ティック",
      -        "title": "Position"
      -      },
      -      "tone": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "MIDI number or note name (C4 = 60). / MIDI 番号または音名(C4 = 60)",
      -        "title": "Tone"
      -      },
      -      "tuning": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Fine tuning in cents. / 微調整(セント)",
      -        "title": "Tuning"
      -      },
      -      "vibrato": {
      -        "anyOf": [
      -          {
      -            "$ref": "#/$defs/Vibrato"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Vibrato fields to change. / 変更するビブラート項目"
      -      }
      -    },
      -    "required": [
      -      "index"
      -    ],
      -    "title": "NoteEdit",
      -    "type": "object"
      -  },
      -  "Vibrato": {
      -    "properties": {
      -      "depth": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Depth in cents. / 深さ(セント)",
      -        "title": "Depth"
      -      },
      -      "drift": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Pitch drift (-100..100). / ドリフト(-100〜100)",
      -        "title": "Drift"
      -      },
      -      "in": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Fade-in percent. / フェードイン(%)",
      -        "title": "In"
      -      },
      -      "length": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Percent of note length (0 = off). / 音符長に対する割合(0 で無効)",
      -        "title": "Length"
      -      },
      -      "out": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Fade-out percent. / フェードアウト(%)",
      -        "title": "Out"
      -      },
      -      "period": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Period in ms. / 周期(ミリ秒)",
      -        "title": "Period"
      -      },
      -      "shift": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "description": "Phase shift percent. / 位相シフト(%)",
      -        "title": "Shift"
      -      }
      -    },
      -    "title": "Vibrato",
      -    "type": "object"
      -  }
      -}
    • removedInput schema / properties / edits / items / $ref
      Removed value: -"#/$defs/NoteEdit"
    • addedInput schema / properties / edits / items / properties
      Added value: +{
      +  "duration": {
      +    "description": "New length in ticks. / 新しい長さ",
      +    "type": "integer"
      +  },
      +  "index": {
      +    "description": "Note index in the part. / パート内の音符番号",
      +    "type": "integer"
      +  },
      +  "lyric": {
      +    "description": "New lyric. / 新しい歌詞",
      +    "type": "string"
      +  },
      +  "phoneme_overrides": {
      +    "description": "Phoneme timing per phoneme of the note. / 音符内の音素ごとのタイミング",
      +    "items": {
      +      "properties": {
      +        "index": {
      +          "description": "Phoneme index within the note (0 = first; see list_phonemes). / 音符内の音素番号",
      +          "type": "integer"
      +        },
      +        "offset": {
      +          "description": "Move the phoneme start by ticks (- = earlier; 0 clears). / 音素の開始をティックでずらす(負で早く、0 で解除)",
      +          "type": "integer"
      +        },
      +        "overlap_delta": {
      +          "description": "Overlap change in ms (0 clears). / オーバーラップの増減(ミリ秒、0 で解除)",
      +          "type": "number"
      +        },
      +        "preutter_delta": {
      +          "description": "Preutterance change in ms (0 clears). / 先行発声の増減(ミリ秒、0 で解除)",
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "index"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "position": {
      +    "description": "New start tick. / 新しい開始ティック",
      +    "type": "integer"
      +  },
      +  "tone": {
      +    "description": "MIDI number or note name (C4 = 60). / MIDI 番号または音名(C4 = 60)",
      +    "type": "string"
      +  },
      +  "tuning": {
      +    "description": "Fine tuning in cents. / 微調整(セント)",
      +    "type": "integer"
      +  },
      +  "vibrato": {
      +    "description": "Vibrato fields to change. / 変更するビブラート項目",
      +    "properties": {
      +      "depth": {
      +        "description": "Depth in cents. / 深さ(セント)",
      +        "type": "number"
      +      },
      +      "drift": {
      +        "description": "Pitch drift (-100..100). / ドリフト(-100〜100)",
      +        "type": "number"
      +      },
      +      "in": {
      +        "description": "Fade-in percent. / フェードイン(%)",
      +        "type": "number"
      +      },
      +      "length": {
      +        "description": "Percent of note length (0 = off). / 音符長に対する割合(0 で無効)",
      +        "type": "number"
      +      },
      +      "out": {
      +        "description": "Fade-out percent. / フェードアウト(%)",
      +        "type": "number"
      +      },
      +      "period": {
      +        "description": "Period in ms. / 周期(ミリ秒)",
      +        "type": "number"
      +      },
      +      "shift": {
      +        "description": "Phase shift percent. / 位相シフト(%)",
      +        "type": "number"
      +      }
      +    },
      +    "type": "object"
      +  }
      +}
    • addedInput schema / properties / edits / items / required
      Added value: +[
      +  "index"
      +]
    • addedInput schema / properties / edits / items / type
      Added value: +"object"
    • removedInput schema / properties / edits / title
      Removed value: -"Edits"
    • removedInput schema / properties / part / title
      Removed value: -"Part"
    • removedInput schema / title
      Removed value: -"edit_notesArguments"
  3. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Beyond destructive/idempotent annotations it discloses real behavior: vibrato turns on only when length > 0, preutter/overlap deltas of 0 clear values, OpenUtau clamps preutter/overlap to the sample, pitch curves are preserved, and the return value is the edited notes (file: edited count). It does not spell out that edits overwrite existing values irreversibly or what happens on an out-of-range index, which is why it stops short of 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 core verb and field list are front-loaded, and each clause carries information (field semantics, indices behavior, clamping, sibling pointers). The only drag is the run-on density of the English block and the full bilingual duplication, which doubles length even though localization is justified.

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 5-parameter mutation tool with nested objects and no output schema, the description covers return shape, the file-vs-bridge execution mode, and the subtle clearing/turning-on rules. Remaining gaps are error/edge behavior (invalid index, note count limits) and explicit warning about overwriting existing note data.

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 3 is the baseline; the description earns more by explaining the non-obvious `indices` + `vibrato` interaction (same vibrato across many notes, omit indices for all) and the tick/ms units and 0-clears convention for phoneme_overrides. It adds genuine meaning rather than restating field descriptions.

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?

"Edit notes in place by index" names a specific verb, resource, addressing scheme, and the full set of editable fields (position, duration, tone, lyric, tuning, vibrato, phoneme_overrides). It also explicitly distinguishes itself from two siblings (set_pitch, set_lyrics), so an agent can pick it without opening a schema.

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

Usage Guidelines5/5

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

It routes to alternatives by name and condition: "Use set_pitch for pitch curves, set_lyrics for many lyrics at once," and clarifies that pitch curves are untouched here. The `path` parameter is framed with a decision rule (direct .ustx edit vs. live project needing the bridge), giving concrete when-to-use guidance.

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