Skip to main content
Glama

Cancel a job

cancel_job
Destructive

Stop a print job by job ID, or cancel a specific job using printer and printer_job_id from printer_status. Use it to halt unwanted or stuck prints.

Instructions

Stop a job started here by its id, or any job on a printer with printer + printer_job_id (from printer_status).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "cancel_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
jobNo
printerNo
printer_job_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.8/5.0
Behavior3/5

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

The destructiveHint annotation already signals the cancel operation is destructive. The description adds scope—cancellation can target any job on a printer when the printer_job_id is sourced from printer_status—but does not disclose irreversibility, permissions, or side effects beyond the annotation.

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?

A single sentence front-loads the primary operation and packs the alternate mode into a parenthetical source note. There is no filler; the parenthetical 'from printer_status' earns its place by clarifying where printer_job_id comes from.

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 destructive, optional-parameter tool with no output schema, the description covers the core invocation modes and parameter source. However, it omits what happens after cancellation (irreversibility, error handling, permissions) and does not resolve mutual exclusivity of the parameter sets, leaving gaps for an agent to infer.

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 0%, so the description must carry parameter meaning. It explains all three parameters and their relationship: job is the id of a job started here, while printer and printer_job_id together identify any job on a printer, with printer_job_id sourced from printer_status. It does not explicitly state that the two modes are mutually exclusive or whether job is required in the first mode.

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 states a specific action ('Stop a job') and distinguishes two invocation modes: a job started here by id, or an arbitrary printer job via printer and printer_job_id. This makes the operation's scope clear, though it stops short of explicitly naming sibling tools like job_status as the read-only alternative.

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?

It gives clear context for when to use each mode: job id for locally started jobs, or printer + printer_job_id for jobs found via printer_status. It does not state exclusions (e.g., when not to cancel) or name alternative tools, so it misses the highest level of guidance.

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