Skip to main content
Glama

FAS Vietnamese API

Cancel a translation job

cancel_translation_job
DestructiveIdempotent

Cancel a translation job. Segments already translated are kept (get_translation_job returns them) and the characters of the rest are given back. Cancelling a job that has already ended changes nothing.

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": {
      "jobId": "<jobId>"
    },
    "name": "cancel_translation_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobIdYesThe job id returned by create_translation_job.

Output Schema

NameRequiredDescriptionDefault
kindNo
errorNo
jobIdYes
resultNo
statusYesqueued, running, succeeded, failed or cancelled.
blockedNo
partialNoThe job ended early; result holds only the finished segments.
progressYes
replayedNo
warningsNo
createdAtNo
requestIdNoThe API request id; quote it when you contact support.
updatedAtNo
sourceLangNo
targetLangNo
refundedCharsNo
pollAfterSecondsNoWait about this long before polling again.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description goes well beyond them: it specifies exactly what survives (already-translated segments, retrievable via get_translation_job), what is restored (characters of untranslated segments), and the no-op behavior on terminated jobs. That is precisely the side-effect detail an agent needs before invoking a destructive 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?

Three short sentences, each carrying distinct information: the action, the preservation/refund semantics, and the edge case. Nothing is redundant and the action is front-loaded.

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?

For a one-parameter destructive tool with an output schema already defined, the description covers the action, its irreversible side effects, resource accounting, and idempotent re-invocation. An agent has everything needed to decide and call correctly.

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?

There is a single required parameter, jobId, and schema description coverage is 100% — the schema already documents it as the id returned by create_translation_job, including the expected pattern. The description adds nothing about the parameter, which is acceptable given the schema does the work, 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?

The first sentence states a specific verb and resource ('Cancel a translation job'), which unambiguously separates it from siblings like create_translation_job and get_translation_job. The following sentences further pin down the scope of the operation (partial work retained, remainder refunded).

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?

The description gives clear operating context: cancelling an already-ended job is a no-op, which tells the agent it is safe to call without a pre-check. It also points to get_translation_job as the way to retrieve retained segments. It stops short of an explicit 'use X instead' routing statement, so it is not a 5.

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.