Skip to main content
Glama
transglot MCP server

transglot MCP server

Official
by transglot

Retry failed batch items

retry_failed_batch
Destructive

Re-queue failed items from a finished batch as a new AI translation batch, then poll the returned batch ID for status.

Instructions

Re-queue the FAILED items of a finished batch as a new AI translation batch. SPENDS AI word quota and conflicts with a running batch (active-batch, HTTP 409). Returns the new batch; poll get_batch_status with its id. 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": "retry_failed_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
batch_idYesId of the finished batch whose failed items should be retried.

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.5/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing cost (spends AI word quota), a concrete failure mode and its error code (active-batch, HTTP 409), the permission prerequisite ('manage' ability), and the return shape (the new batch). These are exactly the operational facts an agent needs before triggering a destructive, quota-consuming write.

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, front-loaded statements — action, cost/conflict, result/follow-up, permission — with no filler. The most consequential warning (quota spend, 409 conflict) appears early rather than buried.

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?

Covers the trigger condition, cost, conflict behavior, required permission, and next step, and an output schema already exists so return-value detail is unnecessary. Nothing an agent would need to invoke this correctly 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 description coverage is 100% and the single batch_id parameter is already documented as 'Id of the finished batch whose failed items should be retried.' The description reinforces that only failed items are affected but adds no format or syntax detail beyond the schema, so the baseline 3 applies.

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?

States a specific verb (re-queue) against a specific resource (the FAILED items of a finished batch) with the exact outcome (a new AI translation batch). The scope qualifier 'FAILED' and 'finished batch' distinguishes it from siblings like get_batch_status and cancel_batch without ambiguity.

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?

Gives clear preconditions and constraints: the batch must be finished, a running batch causes an HTTP 409 conflict, and the 'manage' ability is required. It also routes the agent to the correct follow-up tool (get_batch_status). It stops short of naming an explicit alternative for other retry/resubmit needs, so a 4 rather than 5.

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