Skip to main content
Glama

cancel

DestructiveIdempotent

Stop an in-flight Cursor turn for a sessionId, returning status such as killed, not-running, or not-found. Set force to kill the process after a grace period if it remains running.

Instructions

Cancel an in-flight Cursor turn by sessionId. Status is cancelled, killed, not-running (the turn ended and the session can still be resumed), or not-found.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoAfter a short grace period, kill the Cursor process if the turn is still running.
sessionIdYesSession id returned by delegate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so safety is covered. The description adds value beyond them by enumerating result states and clarifying that not-running means the turn ended while the session can still be resumed — non-obvious outcome semantics, especially valuable since no output schema exists.

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 tight sentences: the action front-loaded, then the terse outcome enumeration. No filler.

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 full annotation coverage and no output schema, the description covers action, target, and all four possible result states. The only gap is any note on preconditions (e.g., what happens if the session is not found) beyond the status word itself.

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, including the force grace-period behavior, so the schema does the heavy lifting. The description only echoes sessionId ('by sessionId') and adds nothing about the force parameter.

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?

States a specific verb (cancel), resource (an in-flight Cursor turn), and the keying parameter (sessionId). It is clearly distinguishable from siblings delegate and doctor, though it never explicitly contrasts itself with 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 phrase 'in-flight Cursor turn' implies the precondition for use, and the status list hints at outcomes, but there is no explicit when-to-use/when-not-to-use guidance or reference to alternatives.

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

Deploy Server

Other Tools