Skip to main content
Glama

github_mcp.cancel_job

Destructive

Cancel an existing job while retaining its workspace so you can stop further work without discarding files; commits, pushes, and pull requests already made remain unchanged.

Instructions

Mark an existing job CANCELLED while retaining its workspace. Requires write policy. Returns job ID, state and workspace_retained. Does not undo existing commits, pushes or pull requests.

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": {
      "job_id": "<job_id>"
    },
    "name": "github_mcp.cancel_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesExisting job identifier to cancel.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
messageNo
error_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.2
    • addedInput schema / properties / job_id / description
      Added value: +"Existing job identifier to cancel."
  2. First observedv1.0.1

TDQS

A4.2/5.0
Behavior4/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 real context beyond them: the workspace is retained, remote artifacts are untouched, and a write policy is required. It does not say whether cancellation is reversible or what happens to an in-flight job, which keeps it short of a 5.

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?

Four short sentences, front-loaded with the action and scope, then prerequisite, then return values, then the negative-effect boundary. Nothing is redundant and every sentence carries information an agent needs before invoking.

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 one-parameter job-state mutation, the description covers action, prerequisite, retained state, and non-effects, which is what an agent needs to call it safely. Listing the returned fields is slightly redundant given an output schema exists, but it does not detract from completeness.

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?

Only one parameter exists and the schema documents it at 100% coverage ('Existing job identifier to cancel'). The description's phrase 'an existing job' reinforces the constraint but adds no format, lookup, or error-handling semantics beyond the schema, so the baseline 3 applies.

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?

States a specific verb and resource ('Mark an existing job CANCELLED') plus a distinguishing scope qualifier ('while retaining its workspace'). Combined with the sibling set (resume_job, get_job_status, get_job_report), an agent can tell this is the terminal state-change operation rather than a read or resume.

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 prerequisite ('Requires write policy') and bounds the effect ('Does not undo existing commits, pushes or pull requests'), which tells the agent when the tool is sufficient and what it will not accomplish. It stops short of explicitly naming alternatives such as resume_job or get_job_status, so routing is left partly to inference.

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