Skip to main content
Glama

Delete notes

delete_notes
Destructive

Deletes notes by index from an OpenUtau part, shifting later notes down; omit indices to clear all notes while keeping the part. Live edits are undoable; file edits are permanent.

Instructions

Delete notes by index; omitting indices deletes every note in the part (the part stays). Later notes shift down in index. Live it is one undo step; with path it is permanent. Returns deleted and note_count. Use remove_part to delete the part itself. An empty list is refused. / 番号で音符を削除します。indices 省略でパートの 全音符(パートは残る)。空のリストは拒否します。ライブでは取り消し可、path 指定では元に戻せません。

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": "delete_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 のプロジェクト
indicesNoNote indexes in the part (see list_notes). Omit for every note. / 音符番号のリスト。省略で全音符

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.5.0
    • addedInput schema / properties / indices / description
      Added value: +"Note indexes in the part (see list_notes). Omit for every note. / 音符番号のリスト。省略で全音符"
    • 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. Changed7 schema fields changedv0.4.0
    • removedInput schema / properties / indices / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "integer"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / indices / default
      Removed value: -null
    • addedInput schema / properties / indices / items
      Added value: +{
      +  "type": "integer"
      +}
    • removedInput schema / properties / indices / title
      Removed value: -"Indices"
    • addedInput schema / properties / indices / type
      Added value: +"array"
    • removedInput schema / properties / part / title
      Removed value: -"Part"
    • removedInput schema / title
      Removed value: -"delete_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?

Annotations already declare destructiveHint=true and idempotentHint=false; the description goes beyond them by explaining why it is not idempotent ("Later notes shift down in index"), that live mode is undoable in one step while path mode is irreversible, and what is returned (deleted and note_count). It stops short of covering permission/auth requirements or concurrency, so it is not exhaustive.

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 core action and scope, then consequences, return value, and the sibling pointer. The parenthetical '(the part stays)' partially restates the remove_part sentence, and the full Japanese restatement doubles the length, which is a deliberate localization choice rather than noise.

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 destructive mutation with no output schema, the description covers scope, mode-dependent reversibility, index side effects, refusal behavior, and return fields — everything needed to call it safely. Only external prerequisites (e.g. whether the path file may be open in OpenUtau, overwrite/backup behavior) are left unaddressed.

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 both the part indexing and the omit-to-delete-all semantics are already documented structurally. The description reinforces those semantics and adds meaning the schema lacks: the part itself survives, indices shift after deletion, and an empty array is rejected rather than treated as a no-op.

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 ("Delete notes") plus the selection mechanism ("by index") and the wide-scope variant ("omitting indices deletes every note in the part"). It also explicitly distinguishes itself from remove_part, so an agent can separate it from the sibling that deletes the container itself.

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?

Gives explicit routing guidance ("Use remove_part to delete the part itself") and explains the two execution modes: in-process live editing is one undo step, while supplying path makes the deletion permanent. It also states a refusal condition ("An empty list is refused"), so the agent knows what inputs will fail.

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