Skip to main content
Glama

Batch operations

batch

Run multiple Premiere Pro tool calls in sequence within a single round trip. Stops at the first error unless continue_on_error is set, reducing repeated host calls.

Instructions

Run several tool calls in order (stops at the first error unless continue_on_error). ops: [{fn:'', args:{...}}], e.g. [{fn:'markers', args:{action:'add', markers:[{time:5}]}}, {fn:'playhead', args:{seconds:5}}]. Host handler names also work; consecutive ones share one Premiere round trip. Images are dropped.

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": "batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
opsYes
continue_on_errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.5.3

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare openWorldHint=false and destructiveHint=false, so the description carries real weight and does add context: it discloses sequential execution, stop-at-first-error semantics, the continue_on_error opt-out, shared round trips for host handlers, and the lossy 'Images are dropped' limitation. It does not state whether operations completed before a failure persist, which is the main risk an agent needs to know.

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?

Dense and front-loaded: the primary behavior comes first, followed by the payload shape, then the example, then the two caveats. The example and caveats are packed into one run-on block, but no sentence is 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 2-parameter dispatcher with no output schema, the description covers invocation shape, error policy, and a data-loss caveat. The remaining gap is the return value: with no output schema present, the description should have indicated what comes back per operation, especially on partial failure.

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 0%, so the description must compensate, and it does: it defines `ops` as an ordered array of `{fn, args}` pairs, explains `fn` resolves to a tool name or a host handler name, shows where the invoked tool's arguments go, and gives `continue_on_error` a precise meaning. It leaves unstated whether `args` must match the target tool's own schema, which the agent has to infer.

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?

The description opens with a specific verb and resource: 'Run several tool calls in order.' It is immediately distinguishable from every sibling because it is a dispatcher rather than an editing operation, and the inline example makes the shape concrete.

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 implies when to reach for this tool (multiple operations, ordering matters) and states the failure policy that decides between default and `continue_on_error`. It also hints at the efficiency motive via 'consecutive ones share one Premiere round trip.' It stops short of saying when NOT to batch or that individual tools should be preferred for a single call.

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