Skip to main content
Glama

jobs_cancel

Signals a running task to stop. The worker checks for cancellation between leads and will stop within a few seconds. Only tasks with status IN_PROGRESS or PENDING can be cancelled.

Method: POST /api/v1/workspaces/{workspace_sqid}/jobs/{sqid}/cancel/

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": {
      "sqid": "<sqid>"
    },
    "name": "jobs_cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses that cancellation is cooperative and asynchronous ('worker checks for cancellation between leads and will stop within a few seconds'), so the agent knows the job is not stopped immediately upon return. It omits idempotency behavior and what the response body contains.

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?

Three short sentences, front-loaded with the action, then the timing behavior, then the eligibility rule. The Method/endpoint line is arguably surplus for an agent that only supplies arguments, but it is compact and non-redundant.

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 simple single-parameter mutation, the core behavior is covered, but there is no output schema and the description never says what is returned or how to confirm the job actually stopped. The mismatch between the schema's lone 'sqid' and the URL's workspace_sqid + sqid path leaves ambiguity an agent must resolve on its own.

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?

There is one parameter at 0% schema description coverage, so the description needed to explain it and does not. Only the trailing endpoint line hints that 'sqid' is a job identifier scoped under a workspace_sqid path segment — a path parameter that does not appear in the schema at all, which could actively confuse an agent about what to supply.

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 action on a specific resource: 'Signals a running task to stop.' The verb is precise (signal, not forcibly terminate) and the resource is a running task/job. It does not explicitly differentiate itself from the sibling campaigns_cancel, so it falls short of a 5.

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 a concrete precondition — 'Only tasks with status IN_PROGRESS or PENDING can be cancelled' — which tells the agent exactly when the call is legal. It does not name an alternative tool for cancelling campaigns or for killing a job instantly, so there is no explicit exclusion or routing guidance.

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.