Skip to main content
Glama

Batch

batch
Destructive

Run several documented Resolve calls in sequence with one dry-run plan, confirmation token, backup and snapshot, so multi-step edits are validated before applying.

Instructions

Several documented Resolve calls in order, with one dry run, one token, one backup and one snapshot for all of them.

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

Input Schema

NameRequiredDescriptionDefault
callsYes[{object_path, method, args?}] as in the tool call. Use {'$result': 0} in args for the object an earlier call returned
dry_runNotrue: only show the plan and get a confirm_token. false: do it, together with that token.
timelineNoHandle (tl:...) of the timeline to change, from list_timelines or state_snapshot.
confirm_tokenNoFrom the dry run of exactly this call. Works once, for five minutes.
stop_on_errorNo
acknowledge_trapNoOnly if the user accepted the known problem named in the error TRAP.

Output Schema

NameRequiredDescriptionDefault
okYes
errorNo
resultNo
statusYes
changesNo
dry_runNo
snapshotNo
warningsNo
backup_madeNo
destructiveNo
execution_idYes
verificationNo
confirm_tokenNo
plan_checksumNo
known_limitationsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=false, so the safety profile is covered. The description adds real value by disclosing the dry-run/confirm-token workflow and that a backup and a snapshot are taken 'for all of them', but it is ambiguous whether these are created or required, and says nothing about partial-failure semantics.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single compact sentence with no filler, which is structurally efficient. But the brevity comes at the cost of ambiguity — phrases like 'one backup and one snapshot for all of them' are compressed to the point of being unclear.

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?

An output schema exists, so return values need not be explained, and the dry-run confirmation loop is touched on. For a destructive, 6-parameter batch mutation, though, the description omits error/abort behavior (stop_on_error), the TRAP acknowledgement flow, and ordering guarantees, leaving meaningful 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 description coverage is 83%, well above the baseline threshold, and the schema itself explains calls, dry_run, timeline, confirm_token, and acknowledge_trap. The description adds no syntax or format detail beyond restating the dry-run/token flow, so baseline 3 is correct.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the tool executes several 'documented Resolve calls in order', which conveys a batch executor over an ordered list of API calls. However, 'Resolve calls' and 'documented' are left undefined, and no sibling (e.g., call, perform, edit_plan) is named to sharpen the distinction. The purpose is inferable but vague.

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?

There is no explicit guidance on when to use batch versus issuing individual calls or using the sibling 'call'/'perform' tools, and no when-not conditions. The only implied trigger is 'several ... calls', leaving the agent to guess when batching is appropriate.

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