Skip to main content
Glama

fit_to_scale

Moves out-of-scale notes in a clip or track to the nearest note in the song's key, mode, or scale.

Instructions

Move the notes of a clip (or a whole track) that are outside the song's scale (or key/mode) to the nearest scale note.

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": {
      "target": "<target>"
    },
    "name": "fit_to_scale"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNo
modeNo
targetYes
projectNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does clearly state the transformation (notes get rewritten to the nearest scale tone), which signals a mutating, pitch-altering operation, but it omits whether the change is undoable, whether it affects only selected notes, and what happens on failure.

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?

A single well-formed sentence with the action front-loaded and the qualifiers in parentheticals, so nothing is wasted. Minor nesting of two parentheticals slightly slows parsing but does not obscure the core action.

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 four-parameter mutation tool with no annotations and no output schema, the description explains the core effect but leaves the project parameter and the key/mode override behavior unexplained. It is adequate to understand the action but not fully sufficient to call it correctly in every case.

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 0%, so the description must compensate for all four parameters. It usefully clarifies that target is a clip or an entire track and that key/mode relate to the song's scale, but it says nothing about the project parameter or about which of key/mode override the song's setting versus default to it.

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?

The description gives a concrete verb-plus-object ('move the notes of a clip or a whole track') along with the trigger condition ('outside the song's scale') and the exact outcome ('to the nearest scale note'). An agent can immediately distinguish this pitch-correction operation from neighbors like add_notes or add_chords.

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 description implies when the tool applies by naming the condition (notes outside the scale) and the two scopes (single clip or whole track), but it never states when to prefer it over alternatives or what prerequisites must hold. It also gives no guidance on when to pass key/mode versus relying on the song's existing scale.

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