Skip to main content
Glama

Run several synkopa commands

synkopa_script
Destructive

Runs multiple Synkopa commands in order from a line-per-command list, optionally loading and saving a project file once, and returns each command's result.

Instructions

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.

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": {
      "lines": "<lines>"
    },
    "name": "synkopa_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesYesOne command per item, without the leading `synkopa`.
dryRunNoWith `project`: run the lines and save nothing.
saveAsNoWith `project`: save the result to this file instead, leaving the project file as it was.
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

A4.1/5.0
Behavior5/5

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

Annotations already flag a destructive, non-read-only operation, and the description goes well beyond them: it discloses transactional semantics ('loaded once and saved once', 'nothing is saved if a line fails') versus incremental application with per-line undo steps in app mode. It also states that the result lists each line's reply, so the agent knows partial failures are reported rather than thrown away.

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 core action and line format are front-loaded, and the mode-dependent save behavior follows logically. The example lines and quoting caveats are dense but each carries usable information; a small amount of the quoting explanation could be trimmed without loss.

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?

For a five-parameter, destructive batch tool with no output schema, the description covers failure semantics, save behavior, persistence scope, and a sketch of the return value. The only notable omission is explicit contrast with the single-command siblings, which would help an agent pick correctly.

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 100%, so every parameter is already documented, and the description's mode explanation largely restates the `project`, `dryRun`, and `saveAs` schema text. It does add real meaning for `lines` by specifying quoting rules, the no-escapes constraint, and that JSON must be single-quoted, which the schema does not cover. Baseline 3 with a slight bump for that syntax guidance.

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 opens with a specific verb and resource ('Run several `synkopa` commands in order, one per line') and clarifies the batch scope, which implicitly separates it from a single-command sibling. It never names `synkopa_run` or `synkopa_apply` to make the boundary explicit, so differentiation is left partially to inference.

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

Usage Guidelines4/5

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

It clearly splits the two operating modes: with `project` the file is loaded and saved as a unit; without it lines execute against the running app one by one. That is real when-to-use guidance. It stops short of routing the agent away from siblings or stating when a single-command tool would be preferable.

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