Skip to main content
Glama

Отменить Batch-задачу

ai_jobs_cancel
Destructive

Cancels a Batch job via the service; already completed work may be billed, and Video routes are not canceled.

Instructions

Отправляет отмену Batch-задачи сервису. Уже выполненная работа может быть оплачена. Video этот маршрут не отменяет.

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": {
      "job": "<job>"
    },
    "name": "ai_jobs_cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobYes
caseNoДело: название или идентификатор. Если не указать, берётся дело по умолчанию, иначе последнее открытое в панели.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

A3.5/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true, idempotentHint=false, and openWorldHint=true. The description adds genuinely new behavioral context beyond them: the cancellation is *sent to the service* (a request, not a guaranteed immediate stop), and already-completed work may still be billed. That is exactly the kind of consequence context an agent needs before invoking a destructive tool.

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 with the action front-loaded, followed by the cost caveat and the scope exclusion. Nothing is wasted and there is no filler.

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?

For a destructive two-parameter mutation, the definition covers the outcome caveat well, but it omits what the caller receives afterwards (there is no output schema), whether an already-finished job errors out, and how `job` relates to `case`. These gaps are real, though not severe for such a narrow tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description says nothing about either parameter. Schema coverage is 50%: `case` is documented in the schema (including its default-resolution behavior), while `job` has only a UUID pattern and no prose meaning. The description does not compensate for that gap or clarify the relationship between the job and the case scope.

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?

The description states a specific verb and resource: it sends a cancellation request for a Batch job ('Отправляет отмену Batch-задачи'). It also sets scope by excluding video jobs ('Video этот маршрут не отменяет'), which helps distinguish this tool from other cancellation routes, though it never names an alternative sibling.

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 exclusion: it is used for Batch jobs but not for video, which implies that video needs another route without naming it. There is no explicit guidance on prerequisites such as whether the job must be active, or whether the tool is safe to call repeatedly.

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

Deploy Server

Other Tools