Skip to main content
Glama

cancel

Stop a running cloud task by run ID to prevent further Actions time usage when the run is no longer needed.

Instructions

取消一次正在运行的云端任务,停止继续消耗 Actions 时间。

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": {
      "runId": "<runId>"
    },
    "name": "cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault
runIdYes要取消的 run id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/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. It usefully discloses the side effect of halting Actions minute consumption, but says nothing about whether cancellation is irreversible, what state the run ends in, what permissions are required, or what happens when canceling an already-completed or nonexistent run.

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 sentence with zero filler, front-loading the action and immediately following it with the reason it matters. Nothing could be removed without losing information.

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 one-parameter, no-output-schema tool this covers the essentials, but with no annotations the description should at minimum state whether the cancellation is final and what the agent can expect afterward. It leaves the agent unable to predict the result of the call.

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% for the single runId parameter, so the baseline is 3. The description reinforces that the id must refer to a running task, but adds no format, type, or sourcing detail beyond what the schema already provides.

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 states a specific verb (取消/cancel) and a specific resource (正在运行的云端任务/a running cloud task), which is enough for an agent to distinguish it from siblings like run, status, or release. It stops short of explicitly contrasting itself with release, which is the most plausible source of confusion.

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 qualifier '正在运行的' (currently running) implicitly tells the agent to use this only on active runs, and the cost rationale hints at why one would. However, there is no explicit when-not guidance, no statement about what happens if the run has already finished, and no named alternative.

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