Skip to main content
Glama

Add notes

score.add_notes
Idempotent

Add notes to a region of a score, up to 2,000 a call. Each note: pitch (a MIDI number 0–127, decimals allowed: 60.5 is a quarter-tone above middle C; or a name such as C3 or F#4; C4 is 60, middle C), at_beats (from the region’s start), length_beats and velocity (1–127, how hard it is struck). On a drum kit or a sliced sampler a pitch selects a sound, not a height (score.get lists which pitch plays what). at_seconds and length_seconds may be given in place of the beats, which puts a note on an exact moment, on the grid or off it. Exactly what is passed is stored: nothing is moved to a grid or a scale. Returns the new score_id (edit that one next) and note_ids in the order given.

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

Input Schema

NameRequiredDescriptionDefault
notesYes[{pitch, at_beats, length_beats, velocity}], or at_seconds and length_seconds for the two positions
score_idYesThe score to edit
region_idYesA notes region

Output Schema

NameRequiredDescriptionDefault
parentYesThe version this edit started from
changedYesWhat the edit added, removed or modified
note_idsYesIn the order the notes were given
score_idYesThe new version: edit this one next (older ids stay valid)
warningsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-destructive, idempotent, closed-world, so the description is not burdened with the safety profile. It adds real behavioral context beyond them: the 2,000-per-call ceiling, the guarantee that values are stored verbatim with no snapping, and a note that the returned score_id is the handle to edit next. It does not address what happens on repeated identical calls despite the idempotentHint.

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 action and the 2,000 limit are front-loaded, and the remaining sentences cover pitch semantics, alternative time units, non-quantizing behavior, and return values in a compact flow. The pitch/MIDI naming sentence is near-verbatim duplication of the schema description and could be trimmed without information loss.

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 three-parameter mutation tool with annotations and an output schema, the description covers invocation semantics, unit alternatives, per-call limits, and the storage guarantee, so an agent can call it correctly without consulting documentation. Return values need not be spelled out given the output schema, and it still flags which returned identifier matters next.

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, but the description adds meaning the schema does not carry: on a drum kit or sliced sampler a pitch selects a sound rather than a height, and the seconds-based pair places a note 'on the grid or off it.' The pitch explanation largely restates the schema's own wording, which limits the added value.

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 first clause gives a specific verb and resource with scope: 'Add notes to a region of a score, up to 2,000 a call.' It also separates itself conceptually from a grid-quantizing editor by stating 'nothing is moved to a grid or a scale.' It never names the adjacent siblings score.set_notes or score.remove_notes, so the boundary with them is left to inference.

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?

Clear guidance on how to choose between coordinate systems: at_beats/length_beats for grid-relative placement versus at_seconds/length_seconds for exact moments, and it explicitly points to score.get for drum-kit pitch mapping. It gives operating context rather than exclusions; there is no statement about when to use score.set_notes instead of this tool, or whether adding the same note twice creates a duplicate.

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.