Skip to main content
Glama

write_automation

Replaces an FX-parameter envelope over a declared range, then reads back to confirm the write. Rolls back automatically if anything fails.

Instructions

Write one FX-parameter envelope transactionally: snapshot, inclusive-range replacement, reread confirmation, and automatic rollback on any failure. A declared range always means replacement.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
trackNoExact track name (case-insensitive).
pointsYes[{bar, beat, value, shape} | {time|seconds, value, shape}]
rangesNo[{start_time, end_time}] inclusive replacement scope
dry_runNoPreview: return what would run without changing the project.
fx_indexNo
fx_scopeNo
param_indexNo
track_containsNoCase-insensitive substring; errors if it matches more than one track.
fx_name_containsNo
target_track_guidNoStable REAPER track GUID; preferred when available.
use_selected_trackNoTarget the currently selected track instead of naming one.
param_name_containsNo
clear_existing_in_rangeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does well: it discloses snapshotting, reread confirmation, and automatic rollback on any failure, plus the critical destructive semantic that a declared range means replacement rather than merge. It omits permission requirements and what happens to envelope data outside the declared range, keeping it short of a 5.

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?

Two dense sentences with the transactional guarantee front-loaded and the range-replacement caveat last. No filler, every clause adds information.

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

Completeness3/5

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

For a 13-parameter mutation tool with no annotations and no output schema, the description covers the safety model well but leaves parameter usage, targeting precedence (GUID vs name vs selection), and sibling differentiation unexplained. Adequate but with clear gaps.

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 only 54% across 13 parameters, so the description should compensate more than it does. It clarifies the semantics of ranges/replacement and implicitly the dry_run-vs-write distinction, but leaves many targeting parameters (fx_index, param_index, fx_scope, param_name_contains) relying on sparse schema text.

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 specific verb and resource: writing one FX-parameter envelope transactionally, with named sub-behaviors (snapshot, range replacement, reread, rollback). However it does not distinguish itself from the close sibling apply_automation_transaction, which an agent could easily confuse it with.

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?

The rule 'A declared range always means replacement' implies when the range parameter applies, but there is no explicit guidance on when to choose this tool over apply_automation_transaction, set_fx_param, or get_fx_param_automation. Usage is only weakly implied.

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