Skip to main content
Glama
transglot MCP server

transglot MCP server

Official
by transglot

Cancel a running batch

cancel_batch
Idempotent

Stop a pending or processing AI translation batch to halt further spending, return unspent reserved words to the cycle allowance, and preserve completed translations for retry.

Instructions

Stop a pending or processing AI translation batch. Queued chunks refuse to run, so this is how you STOP spend rather than cause it, and the batch's unspent reserved words go back to the cycle allowance (words already spent on the items it completed stay spent). Already-translated items are kept; the remaining items are marked failed, so retry_failed_batch resumes what was stopped. Idempotent: a batch that already finished comes back unchanged with its own status, never an error. Requires the "manage" ability.

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": {
      "batch_id": "<batch_id>"
    },
    "name": "cancel_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
batch_idYesId of the batch to stop.

Output Schema

NameRequiredDescriptionDefault
idYes
totalYes
failedYes
statusYes
triggerYes
failuresNo
completedYes
started_atYes
finished_atYes
language_breakdownYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=false, idempotentHint=true), it discloses concrete side effects: queued chunks refuse to run, unspent reserved words return to the cycle allowance while spent words stay spent, completed items are kept, remaining items are marked failed, and finished batches return unchanged rather than erroring. It also states the "manage" ability requirement, which annotations do not convey.

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?

The action is front-loaded in the first sentence, then the consequences and idempotency follow in a logical order. Every clause carries behavioral information; the density is high but nothing is padding, though a single long paragraph is slightly harder to scan than separated points.

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?

An output schema exists, so return values need not be explained. The description still covers what an agent needs to call this safely: side effects on completed and remaining items, allowance accounting, idempotent behavior, and the required permission.

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?

The single batch_id parameter has full schema description coverage ("Id of the batch to stop"), so the schema carries the semantics. The description adds nothing parameter-specific beyond implying which batch state is affected. Baseline 3 is appropriate when coverage is 100%.

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: "Stop a pending or processing AI translation batch." It names the exact scope (pending or processing) and distinguishes the action from the sibling retry_failed_batch, which it explicitly says resumes what was stopped.

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 gives clear context for when to reach for this tool — to STOP spend rather than cause it — and points to retry_failed_batch as the recovery path. It does not state explicit when-not-to-use conditions, but the scope line (pending or processing) already excludes finished batches implicitly.

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