Skip to main content
Glama

read_clip_notation

Read-onlyIdempotent

Reads a MIDI clip as compact bar|beat notation with grouped chords and omitted default velocities, reducing size versus raw note JSON and enabling direct round-trip to notation writing.

Instructions

Read a MIDI clip formatted as compact bar|beat notation (grouping chords on one line, omitting default v100). Much smaller than raw get_clip_notes JSON and round-trips directly back into write_clip_notation.

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_index": "<track_index>",
      "clip_index": "<clip_index>"
    },
    "name": "read_clip_notation"
  }
}

Input Schema

NameRequiredDescriptionDefault
clip_indexYesZero-based Session-view clip-slot index on the track.
track_indexYesZero-based index of a regular track in the Live set.
beats_per_barNoBeats per bar for bar|beat formatting (default 4.0).

Output Schema

NameRequiredDescriptionDefault
dataYes
errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.0.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish readOnly and idempotent, so the safety profile is covered; the description adds genuine context beyond them: the output is a lossy-looking but round-trippable encoding that omits default velocity 100. It does not cover failure modes (missing clip, non-MIDI clip) or how beats_per_bar affects the format, so it is strong but not complete.

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?

Two sentences, zero filler, with the format and size advantage front-loaded and the round-trip partner named immediately after. Every clause carries information an agent needs.

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?

With an output schema present, the description needn't explain return values, and it covers the essential behavior: what the format is, why to choose it, and that it feeds back into write_clip_notation. The remaining gap is error/edge-case behavior for clips that aren't MIDI, which is a minor omission for a read-only tool.

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?

Schema description coverage is 100% and no parameter is mentioned in the description — track_index, clip_index, and beats_per_bar are fully documented in the schema itself. The description adds no syntax or semantic detail beyond it, so the baseline 3 applies.

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?

A specific verb+resource ('Read a MIDI clip') plus a precise description of the output format (compact bar|beat notation, chords grouped on one line, default v100 omitted). It also distinguishes itself from the sibling get_clip_notes by contrasting the raw JSON output, so an agent can pick between them without opening either schema.

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 names the alternative (get_clip_notes) and the reason to prefer this tool (much smaller payload), and it states the round-trip use case with write_clip_notation. It stops short of an explicit exclusion rule — e.g. when raw velocity/note fidelity matters more than compactness — so the trade-off must be inferred.

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