Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LMMS_CONTROLNoThe control socket name. The bridge reads the connection file written by LMMS to get the socket address and token; the default name is `control`. If LMMS uses `--control-socket=<name>`, set `LMMS_CONTROL=<name>` for the bridge.control

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Controls a running LMMS (a music program) through its local control socket. The user hears every change live, so make small edits and say what you changed.

Units: positions and lengths are in beats. One beat is one quarter note (in 4/4 a bar is 4 beats; get_project_summary gives beats_per_bar). Steps of 1/48 beat are allowed, for example 0.25 for a sixteenth note. Note positions start at 0 at the clip start. A pitch is a MIDI number or a note name: C4 = 60, F#3, Bb2. Note volume is 0 to 200 (100 is normal) and pan is -100 (left) to 100 (right). There is no MIDI velocity.

Objects: tracks, clips and knobs have a handle (for example "a91f:track:12") and a path (for example tracks/"Bass", tracks/0/clips/2, tracks/"Bass"/knobs/"Volume"). Every tool that takes an object accepts either. A handle is valid until the project is replaced (New or Open) or the object is deleted or undone; then list again. Paths with an index change when tracks or clips are added or removed.

Normal order: get_project_summary, then list_tracks, list_clips, get_notes or list_params, then edit. Call list_plugins before add_instrument_track, and list_params before set_param. One edit call is one undo step. undo acts on the shared LMMS undo history, which also holds the user's own edits. add_instrument_track, remove_track and set_loop cannot be undone; ask the user before you remove a track.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_project_summaryA

Get the project: file, tempo, time signature, beats per bar, length, transport, loop and tracks.

Call this first. Positions and lengths are in beats (one beat = one quarter note).

list_tracksA

List the tracks in Song Editor order: mute, solo, clip count, and instrument, volume and pan.

To change mute, solo, volume or pan, use list_params and set_param on the track.

list_clipsA

List the clips of a track in timeline order. Start and length are in beats from the song start.

get_notesA

Get the notes of a MIDI clip, sorted by start, then pitch. Call this before set_notes.

Note start is in beats from the clip start; length is in beats.

list_pluginsA

List the instrument plugins that can load. Give a plugin name to add_instrument_track.

A plugin with needs_file=true makes no sound until the user loads a file in it.

list_paramsA

List knobs (parameters) with range, value and display value. Call this before set_param.

Start with a track. For a large plugin, then list one group path from groups.

add_instrument_trackA

Add an instrument track at the end of the Song Editor. Call list_plugins first.

This cannot be undone with undo.

remove_trackA

Remove an instrument track and all its clips. Ask the user to confirm first.

This cannot be undone. The index paths of later tracks move down by one.

add_midi_clipA

Add an empty MIDI clip to an instrument track, then add notes with set_notes. One undo step.

set_notesA

Change the notes of a MIDI clip: give replace, or add and/or remove. One undo step.

Removes happen before adds, so to move or resize a note, remove it and add it in one call. If one entry is wrong, nothing changes.

set_paramA

Set one knob to a value in its own units (see min, max and options from list_params). One undo step.

A value out of range is an error; it is not clamped.

set_tempoB

Set the song tempo. One undo step.

transportA

Play, pause, stop or seek the Song Editor. The same action twice has no extra effect. No undo step.

set_loopA

Change the Song Editor loop. Give at least one argument. This cannot be undone with undo.

undoA

Undo the most recent change in LMMS, like Edit > Undo. It can be the user's own edit.

List again to see the result.

redoA

Redo the most recently undone change in LMMS, like Edit > Redo. List again to see the result.

save_projectA

Save the project, like File > Save, or like Save As when you give path. It never opens a dialog.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 17 tools

Disambiguation5/5

Each tool targets a clearly distinct resource and action: listing tracks vs clips, getting vs setting notes, listing plugins vs params, transport vs loop, and undo/redo are all unambiguous. Cross-references in descriptions further clarify when to use related tools like list_params and set_param.

Naming Consistency4/5

All names use snake_case and most follow a verb_noun pattern (set_tempo, list_tracks, add_midi_clip, save_project). A few standard actions like transport, undo, and redo omit the noun, which is a minor deviation but still predictable.

Tool Count4/5

The 17 tools cover the DAW's core operations with little redundancy, and each appears to earn its place. The count is slightly above the ideal 3–15 range but remains reasonable for a DAW control surface.

Completeness3/5

Core workflows are well covered: project summary, tempo, tracks, clips, notes, params, transport, loop, undo/redo, and save. However, clips can be added and read but not deleted or updated (no remove_clip or set_clip), which is a notable lifecycle gap.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues