Skip to main content
Glama

Run a synkopa command

synkopa_run
Destructive

Runs one Synkopa command and returns its JSON result, enabling agents to edit channels, patterns, effects, routing, or render audio in a project.

Instructions

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.

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": {
      "args": "<args>"
    },
    "name": "synkopa_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsYesThe command and its options, one word per item. Numbers are written as strings ("140").
projectNoAbsolute path of a .synkopa project file to work on without the app (loaded, edited, saved back). Omit to act on the project open in the running Synkopa app.
sessionNoOnly when several Synkopa apps are open: the id (or its first characters) of the one to use, from synkopa_run ["sessions"].

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is known. The description adds genuinely new behavior: each edit is one undo step, results are returned as JSON, and the `project` parameter enables headless operation on a file versus acting on the running app. It does not cover failure modes, whether a failed command rolls back, or concurrency with the open app.

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?

Front-loaded with the one-line purpose, then examples, then coverage, then discovery commands. The long middle sentence listing every covered domain is dense but justifies itself as a capability map; nothing is truly redundant.

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

Completeness4/5

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

With no output schema, the description does the right work by saying the JSON result is returned, and it flags undo granularity for a destructive tool. Slightly short on error behavior and on what the JSON payload looks like for arbitrary commands, but sufficient for correct invocation.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description earns above baseline by explaining the `args` convention precisely: words after `synkopa`, one item per array element, no shell quoting, numbers as strings, with four concrete example arrays. That meaning is not derivable from the schema alone, though `project` and `session` are left entirely to 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 concrete verb and resource: run one `synkopa` command and return its JSON result, then enumerates the domains it covers (channels, patterns, effects, rendering, etc.). It hints at the sibling relationship by noting that ["schema"] returns the ops of synkopa_apply, but never states directly how this differs in purpose from synkopa_apply or synkopa_script.

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?

Gives useful in-band discovery routes (["help"] for the full command reference, ["schema"] for synkopa_apply ops, ["catalog"] for effect types/parameters/presets/instruments), and the worked arg examples show the expected calling convention. However, it never says when to reach for this tool instead of synkopa_apply or synkopa_script, so the routing decision is left implicit.

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