Skip to main content
Glama

droid_cancel

Stops a specified run and its session queue, terminating owned processes; cancelling a queued run ID removes only that item from the queue.

Instructions

停止指定运行及其会话队列,终止所属进程。仅取消 queued run_id 时只移除该项。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "droid_cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNodecision=决定所需的信息;summary=进度和近期事件;full=完整状态。
run_idNo运行 ID。
session_idNo会话 ID。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden. It does disclose the important destructive semantics: processes are terminated and a queued run is removed, and it hints that cancelling by run_id has a narrower blast radius than cancelling a session queue. It omits whether the cancellation is reversible, what happens to an active run's already-emitted output, permission requirements, and what is returned.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences with no filler, and the primary effect is front-loaded ahead of the edge-case behavior. Slightly more structure (e.g. separating scope semantics from process termination) would help, but nothing is wasted.

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 a destructive, no-annotation tool with three optional parameters, the description covers the core behavior and the queue-vs-run distinction. It leaves a notable gap around the all-optional parameter set: an agent cannot tell from the definition whether an empty call is valid or what scope it would cancel, and no return behavior is described.

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 description coverage is 100%, so the schema already explains detail, run_id, and session_id. The description adds meaning about the run_id case (queued-only cancellation) but does not clarify the interaction between run_id and session_id or what happens when both are omitted, which matters since no parameters are required. Baseline 3 is appropriate.

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 specific verb (停止/取消) and resource (指定运行及其会话队列), plus a secondary effect (终止所属进程). It is clearly not a status or wait operation, so an agent can distinguish it from droid_status or droid_wait. It stops short of naming sibling alternatives explicitly, which keeps it from 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?

The second sentence implies a usage distinction: cancelling only a queued run_id removes just that item rather than the whole session queue. That is useful context for choosing scope, but there is no explicit when-to-use/when-not-to-use guidance and no mention of alternatives such as droid_status or droid_supervise for inspection before cancelling.

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