Skip to main content
Glama

Analyze Roll

analyze_roll

Analyze any project source as a text piano-roll score, comparing note starts and sustains per pitch and optionally exporting a notes list.

Instructions

Piano roll of any source from the same step features the comparisons score: one row per pitch, one char per 16th ('#' note starts, '=' sustains). low/high limit the pitch range (split bass / chords / lead that share a stem); rel_db = how far under the step's loudest note still counts; floor_db = absolute floor. as_notes=True returns a notes_write list (beats relative to the first bar) instead - write it, then cmp to verify.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lowNoC1
barsNo
highNoC8
rel_dbNo
sourceNoref:other
projectYes
as_notesNo
floor_dbNo
max_barsNo
min_stepsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It discloses the output structure and the dual mode (ASCII grid vs. notes_write list), which is useful. However it never states that this is a read-only analysis operation, nor any constraints on cost, scope, or side effects, so it only partially fulfills the burden.

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

Conciseness3/5

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

The main purpose is front-loaded, but the prose is dense and occasionally ungrammatical ('from the same step features the comparisons score'), forcing re-reading. It is reasonably sized for a 10-param tool but not cleanly structured.

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

Completeness3/5

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

An output schema exists, so return values need not be explained, yet the description helpfully details the grid encoding anyway. The gap is on the input side: for a 10-parameter tool with zero schema coverage, several parameters remain unexplained, so the definition is not fully complete for correct invocation.

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 0% across 10 parameters, so the description must compensate. It explains low/high (pitch range for splitting bass/chords/lead), rel_db (threshold under the loudest note), floor_db (absolute floor), and as_notes, but leaves source, bars, project, max_bars, and min_steps entirely undocumented in both schema and description.

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 states a specific verb and resource: rendering a piano-roll comparison score of a source, with an explicit output encoding ('#' note starts, '=' sustains). It distinguishes itself within the crowded analyze_* family by describing a grid/score output rather than pitch, chord, or melody summaries, though it never names a sibling directly.

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

Usage Guidelines2/5

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

There is a hint of a workflow ('as_notes=True returns a notes_write list ... write it, then cmp to verify'), but no explicit guidance on when to choose this over analyze_notes, analyze_pitches, analyze_melody, or analyze_grid. The agent is left to infer the selection condition from the output format alone.

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