Skip to main content
Glama

Batch commands

batch
Destructive

Execute multiple After Effects tool commands in one round trip and one undo step; stops at the first error unless stopOnError is false.

Instructions

Run many tool commands in ONE round trip and ONE undo step (much faster than separate calls). Each entry is {command: '', args: {...}} using the same argument names as the individual tools. Only tools that run inside AE can be batched (not bridge_status/launch_after_effects/install_bridge_panel/preview tools that return images). Stops at the first error unless stopOnError=false.

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": {
      "commands": "<commands>"
    },
    "name": "batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
commandsYesCommands to run in order.
stopOnErrorNoStop at the first failing command (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the description's job is to add context, which it does: commands execute in order, all changes collapse into ONE undo step, and execution halts on the first error by default. This discloses atomicity, reversibility, and error semantics beyond the annotations without contradicting them.

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 speed/undo benefit is front-loaded in the first sentence, followed by the exact entry shape, then eligibility exclusions and error policy. Every sentence carries information an agent needs to call it correctly; there is no filler.

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 high-complexity orchestrator with no output schema, the description covers structure, eligibility, ordering, and error behavior, which is most of what matters. It leaves open what is returned on partial failure (e.g., whether results up to the failing command are reported) and whether batching a batch is permitted.

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 would be 3, but the description adds real meaning: each array entry is {command: '<tool name>', args: {...}} and args must use the same argument names as the individual tools. It also restates stopOnError=false semantics. It does not clarify whether nested batch calls are allowed or whether args are validated against the target tool's 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?

States a specific verb and resource: run many tool commands in one round trip and one undo step. It distinguishes itself from the many sibling tools by scoping what can be batched and naming the excluded tools (bridge_status, launch_after_effects, install_bridge_panel, preview tools). An agent can identify this as the orchestrator/meta tool without opening the schema.

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

Usage Guidelines5/5

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

Explicitly says when to prefer it (much faster than separate calls) and when it is not usable, listing the specific sibling tools that cannot be batched. It also states the failure-mode default: stop at first error unless stopOnError=false. Both inclusion and exclusion guidance are present.

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

Deploy Server

Other Tools