Skip to main content
Glama

Apply project ops atomically

synkopa_apply

Apply related project edits as one atomic change with a single undo step; all operations succeed or none apply.

Instructions

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}}].

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": {
      "ops": "<ops>"
    },
    "name": "synkopa_apply"
  }
}

Input Schema

NameRequiredDescriptionDefault
opsYesThe ops, in order.
labelNoName of the undo step, as the musician sees it in the Edit menu (e.g. "Busier hats").
dryRunNoWith `project`: try the ops and report whether they change the project, without saving the file.
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"].
ifRevisionNoThe `revision` from your last read: the edit is refused with REVISION_CONFLICT if the project changed since.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations declare the write profile (readOnlyHint=false, destructiveHint=false) and are not contradicted. The description adds behavior the annotations cannot express: the all-or-nothing failure model and the fact that the entire batch collapses into one undo step, which materially affects how an agent should batch its edits. It omits what happens on partial failure and what the call returns, so it is strong but not complete.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, each doing distinct work: the atomic guarantee first, the when-to-use rule second, the op-vocabulary pointer and examples last. Nothing is repeated from the schema and nothing is padded; the two inline op examples are the shortest way to convey the op object shape.

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 six-parameter mutating tool with no output schema, the description covers the essential semantics: atomicity, undo granularity, when to reach for it, and where op definitions live. The one real gap is the absence of any statement about what a successful call yields (e.g., a new revision or confirmation), which matters since there is no output schema to fall back on.

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 the baseline is 3; each parameter already has its own description, including dryRun, project, session, and ifRevision. The description adds just enough to warrant the baseline's upper edge by showing the concrete shape of an op via two examples and stating that the op vocabulary is defined by synkopa_run ["schema"] — but it adds no detail on label, session, or revision handling beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Apply a batch of project ops as one atomic change and one undo step: all of them apply, or none" gives a specific verb (apply), resource (project ops), and a decisive scope qualifier (batch, atomic). The atomic boundary and undo granularity let an agent distinguish this from single-op or read-oriented siblings like synkopa_run without opening a schema.

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?

"Use it for related edits (a pattern with its notes, a clip and its automation)" is an explicit when-to-use rule, and it points to synkopa_run ["schema"] as the source of op names and fields. It stops short of stating when NOT to use it (e.g., a single unrelated edit) or how it relates to synkopa_script, so the routing is clear but not exhaustive.

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