Skip to main content
Glama

Render notes

render.notes
Read-onlyIdempotent

Look at a score's notes: a piano roll as an image, time left to right, one row per pitch with note names up the side, one colour per part, bar and beat lines. A range of beats, and parts to show (default all). It is drawn on the same axes as render.spectrogram, so the two can be compared row for row. Comes inline and with a signed download url. Time runs in seconds by the score's tempo map, as the music plays; rows run C1 to B9, A4 = 440 Hz. A note's fill is as strong as its velocity, with a white line where it starts. The notes drawn are the ones the score plays: each notes region plays its source's notes that start inside it, a region that shares a source shows them too, and a note that starts outside its region is silent and not drawn. Audio regions are sound, not notes: render.spectrogram shows them. The result names each part's colour, the plot's pixel box and where each bar line is.

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": {
      "score_id": "<score_id>"
    },
    "name": "render.notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
partsNopart_ids to draw. Default all
score_idYesThe score
long_edgeNoLongest side (the width) in pixels; rows get taller with it
from_beatsNoStart of the range. Default 0
until_beatsNoEnd of the range. Default the score's end

Output Schema

NameRequiredDescriptionDefault
barsYes
plotYesThe plot in image pixels: a time t is at x = left + (t - from_seconds) / seconds_per_pixel; a row is row_pixels high, the highest at top
imageYes
notesYesNotes drawn in all
partsYes
pitchYes
score_idYes
beat_linesYes
from_beatsYes
until_beatsYes
from_secondsYes
audio_regionsYesAudio regions in the range: sound, not notes, so not drawn
until_secondsYes
seconds_per_pixelYes
notes_outside_rowsYesNotes below the lowest row or above the highest, not drawn

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already establish readOnly/idempotent/non-destructive, and the description goes well beyond them: it discloses that output arrives both inline and as a signed download URL, that the result names each part's colour, the plot's pixel box and bar-line positions, and that long_edge makes rows taller. It also spells out the non-obvious rule that notes starting outside their region are silent and not drawn.

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?

The core rendering and differentiation facts are front-loaded in the first two sentences, and the trailing sentences carry real information rather than filler. It is dense and long for a single paragraph, and the notes-region sharing rule is somewhat laboured, but almost every clause earns its place.

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?

For a render tool with five parameters, an output schema and full annotation coverage, the description covers the visual output, the scope of notes drawn, the tempo-map time basis, and the shape of the result. Nothing an agent needs to call it correctly or interpret the output is missing.

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 coverage is 100% and each parameter already has a description, so the schema carries the semantics. The description reinforces 'a range of beats, and parts to show (default all)' and the row/pitch domain (C1 to B9, A4 = 440 Hz), but adds little about parameters that the schema does not already state, and the 'time runs in seconds' phrasing slightly blurs the beats-vs-seconds distinction of from_beats/until_beats.

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?

Opens with a precise verb+resource ('Look at a score's notes: a piano roll as an image') and immediately specifies the visual encoding (time left to right, one row per pitch, one colour per part). It explicitly distinguishes itself from render.spectrogram by declaring they share axes yet notes and audio regions are different things.

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?

Gives a clear routing rule away from the sibling: 'Audio regions are sound, not notes: render.spectrogram shows them.' That covers the main when-not case, and 'It is drawn on the same axes as render.spectrogram, so the two can be compared row for row' gives the complementary case. No general statement of prerequisites or exclusions beyond that.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.