Skip to main content
Glama

Blitframe

Cancel variation batch

cancel_variation_batch
DestructiveIdempotent

Cancel a batch of variations. A queued batch comes back cancelled at once. A running one stops after the row it is making: the variations it made stay, and the rest are skipped. A batch that has ended comes back as it is.

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": {
      "projectId": "<projectId>",
      "batchId": "<batchId>"
    },
    "name": "cancel_variation_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
batchIdYesThe batch's id, from create_variation_batch.
projectIdYesProject id, from list_projects.

Output Schema

NameRequiredDescriptionDefault
idYes
errorYes
totalYes
failedYes
statusYes
createdAtYes
projectIdYes
succeededYes
finishedAtYes
variationsYes
sourceVersionIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations, it discloses three distinct outcome paths: a queued batch cancels immediately, a running batch stops after the in-flight row leaving completed variations in place and skipping the rest, and a finished batch is unchanged. That partial-cancellation semantics is exactly the non-obvious behavior an agent needs before invoking a destructive, idempotent operation.

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?

Four short sentences, front-loaded with the action and then ordered by batch state (queued, running, ended). No filler and no repetition of the title or annotations.

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

Completeness5/5

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

The output schema covers return values and the annotations cover safety and idempotency, so the description only needs to explain the state-dependent cancellation semantics — which it does fully. Nothing an agent needs in order to predict the result of a call is missing.

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 coverage is 100% and both parameters already document their provenance (batchId from create_variation_batch, projectId from list_projects), so the schema does the heavy lifting. The description adds no parameter-level meaning beyond that, which is the baseline expectation here.

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?

"Cancel a batch of variations" gives a specific verb plus resource, and the qualifier "batch" separates it from the sibling cancel_render / cancel_renders tools that operate on renders. It does not explicitly name an alternative, but the resource scoping is unambiguous.

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?

Usage is implied by the resource (variation batches), and the state-by-state behavior tells an agent what outcome to expect. However, there is no explicit when-to-use or when-not-to-use guidance against siblings like delete_variation or cancel_render, and no stated prerequisites (e.g. permissions).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources