Skip to main content
Glama

davinci_job_cancel

Cancel a running background job by ID, terminating its CLI and Config Core subprocesses to halt long-running DaVinci operations.

Instructions

取消正在运行的后台作业(会终止 CLI 及其 Config Core 子进程)。

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_id": "<job_id>"
    },
    "name": "davinci_job_cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.13.0

TDQS

B3.4/5.0
Behavior3/5

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

Because no annotations are provided, the description must carry the full burden of describing behavior. It is valuable that it discloses the destructive effect and the process tree it kills (CLI plus Config Core subprocesses), but it does not say whether the cancellation is graceful or immediate, what happens to artifacts already produced, what permissions are required, or what the tool returns.

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?

It is one front-loaded sentence with no filler; the destructive side effect is placed in parentheses right after the action instead of being buried.

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

Completeness4/5

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

Because the tool has no annotations, no output schema, and only one parameter, the critical fact to convey is the destructive side effect, and the description does convey it. What is missing is guidance on how to obtain the job_id and on what the cancel operation guarantees.

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 job_id even though schema description coverage is 0% for the single required parameter. An agent must guess where a job_id comes from and whether it is the identifier returned by davinci_job_status or by some launch tool.

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 names the specific verb and the resource it acts on (取消/正在运行的后台作业), and clarifies the scope: it terminates the CLI process and its Config Core subprocesses. That is enough to distinguish the tool from davinci_job_status and davinci_job_logs, but it never states those alternatives explicitly.

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?

The qualifier 正在运行 ("currently running") implies that the tool is intended for live jobs, but the description does not say what happens when the job has already finished or failed, nor does it point the agent to a status or logs tool for checking a job's state before cancelling it.

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