Skip to main content
Glama

get_notes

Read-only

Retrieve the notes of a MIDI clip, sorted by start time and pitch, so you can inspect or prepare them before editing or setting notes.

Instructions

Get the notes of a MIDI clip, sorted by start, then pitch. Call this before set_notes.

Note start is in beats from the clip start; length is in beats.

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": "get_notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
clipYesA MIDI clip handle or path, for example tracks/"Bass"/clips/0 (clips in timeline order).

Output Schema

NameRequiredDescriptionDefault
clipYes
notesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered; the description adds ordering of results and the beat-based unit semantics for the returned start/length values, which is real behavioral context. It doesn't cover edge cases like empty or invalid clips.

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 short sentences, front-loaded with the action, then the workflow call-out, then the units caveat. No filler, and each sentence carries distinct information.

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 one-parameter read tool with annotations and an output schema, the description is essentially sufficient: it names the operation, ordering, units, and the follow-up call. Only failure behavior for bad clip handles is unaddressed, which is minor.

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?

With a single parameter at 100% schema description coverage, the schema already explains the clip handle/path format. The description's unit notes refer to returned note fields rather than the `clip` argument, so it adds no meaning beyond the schema for the parameter itself.

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 ("Get the notes of a MIDI clip") plus the ordering guarantee (by start, then pitch), which distinguishes it from the sibling set_notes without ambiguity.

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 routes the agent: "Call this before set_notes" gives a concrete workflow precondition and names the relevant alternative. It stops short of stating when not to use it or what happens if the clip has no notes.

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