Skip to main content
Glama

cli_batch

Runs multiple CLI commands in sequence, stopping at the first failure unless continue_on_error is set, to replay exported project scripts.

Instructions

Run several CLI commands in order (stops at the first KO unless continue_on_error). Ideal for replaying project_export_script output.

Input Schema

NameRequiredDescriptionDefault
saveNoPersist at the end
timeoutNoSeconds per command
commandsYesCLI lines
project_idYesProject id
allow_unsafeNoPermit commands outside the safe list
continue_on_errorNoKeep going after KO

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full burden and only discloses the stop-on-error control flow. It never mentions the `allow_unsafe` gate that governs whether arbitrary commands are permitted, the `save` persistence side effect on the project, per-command timeout limits, or whether partial batches leave the project partially mutated.

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 short sentences, zero filler: the execution behavior is front-loaded and the use case follows immediately. Nothing is repeated or padded.

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

Completeness2/5

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

A six-parameter command executor with no annotations and no output schema is a high-risk, high-ambiguity tool, yet the description says nothing about safety gating, state persistence, per-command timeouts, or what is returned. The agent is left to infer side effects from the schema alone.

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 100%, so every parameter is already documented and the description adds nothing beyond repeating `continue_on_error` semantics. Baseline 3 applies since the schema does the heavy lifting.

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?

Specific verb+resource ('Run several CLI commands in order') with a stated execution semantics (stop at first KO). It anchors itself to a sibling producer (`project_export_script`) to explain the intended input, though it never contrasts directly with the single-command `cli` sibling an agent could 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?

Gives one concrete use case — replaying `project_export_script` output — which implies when to reach for it. But there is no explicit when-not, no steering toward `cli` for single commands, and no mention of prerequisites such as login or an open project.

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