Skip to main content
Glama

Get MIDI notes

get_notes
Read-onlyIdempotent

Read notes from a MIDI track's clips in Lathe, returning editable notation or JSON lists; filter by clip or bar range to edit and write back patterns.

Instructions

The notes in a MIDI track's clips. By default in Lathe's note notation (see notation_guide): drum grids and token lines, with the bars they cover, ready to edit and write back with write_notes' pattern over the same bars. format "list" gives one JSON object per note instead: pitch (number and name, C3 = middle C), start in bars (1-based) and beats, length in beats, velocity 1-127, at most 2000 notes. Optionally one clip, or only notes between two bars.

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": {
      "track": "<track>"
    },
    "name": "get_notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
clipNoOnly this clip (id from describe_track)
trackYesMIDI track name or id
formatNo"pattern" (default) or "list"
to_barNoOnly notes starting before this bar (1-based)
from_barNoOnly notes starting at or after this bar (1-based)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely useful behavior beyond that: a hard cap of 2000 notes, the coordinate conventions (1-based bars, C3 = middle C), and the fact that the returned bars pair directly with write_notes. It does not discuss ordering, pagination, or what happens when the 2000 cap is hit.

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?

It is dense and front-loaded, leading with what is returned before the format variants. The parenthetical stacking and run-on structure make it slightly harder to scan than it could be, but every clause carries information.

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?

With no output schema, the description carries the burden of describing returns and does so for both modes: notation grids and token lines with their bars, or per-note objects with pitch, start, length and velocity. Combined with the 2000-note cap and the bar/clip filters, an agent has enough to call this correctly.

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, and the description earns above that by explaining what the format parameter actually selects (notation pattern vs. one JSON object per note) and by enumerating the list-format output fields with their units. The track, clip, from_bar and to_bar parameters are still mostly defined by the schema text.

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?

The description identifies a specific resource (the notes in a MIDI track's clips) and distinguishes the two return shapes, which lets an agent separate it from write_notes or describe_track. The framing is a noun phrase rather than a verb+resource, so it is slightly weaker than an explicit read action, but the scope is unambiguous.

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?

It gives concrete routing context: default pattern notation is the thing to use when you intend to edit and write back via write_notes over the same bars, and format "list" is the alternative when per-note JSON is wanted. It also states the clip and bar-range narrowing options. It stops short of naming explicit exclusions or prerequisites (e.g., when to prefer describe_track instead).

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