Skip to main content
Glama
live-agent-bridge

live-agent-bridge

by huaidj

write_notes

Add or replace MIDI notes in session or arrangement clips, letting agents compose or edit note patterns by pitch, timing, duration, and velocity.

Instructions

Add notes to a MIDI clip (session or arrangement), or replace a range of notes.

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": {
      "notes": "<notes>"
    },
    "name": "write_notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
clipNoClip ref/path (e.g. 'id 123'); alternative to track+slot
modeNoreplace clears the given pitch/time range first (default: whole clip)add
slotNo
notesYes
trackNo
from_timeNo
time_spanNo
from_pitchNo
pitch_spanNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so safety is largely covered. The description adds that notes can be written to either session or arrangement clips and that replace mode exists, which is real context beyond the annotations. It does not mention that replace clearing a range is effectively destructive to existing notes, nor any permission/precondition for targeting a track.

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?

A single front-loaded sentence with no filler, and the primary action comes first. The terseness is more under-specification than verbosity, so it costs little here.

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

Completeness2/5

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

Nine parameters, one required, low schema coverage, no output schema, and a mutation tool — this needs far more than one sentence. An agent cannot learn from the description how to address a clip or how the replace range is bounded, which are exactly the decisions that determine a correct call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 22% across 9 parameters, so the description must compensate and it does not. The critical addressing alternatives ('clip' ref vs 'track'+'slot') and the range-slicing parameters (from_time, time_span, from_pitch, pitch_span) are never explained in the description; only the add/replace distinction is hinted at.

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 ('Add notes to a MIDI clip') plus the alternative behavior ('or replace a range of notes'). An agent can tell this writes notes, but there is no wording that distinguishes it from the sibling edit_notes, so the boundary between the two write paths must be inferred from names alone.

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

Usage Guidelines3/5

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

The two modes (add vs replace) are named, which implies the usage split, but there is no explicit statement of when to choose this tool over edit_notes, get_notes, or the higher-level write_melody/write_chords helpers. Usage is implied rather than guided.

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