Skip to main content
Glama
live-agent-bridge

live-agent-bridge

by huaidj

write_melody

Generate melodies or basslines from compact note:beats text into Ableton clips, creating a clip when the target slot is empty.

Instructions

Write a melody / bassline from compact text into a clip (created if the slot is empty).

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": "write_melody"
  }
}

Input Schema

NameRequiredDescriptionDefault
clipNoClip ref/path (e.g. 'id 123'); alternative to track+slot
modeNoreplace
nameNo
slotNo
trackNo
melodyYesSpace-separated 'note:beats' tokens, e.g. 'A3:1 C4:.5 E4:.5 r:1 [A2 E3]:2 G4:1@80'. r = rest, [..] = chord, @n = velocity. Notes use Ableton octaves (C3 = 60)
velocityNo
transposeNo
default_beatsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=false. The description adds one genuinely useful behavioral fact beyond that: a clip is created when the target slot is empty. However, it does not disclose that default 'replace' mode likely overwrites existing notes, nor any validation/failure behavior for malformed melody text.

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 front-loaded sentence with no filler, and the parenthetical correctly follows the main action. It is efficient, though for a 9-parameter mutation tool the brevity borders on under-specification.

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 9-parameter, non-read-only tool with 22% schema coverage and no output schema, one sentence is not enough. Critical gaps remain: the replace-vs-add semantics, the clip vs track+slot addressing rule, and the units/behavior of transpose and default_beats.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 22% across 9 parameters, so the description carries most of the burden and largely fails: it says nothing about mode ('replace' vs 'add'), velocity, transpose, default_beats, name, or how clip relates to track+slot. Only 'compact text' gestures at the melody parameter, whose syntax is already fully documented in the schema.

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?

States a specific verb ('Write') and resource ('a melody / bassline') plus the input format ('compact text') and destination ('into a clip'). This is enough to distinguish it from write_chords and write_drum_pattern by resource type, though it never explicitly contrasts itself with write_notes.

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?

No when-to-use or when-not guidance and no named alternative. The description does not tell an agent whether to prefer this over write_notes, write_chords, or edit_notes, nor what prerequisites (e.g. an existing track/clip) apply.

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