Skip to main content
Glama

render_cancel

DestructiveIdempotent

Stop a queued or running render job to release held GPU time and stop further charges; frames already rendered stay downloadable until the job expires. Cancellation cannot be undone.

Instructions

Stop a queued or running render job of this key (a j_... job, or a b_... job split into parts, which stops every part). Effects: queued frames are dropped; only the GPU time of parts that finished rendering is charged, nothing extra; frames already rendered stay downloadable until the job expires; the rest of the GPU time held for the job is returned to the key at once. It cannot be undone or resumed: to render again, call render_final again (a new job). A job that is already done, failed or canceled is returned unchanged, and a job whose frames are all rendered and is being assembled into the video cannot be stopped (nothing more is charged). Only the key that started the job can stop it; any other job_id returns not_found. Ask the user before cancelling a render they asked for.

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": "render_cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesThe job_id returned by render_preview or render_final (j_...; a long final split into parts is b_...). Only this key's jobs; in render_status, leave it empty to list them.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.4.119
    • addedInput schema / properties / job_id / description
      Added value: +"The job_id returned by render_preview or render_final (j_...; a long final split into parts is b_...). Only this key's jobs; in render_status, leave it empty to list them."
  2. First observedv0.2.1

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the destructive/idempotent annotations by disclosing billing effects (only finished parts charged, held GPU time returned immediately), what is dropped versus retained (queued frames dropped, rendered frames remain downloadable until expiry), irreversibility, and authorization scoping (other keys get not_found). These are exactly the facts an agent needs before invoking a destructive, irreversible operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the action and effects, then consolidates edge cases and the authorization rule. It is dense rather than padded, though the long semicolon-chained sentence could be split for faster scanning.

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?

Covers procedure, billing, irreversibility, no-op cases and permissions for a single-parameter destructive tool, and an output schema exists so return shape needn't be described. The only modest gap is that it never states whether the call blocks until the job actually stops or returns a status immediately.

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

Parameters4/5

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

Schema coverage is already 100% and the schema explains that job_id comes from render_preview or render_final, so the baseline is 3. The description adds genuine meaning on top by tying the b_... prefix to split final jobs, noting that cancellation kills every part, and stating that a foreign job_id returns not_found.

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 and resource ("Stop a queued or running render job of this key") and immediately disambiguates the job-id forms (j_... vs b_... split jobs). An agent can distinguish this from sibling listing/inspection tools like render_status 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?

Gives clear conditions under which the call is a no-op (job already done/failed/canceled, or already assembling the video) and routes to render_final when the user wants to render again. It also adds a procedural guardrail ("Ask the user before cancelling"). It stops short of an explicit when-to-prefer-cancel-vs-let-it-finish rule, so not quite a 5.

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