Skip to main content
Glama

abort_task

Cancel a running or pending task, safely terminate its worker process tree, and remove its isolated Git worktree without touching the main branch.

Instructions

Cancel a running or pending task, terminate its worker process tree safely, and remove its isolated Git worktree without touching the main branch.

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": {
      "taskId": "<taskId>"
    },
    "name": "abort_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNoOptional reason recorded in audit history.
taskIdYesTask ID to abort.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it does most of that work: it discloses what is destroyed (the worker process tree, the isolated Git worktree) and a critical safety boundary (the main branch is not touched). It does not say whether the cancellation is reversible, what happens to the task's recorded state or audit trail, or what permissions are needed, which keeps it at a 4 rather than 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?

A single front-loaded sentence with the action first and the safety-relevant details after; every clause ('safely', 'without touching the main branch') earns its place. No filler, no restatement of the tool name.

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 mutation tool with no output schema, the description covers the action and its destructive effects thoroughly. The remaining gaps — irreversibility and what the call returns or how task status ends up — are modest but real for a destructive operation with no annotations to lean on.

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% and both parameters carry their own descriptions ('Task ID to abort', 'Optional reason recorded in audit history'), so the baseline of 3 applies. The description adds nothing about taskId format or that reason is optional and audit-only; it does not compensate beyond the schema but does not need to.

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 gives a concrete verb-and-resource pair ('Cancel a running or pending task') plus the side effects that define the operation: killing the worker process tree and removing the isolated Git worktree. That is enough for an agent to tell it apart from siblings such as dispatch_task or get_task_status. It stops short of naming an alternative or explicitly contrasting with any other tool, so it is not quite 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 Guidelines3/5

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

'A running or pending task' implicitly scopes when the tool applies and rules out already-finished tasks. Beyond that, there is no guidance on when not to use it, no prerequisites (permissions, ownership), and no pointer to alternatives like request_rework for a task that is still in progress. Usage is implied rather than stated.

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