Skip to main content
Glama

Transform notes

transform_notes
Destructive

Transforms a Note Grid page by harmonizing notes with scale intervals, humanizing velocity and timing, or creating varied copies with shifted notes for chorus and break sections.

Instructions

Transform one page (A–D, default: the page the module shows) of a Note Grid: "harmonize" adds the third (voices "third", default) or the third and fifth ("third+fifth") of the scale above each note; "humanize" varies velocities (and start times by one step at 1/32 resolution) by "amount" (0–1, default 0.5); "vary" copies the page to page "to" (default the next page) and moves about amount×30 % of the notes to a neighbouring scale note — a quick variation for a chorus or a break. Scale: "scale" and "root" (0 = C … 11 = B; scale indexes as in list_module_types for the Quant module), otherwise guessed from the notes.

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": {
      "id": "<id>",
      "action": "<action>"
    },
    "name": "transform_notes"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
toNo
pageNo
rootNo
scaleNo
actionYes
amountNo
voicesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.6.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations flag destructiveHint=true and readOnlyHint=false; the description backs this up by spelling out that harmonize adds voices above each note, humanize perturbs velocities and start times, and vary copies the page to a target page before moving notes. It quantifies effects (amount×30 % of notes, one step at 1/32 resolution) which annotations cannot convey. It stops short of saying whether changes are undoable or whether the original page is preserved for harmonize/humanize.

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 purpose is front-loaded in the first clause and each mode gets a compact semicolon-delimited clause, so it scans well for a dense spec. It is a single very long sentence heavy with parentheticals, which costs some readability but little is wasted.

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?

For an 8-parameter, destructive, schema-undocumented tool with no output schema, the definition covers defaults, ranges, scale encoding, and per-mode effects thoroughly. Remaining gaps are the meaning of `id`, the fate of source-page notes under harmonize/humanize, and undo/irreversibility, which matter given destructiveHint=true.

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?

With 0% schema description coverage the description must carry all parameter meaning, and it does for seven of eight: action modes, voices (third default vs third+fifth), amount range 0–1 default 0.5, root 0=C…11=B, scale indexes cross-referenced to list_module_types/Quant, page and to enums with defaults. Only the required `id` parameter is never explained, leaving a gap on the one field every call must supply.

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?

States a specific verb and resource ("Transform one page ... of a Note Grid") and then defines the three distinct actions, harmonize/humanize/vary, each with its musical effect. An agent can tell this is a bulk note-transformation tool rather than a raw note writer like set_notes without opening the 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?

Gives clear context for each mode ("a quick variation for a chorus or a break") and states defaults so the agent knows page and target defaults are safe. However it never says when to prefer this over set_notes/set_steps, nor warns that harmonizing rewrites existing notes in place versus vary which copies to a new page — the closest thing to an exclusion.

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