Skip to main content
Glama

add_melody

Adds a melody to a song project from note:beats text notation, creating a Lead track when none is specified and supporting chords, rests, accents, ties, and optional bar, sound, and name settings.

Instructions

A melody in text: "E5:1 D5:0.5 C5:0.5 A4:2 r:1 ..." = note:beats, r = rest, [C4 E4 G4]:2 = chord, ! accent, ? soft, ~ tie to the next equal note. Durations carry over when omitted. track omitted = a new "Lead" track.

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": {
      "melody": "<melody>"
    },
    "name": "add_melody"
  }
}

Input Schema

NameRequiredDescriptionDefault
barNo
barsNo
nameNo
soundNo
trackNo
melodyYes
projectNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.1/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It usefully documents the melody mini-language, including note:beats, rests, chords, accents, soft notes, ties, and carried durations, plus the default track behavior, but it does not describe mutation effects, return values, or error conditions.

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 description is dense and front-loaded with the notation example and rules, with no filler. A clearer separation of syntax rules from parameter behavior would improve scanability, but it is appropriately sized.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter mutation tool with no annotations and no output schema, the description is incomplete: it omits five parameters and says nothing about where the melody is added, what happens to existing tracks, or what the call returns. It covers the hardest part, melody syntax, but not enough of the calling contract.

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 explain parameters. It gives extensive meaning for melody and explains track omission, but leaves bar, bars, name, sound, and project undocumented, so the compensation is only partial.

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 description defines the melody text format in detail and notes that an omitted track creates a new "Lead" track, making clear this tool adds a melody. It does not explicitly distinguish itself from siblings such as add_notes or add_chords, so sibling differentiation is limited.

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

Usage Guidelines2/5

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

There is no guidance on when to use add_melody instead of add_notes, add_chords, add_arpeggio, or add_bassline, nor any stated prerequisites. The only usage-like detail is the default behavior when track is omitted.

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