Skip to main content
Glama

jobd_cancel

Cancel a queued or running job by ID, optionally with a reason. Running jobs receive SIGTERM via worker signal poll within about 2 seconds.

Instructions

Cancel a job (queued → cancelled; running → SIGTERM via worker signal poll, ~2s).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
job_idYes
reasonNoWhy — recorded on the broker's job_cancelled event (see jobd_events).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.5.47
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / reason / description
      Added value: +"Why — recorded on the broker's job_cancelled event (see jobd_events)."
  2. First observedv0.5.5

TDQS

B3.3/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral transparency burden on its own. It discloses meaningful state-dependent behavior: queued jobs are cancelled, and running jobs receive SIGTERM via a worker signal poll in about 2 seconds. It does not cover idempotency, auth, or failure conditions, but the core cancellation semantics are clearly exposed.

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 dense sentence that front-loads the primary action and immediately clarifies state-dependent behavior. There is no filler, and the parenthetical adds crucial implementation detail without bloating the text.

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?

The description is adequate for a simple cancellation operation, but gaps remain. It does not explain the response/acknowledgement behavior, what happens if the job is already in a terminal state, or how cancellation relates to the sibling jobd_preempt. Given that there is no output schema to compensate, these missing contextual details keep it below a 4.

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?

Schema description coverage is 50%, and the description adds little parameter-level meaning. 'Cancel a job' implicitly identifies job_id as the target job, but the description does not elaborate on job_id or reason. The reason parameter is already described in the schema, so the description itself contributes minimal semantic value 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?

The description states a specific verb and resource: 'Cancel a job'. It further clarifies the two main job states and what happens to each, which is more informative than a generic 'cancel job'. However, it does not explicitly distinguish itself from the sibling jobd_preempt, so it does not earn 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 Guidelines2/5

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

The description gives no explicit guidance on when to use this tool versus alternatives such as jobd_preempt or jobd_submit. It implies usage through its name and purpose, but the agent is left to infer the appropriate context, and no exclusions or alternative routing are provided.

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