Skip to main content
Glama
powershell-mcp
by IMRRD

cancel_execution

Requests cancellation of a running local PowerShell execution and its process tree; Windows confirms Job Object termination asynchronously, so failures may remain unknown.

Instructions

Request local cancellation. Windows confirms Job Object tree termination asynchronously; failures remain unknown.

Input Schema

NameRequiredDescriptionDefault
idYes
ownerYesPrivate caller namespace token; keep secret and stable across restarts. This is a bearer secret, not authenticated MCP identity.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.0

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries behavioral weight by clarifying that cancellation is only a request, confirmation is asynchronous via Windows Job Object tree termination, and failures may remain unknown. It does not disclose destructive impact on the process tree, required authorization, idempotency, or what the caller should do after requesting cancellation.

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?

Two short sentences with zero boilerplate: the action is front-loaded, and the critical asynchronous/unknown-outcome caveat follows immediately. Every sentence earns its place.

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 an unannotated cancellation tool with no output schema and only two parameters, the description is minimally adequate because it explains the asynchronous and uncertain nature of cancellation. It still leaves gaps about the relationship to start_execution/execution_status, what exactly is destroyed, and how to observe the final outcome.

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%: owner is documented in-schema, while id is only constrained by a 48-character hex pattern. The description adds no parameter meaning—it never says that id identifies the execution to cancel or that owner is the bearer namespace—so it fails to compensate for the undocumented id.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action ('Request local cancellation') and hints at scope ('local') and mechanism (Job Object tree termination), but it never explicitly names the resource being cancelled (an execution/job) or references the id. An agent can infer the purpose from the tool name, but the description alone only vaguely distinguishes it from siblings such as cancel_remote_batch.

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?

There is no explicit when-to-use or when-not guidance. The word 'local' implicitly contrasts with remote cancellation, but no alternative sibling is named and no prerequisites are given (e.g., must the execution first be started and still running?).

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