Skip to main content
Glama

set_notes

Destructive

Change a MIDI clip's notes by replacing all, or adding and removing specific notes by start and pitch in one undoable step. Use it to move or resize notes without partial edits.

Instructions

Change the notes of a MIDI clip: give replace, or add and/or remove. One undo step.

Removes happen before adds, so to move or resize a note, remove it and add it in one call. If one entry is wrong, nothing changes.

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": {
      "clip": "<clip>"
    },
    "name": "set_notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
addNoNotes to add, for example [{"start": 0, "length": 1, "pitch": "C4"}]. Not with replace.
clipYesA MIDI clip handle or path, for example tracks/"Bass"/clips/0 (clips in timeline order).
removeNoNotes to remove by start and pitch, for example [{"start": 0, "pitch": 60}]. Not with replace.
replaceNoAll the notes of the clip; every other note goes. [] clears the clip.

Output Schema

NameRequiredDescriptionDefault
clipYes
addedYes
removedYes
note_countYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the supplied annotations in three concrete ways: "One undo step" tells the agent the whole call collapses into a single reversible operation, "Removes happen before adds" discloses execution ordering, and "If one entry is wrong, nothing changes" promises all-or-nothing validation. Those are exactly the traits an agent needs before attempting a destructiveHint=true mutation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three compact paragraphs: operation and parameter choice first, the ordering workaround second, the atomicity guarantee last. No filler, and the most decision-relevant line leads.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A destructive mutation tool whose evidence burden is fully met: mode selection, ordering, atomicity and undo granularity are all covered, and an output schema exists so return values need not be described. Nothing an agent needs to call it safely is absent.

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, but the description still adds value by stating the combination rule between the three top-level parameters and the ordering semantics that the schema does not express. It also reinforces that `replace` is total (all notes) rather than additive.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Change the notes of a MIDI clip") and immediately enumerates the three modes of operation (replace vs add/remove). The read counterpart, get_notes, is not named, but the mutation framing makes the distinction obvious from the verb alone.

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?

Explicitly says to supply either `replace` or `add` and/or `remove`, and adds a concrete workflow rule: to move or resize a note, remove and add it in one call. What's missing is an explicit pointer to get_notes for reading or to undo for reverting, so it stops short of full alternative routing.

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