Skip to main content
Glama

write_notes

Adds or replaces notes in a specified pattern, with controls for channel, position, length, pitch, velocity, and pan; set replace=false to append notes instead of overwriting.

Instructions

Write notes into pattern pattern (an id).

notes: [{"channel": id, "position": 0, "length": 0.5, "key": 60, "velocity": 100, "pan": 64}, ...]; position/length in unit (beats by default). channel fills in notes that leave theirs out. replace=True: these become the notes of channel in the pattern (or all of its notes when channel is None); replace=False: they are added to what is there.

Input Schema

NameRequiredDescriptionDefault
nameNoWrite notes
unitNobeats
notesYes
channelNo
patternYes
replaceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does disclose the highest-risk trait: replace=True overwrites, and with channel=None it replaces ALL notes in the pattern. That is a real destructive-scope disclosure an agent needs. It omits return values, error behavior on malformed notes, and whether out-of-range positions extend the pattern.

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?

Well front-loaded: purpose first, then the note object example, then unit/channel/replace semantics. Each sentence earns its place. There is minor noise, including a stray trailing quote and a slightly awkward 'channel fills in notes that leave theirs out' phrasing.

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?

For a 6-parameter mutation tool with no annotations and no output schema, the definition covers inputs well but leaves the agent guessing about outcome: nothing says what the call returns, whether the target pattern must already exist, or how written positions interact with pattern length. Adequate but with clear gaps.

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 0% and the notes items schema is only an open object (additionalProperties: true), so the description is doing heavy lifting: it documents the per-note shape (channel, position, length, key, velocity, pan), units for position/length, the channel fill-in default, and replace semantics. Only `name` goes unmentioned, and that is a display label, so the compensation is nearly complete.

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 line states a specific verb and resource — writing notes into a pattern identified by id — which an agent can easily separate from siblings like get_notes and clear_notes. It stops short of naming those siblings explicitly, so there is no stated differentiation, only implicit contrast.

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

Usage Guidelines3/5

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

The replace=True/False explanation effectively tells the agent about two usage modes (overwrite vs append), which is genuinely useful guidance. However, there is no guidance on when to prefer this over alternatives such as clear_notes followed by a write, or whether to call get_notes first to preserve existing content, and no stated prerequisites.

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