Skip to main content
Glama

Add notes

add_notes

Add notes one by one to a voice part by specifying position, duration, tone, and lyric; the part extends automatically if the notes exceed its current length.

Instructions

Add notes given one by one (position, duration, tone, lyric); the part grows if needed. Use add_melody instead to write a phrase from lyrics text and a melody string. Returns added (new note indexes), part_duration, note_count. / 音符を1つずつ指定して追加します(必要ならパートを延長)。歌詞テキストとメロディからなら add_melody。

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>",
      "notes": "<notes>"
    },
    "name": "add_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 のプロジェクト
notesYesNotes to add, positions relative to the part. / 追加する音符

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.5.0
    • addedInput schema / properties / notes / description
      Added value: +"Notes to add, positions relative to the part. / 追加する音符"
    • changedInput schema / properties / notes / items / properties / lyric / description
      Previous value: -"Lyric. / 歌詞"New value: +"Lyric, one syllable or mora; '+' extends the previous one. / 歌詞"
    • changedInput schema / properties / notes / 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)"
    • 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"
      +}
  2. Changed8 schema fields changedv0.4.0
    • removedInput schema / $defs
      Removed value: -{
      -  "NoteIn": {
      -    "properties": {
      -      "duration": {
      -        "description": "Length in ticks (480 = quarter note). / 長さ(ティック、480 = 四分音符)",
      -        "title": "Duration",
      -        "type": "integer"
      -      },
      -      "lyric": {
      -        "default": "a",
      -        "description": "Lyric. / 歌詞",
      -        "title": "Lyric",
      -        "type": "string"
      -      },
      -      "position": {
      -        "description": "Start tick, relative to the part. / パート先頭からの開始ティック",
      -        "title": "Position",
      -        "type": "integer"
      -      },
      -      "tone": {
      -        "anyOf": [
      -          {
      -            "type": "integer"
      -          },
      -          {
      -            "type": "string"
      -          }
      -        ],
      -        "description": "MIDI number or note name (C4 = 60). / MIDI 番号または音名(C4 = 60)",
      -        "title": "Tone"
      -      }
      -    },
      -    "required": [
      -      "position",
      -      "duration",
      -      "tone"
      -    ],
      -    "title": "NoteIn",
      -    "type": "object"
      -  }
      -}
    • removedInput schema / properties / notes / items / $ref
      Removed value: -"#/$defs/NoteIn"
    • addedInput schema / properties / notes / items / properties
      Added value: +{
      +  "duration": {
      +    "description": "Length in ticks (480 = quarter note). / 長さ(ティック、480 = 四分音符)",
      +    "type": "integer"
      +  },
      +  "lyric": {
      +    "default": "a",
      +    "description": "Lyric. / 歌詞",
      +    "type": "string"
      +  },
      +  "position": {
      +    "description": "Start tick, relative to the part. / パート先頭からの開始ティック",
      +    "type": "integer"
      +  },
      +  "tone": {
      +    "description": "MIDI number or note name (C4 = 60). / MIDI 番号または音名(C4 = 60)",
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / notes / items / required
      Added value: +[
      +  "position",
      +  "duration",
      +  "tone"
      +]
    • addedInput schema / properties / notes / items / type
      Added value: +"object"
    • removedInput schema / properties / notes / title
      Removed value: -"Notes"
    • removedInput schema / properties / part / title
      Removed value: -"Part"
    • removedInput schema / title
      Removed value: -"add_notesArguments"
  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 declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=false, so the description is not carrying the safety burden alone. It still adds real behavior beyond them: the part is auto-extended when notes exceed its length, and it enumerates the return payload (added indexes, part_duration, note_count). It does not address duplicate/overlap behavior, which matters for a non-idempotent insert.

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: the insert semantics and the alternative come first, and the return fields are appended compactly. The English/Japanese mirroring roughly doubles length, but the content is parallel rather than padded. No wasted preamble.

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 3-parameter mutation tool with full schema coverage and no output schema, the description covers purpose, alternative, side effect and return values — enough to call it correctly. Remaining gaps are edge-case ordering/duplication rules for the notes array and the bridge-vs-direct-file constraint, the latter of which lives in the schema.

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 part, path, position, duration, tone and lyric are all documented structurally, including tick units and the '+' lyric convention. The description only echoes the field list and adds the 'part grows' implication for out-of-range positions, which is marginal extra meaning. Baseline 3 applies when the schema does the heavy lifting.

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 notes given one by one (position, duration, tone, lyric)') plus a scope detail that the part grows as needed. It explicitly contrasts itself with the sibling add_melody, so an agent can pick between one-note-at-a-time entry and phrase-level entry without inspecting schemas.

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?

Names the alternative (add_melody) and the exact condition that selects it: writing a phrase from lyrics text plus a melody string. That leaves the inverse condition — incremental note-by-note insertion — unambiguous for this tool.

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