Skip to main content
Glama

apply_commands

Execute one or more raw control-plane commands as a single all-or-nothing undo step, enabling batched project edits that either fully apply or fully roll back.

Instructions

Run raw control-plane commands (Lemon Studio docs/control-plane.md) as ONE undo step, all or nothing. Positions and lengths here are raw ticks. Each command is {"op": ..., fields...}, e.g. {"op": "add_channel", "name": "Bass", "plugin": "Lemon Trio"}. Returns each command's result.

Input Schema

NameRequiredDescriptionDefault
nameNoEdit
commandsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations, the description bears the full burden and does disclose key behavior: commands run as one undo step, all-or-nothing semantics, raw tick units, command object shape with an example, and per-command results. It does not cover permissions, validation rules, or failure details, but the core operational behavior is well surfaced.

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?

The description is three tight sentences: purpose and atomicity first, then tick semantics, then command shape and return behavior. Every sentence adds useful information and there is no filler.

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 complex raw-command executor with no annotations, no output schema, and no schema descriptions, the description covers purpose, atomicity, an example command, tick units, docs reference, and return behavior. However, it leaves out the valid command vocabulary, the name parameter, and error/failure semantics, so it is only minimally complete.

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 description coverage is 0%, so the description must compensate. It explains the commands array element format and tick units with a useful example, but it does not explain the name parameter at all or enumerate valid op values and fields.

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 states a specific action and resource: running raw control-plane commands as a single all-or-nothing undo step. It conveys the batch/atomic nature that separates it from granular siblings, though it does not explicitly name an alternative such as propose_commands or add_channel.

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

Usage Guidelines2/5

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

The description does not explicitly say when to use this tool instead of the many granular command siblings or propose_commands. The atomic batch behavior implies a use case, but no prerequisites, exclusions, or alternative-selection guidance are given.

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