Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

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

Synkopa is a digital audio workstation with the FL Studio workflow: Channel Rack, patterns, piano roll, Playlist, mixer. These tools run its synkopa command line and return its JSON.

Where a call acts:

  • Without project: the project open in the running Synkopa app. Every edit is one step in the app's undo history, so the musician can take it back with Ctrl+Z. If the app is not running the call fails and says so.

  • With project (absolute path of a .synkopa file): the file is loaded, the command runs, and the file is saved back if it changed. No app, window or audio device is needed. Create a file with synkopa_run ["new", "/abs/song.synkopa", "--template", "demo"].

How to work:

  1. Read first: synkopa_context. Its revision and nextId are needed for edits.

  2. Look up before guessing: synkopa_run ["help"] lists every command; ["schema"] every op synkopa_apply accepts, with an example; ["catalog"] effect types, parameters, presets and instruments.

  3. Edit with synkopa_run (one command), synkopa_apply (several ops as one atomic undo step) or synkopa_script (several commands, one load and one save on a file).

  4. Check the result without speakers: synkopa_run ["render", "--out", "/abs/check.wav"] bounces offline and returns peak, RMS, loudness and clipping.

Units: Playlist time in beats (4 = one bar); pattern step and len in sixteenths; track and insert vol is a fader position (0.7937 = 0 dB); clip gain in dB; pan -1..1. New ids count up from context.nextId.

Errors read CODE: message. REVISION_CONFLICT: the musician changed the project meanwhile, read it again and decide; do not retry blindly. NEEDS_APP: play, stop, undo, redo and auditions need the running app. FILE_OPEN: that file is open in the app; drop project and edit it there. Paths are resolved against this server's working folder: pass absolute paths.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
synkopa_contextA

Read the Synkopa project: tempo, key, Playlist tracks, mixer inserts with their effects and parameters, patterns, Channel Rack channels, audio sources, markers, plus revision and nextId. Call this before any edit. Changes nothing.

synkopa_runA

Run one synkopa command and return its JSON result. args are the words after synkopa, one array item each (no shell quoting), e.g. ["bpm", "140"], ["pattern", "--id", "1", "--ch", "kick", "--steps", "x... x... x... x..."], ["add-fx", "--insert", "3", "--type", "reverb"], ["render", "--out", "/abs/mix.wav"], ["undo"]. Covers everything the command line does: channels and instruments, patterns and notes, note generators, effects, routing, sidechain, automation, markers, audio import, stem separation, chord detection, pitch editing, auto vocal, mix assistant, MIDI files, rendering. ["help"] returns the full command reference; ["schema"] the ops of synkopa_apply; ["catalog"] effect types, parameters, presets and instruments. Each edit is one undo step.

synkopa_applyA

Apply a batch of project ops as one atomic change and one undo step: all of them apply, or none. Use it for related edits (a pattern with its notes, a clip and its automation). Op names, fields, units and an example of each come from synkopa_run ["schema"]. Example ops: [{"op": "setBpm", "bpm": 128}, {"op": "setLoop", "loop": {"a": 0, "b": 16}}].

synkopa_scriptA

Run several synkopa commands in order, one per line, written as on a command line: words separated by spaces, '…' or "…" around a word with spaces (no escapes, so JSON goes in '…'). Example lines: "bpm 128", "pattern --id 1 --ch hat --steps 'x.x. x.x. x.x5 x.x9'", "render --out /abs/preview.wav". With project the file is loaded once and saved once at the end, and nothing is saved if a line fails. Without it the lines run in the app one by one: lines before a failing one stay applied, each as its own undo step. The result lists each line's reply.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
cli-helpEvery `synkopa` command with its options: what synkopa_run accepts.

TDQS

A4/5.0

Scored across 4 tools

Disambiguation4/5

The four tools have largely distinct roles: read-only context, a single CLI command, an atomic batch, and a multi-line script. The main overlap is between synkopa_run and synkopa_script, and between synkopa_apply and synkopa_script for multi-edit workflows; the descriptions do explain atomicity and failure semantics, but an agent could still hesitate over which execution tool to use.

Naming Consistency4/5

All tools share a consistent `synkopa_` prefix and short, readable names. The suffixes mix a noun (`context`) with verbs (`run`, `apply`, `script`), a minor deviation from a pure verb_noun pattern, but still predictable and easy to scan.

Tool Count5/5

Four tools are well-scoped for a broad CLI-backed music production server: one read, one single command, one atomic batch, one script runner. The heavy lifting is delegated through `run`/`apply`/`script`, so the surface stays compact without losing capability.

Completeness4/5

The set covers reading full project state, any CLI command, atomic multi-op edits, undo via `run`, and discovery through help/schema/catalog. There is no dedicated project open/save tool, though script mentions project-file loading, and no direct resource-level read granularity beyond the full context dump.

Maintenance

ActivityMaintained
ResponsivenessUsually handled