Skip to main content
Glama

claude_execute_cancel

Cancel an active Claude or Agy execution, planning, or verification job, terminate its child process tree, and release the workspace RWLock slot.

Instructions

Cancel an active Claude or Agy execution/planning/verification job, terminate its entire child process tree, and release the workspace RWLock slot.

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": "claude_execute_cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesActive job ID to terminate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations to lean on, the description still discloses meaningful destructive semantics: it kills the entire child process tree and frees the workspace RWLock slot. It omits error behavior for unknown or already-completed job IDs, idempotency, and any confirmation requirement, which keeps it short of full transparency.

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?

One dense sentence with the action and its two side effects front-loaded, and no filler or redundancy anywhere.

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 single-parameter termination tool this covers the action and its blast radius well. The main gap is return behavior (success confirmation, handling of non-existent jobs), which no output schema supplies either.

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?

There is a single parameter with 100% schema description coverage, so the schema already explains job_id. The description adds only the constraint that the ID must belong to an 'active' job, which is marginal but correct; 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?

Uses a specific verb ('Cancel') with a precisely scoped resource ('active Claude or Agy execution/planning/verification job'). The scope phrase distinguishes it from siblings like claude_execute_status or claude_execute, which operate on jobs without terminating them.

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 word 'active' implies the tool is for jobs currently running, which is useful selection context. However, it never names an alternative (e.g., checking claude_execute_status first) or states what to do for a job that has already finished, leaving usage inference to the agent.

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