Skip to main content
Glama

Cancel job

job_cancel
Destructive

Request cooperative cancellation of an open job; terminal jobs reject it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jobIdYesDurable job ID returned when an asynchronous operation is queued.
reasonNoOptional reason recorded when cancelling the job.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
jobIdYesDurable job ID returned when an asynchronous operation is queued.
statusYes
cancelAcceptedYes
cancelRequestedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already flag destructive behavior, but the description adds value by explaining that cancellation is cooperative and that terminal jobs reject it. This tells an agent the operation is not forcibly terminating and may depend on job state.

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 a single sentence with no filler. The core action and the key caveat about terminal jobs are both front-loaded, making it easy for an agent to parse quickly.

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?

For a two-parameter cancellation tool with destructive annotations and an output schema, the description captures the essential semantics: cooperative cancellation and the terminal-job rejection behavior. It could elaborate on what 'open' means or what happens after cancellation, but nothing critical 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 both parameters, so the schema already documents jobId and reason. The description adds no parameter-specific detail, which is acceptable at the baseline given comprehensive schema descriptions.

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?

The description uses a specific verb ('cancel') and resource ('job'), and adds meaningful nuance: it requests cooperative cancellation and open jobs are the target while terminal jobs reject it. It does not explicitly call out a sibling tool, so it stops short of full differentiation.

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?

The description gives clear context: use it for open jobs, not terminal jobs, which reject cancellation. However, it does not explicitly describe alternatives such as job_wait, job_get, or job_report, or state when those would be preferred.

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.

Resources