Skip to main content
Glama

cancel_job

Cancel a queued or running video-generation job by job ID to stop unwanted work and free local GPU resources.

Instructions

Cancel a queued or running vid_gen job (POST /sdcpp/v1/jobs/{id}/cancel). LocModel 3.3.0 returns 410, 3.6.x supports it.

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_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesJob id to cancel.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden; it usefully discloses the HTTP endpoint, the accepted job states, and a version-dependent 410 failure mode. It omits whether the call is idempotent, what happens to a job already finished, and what the response contains.

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?

Two sentences with no wasted words; the action and target are front-loaded and the endpoint plus version caveat follow compactly.

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 single-parameter mutation with no annotations and no output schema, the definition covers the action, endpoint, valid states, and a version caveat. It still leaves the agent guessing about the result of the call and the treatment of already-terminal jobs.

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% on the single job_id parameter, so the schema already conveys its meaning. The description adds only that the id must refer to a queued or running job, a small increment beyond the schema.

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?

States a specific verb and resource ('Cancel a queued or running vid_gen job') and even gives the underlying endpoint, so an agent knows exactly what action is performed. It is implicitly distinguishable from its likely sibling job_status (query vs. mutation), though it never names an alternative.

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 qualifier 'queued or running' — only those job states are valid targets — and the version note ('LocModel 3.3.0 returns 410, 3.6.x supports it') tells the agent when the call will fail. There is no explicit when-to-use vs. alternatives guidance or statement about completed jobs.

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