Skip to main content
Glama

Cancel render job

cancel_render_job
Idempotent

Request cancellation of a queued or running render job so its partial output can be removed once Kdenlive processes exit.

Instructions

Request cancellation of a queued or running render job. The returned job has cancel_requested=true; its state becomes 'cancelled' once Kdenlive and its child processes have exited and the partial output was removed. Cancelling a finished job 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": {
      "job_id": "<job_id>"
    },
    "name": "cancel_render_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesId returned by start_render.

Output Schema

NameRequiredDescriptionDefault
stateYes
job_idYes
outputYes
presetYes
resultNoFull result (validation, log tail) once the job has ended.
projectYes
progressNo
created_atYes
started_atNo
finished_atNo
progress_noteNo
queue_positionNo1 = next to start.
elapsed_secondsNo
timeout_secondsYes
cancel_requestedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.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 explaining the asynchronous contract: the response carries cancel_requested=true and the state only flips to 'cancelled' after Kdenlive and child processes exit and partial output is removed. This is exactly the kind of timing and side-effect detail an agent cannot infer from readOnlyHint/idempotentHint/destructiveHint alone.

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 tight sentences, front-loaded with the action, then the return/state semantics, then the edge case. Every sentence carries distinct information with no repetition of the name or schema.

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?

Although an output schema exists and return values need not be spelled out, the description still surfaces the one field an agent must watch (cancel_requested) and the eventual terminal state. Nothing needed to call it correctly or interpret the result 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 coverage is 100% and the single job_id parameter is already documented as coming from start_render, so the schema does the heavy lifting. The description's reference to a 'queued or running job' implicitly constrains which job_id values are meaningful, but adds no format or syntax detail. Baseline 3 is appropriate.

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 ('Request cancellation') and resource ('queued or running render job'), including the state scope that qualifies it. Against siblings like start_render, get_render_job, and list_render_jobs, the operation is unmistakable without opening any schema.

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?

Clearly delimits when it applies (queued or running jobs) and adds a useful negative case: 'Cancelling a finished job changes nothing,' which tells the agent the call is harmless rather than erroring. It stops short of explicitly routing the agent to get_render_job to confirm status first, but the context is well defined.

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