Skip to main content
Glama

Cancel a job

cancel_job
Destructive

Stop one of your jobs that is queued, running or waiting for you. It is the only way to stop one: a tool call that stops waiting (cancelled or timed out) leaves the job running. A cancelled job cannot be resumed: its status becomes cancelled, what it already did on websites stays done, and what it already spent stays charged. Use it only when the person wants the job stopped; to pause and let them drive the browser use take_control, to steer it use message_job, and to start a finished job over use rerun_job. Returns an error for a job that has already ended or is not yours.

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": {
      "id": "<id>"
    },
    "name": "cancel_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe job to stop (an id from list_jobs, browser_task or get_job).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / id / description
      Added value: +"The job to stop (an id from list_jobs, browser_task or get_job)."
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds substantial context the annotations cannot: the job is unrecoverable, status becomes cancelled, completed website actions persist, and money already spent remains charged. It also discloses a subtle trap — a timed-out or cancelled tool call leaves the job running — which is exactly the kind of behavior an agent could otherwise get wrong.

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?

The description is front-loaded with what the tool does and its scope, then layers irrevocability, alternatives, and error behavior in that order. Every sentence carries distinct information — no restatement of the title and no padding.

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?

For a one-parameter destructive action with no output schema, the definition covers outcome state, irreversibility, side effects, cost implications, invocation caveats, and failure mode. Nothing an agent needs in order to decide whether and how to call it 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% for the single id parameter, and the schema already explains it comes from list_jobs, browser_task, or get_job. The description only adds the ownership qualifier ("one of your jobs"), so the baseline of 3 is appropriate when the schema does the heavy lifting.

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?

The first sentence gives a specific verb (stop) and resource (a job) plus the exact eligible states: queued, running, or waiting for you. It also distinguishes this from sibling actions by naming take_control, message_job, and rerun_job as the tools for other intents, so an agent can route correctly without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description states the explicit condition for use ("only when the person wants the job stopped") and names three alternatives with the conditions that select them: take_control for pausing and driving the browser, message_job for steering, rerun_job for restarting a finished job. It also notes a negative case — calling it on an already-ended or foreign job returns an error.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.