Skip to main content
Glama

cancel_run

Cancels automatic execution of the current run_workflow, aborting in-flight requests and returning running steps to todo so they re-execute on resume.

Instructions

取消/打断当前 run_workflow 的自动执行:在途请求中止,运行中的步骤回到待办状态(续跑时会重新执行)。

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": {
      "id": "<id>"
    },
    "name": "cancel_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3/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 disclosure burden. It does add real behavioral content — in-flight requests are aborted and running steps revert to pending and will re-execute on resume — but it says nothing about the resulting run status, whether the cancellation is reversible, permission requirements, or what the call returns.

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?

A single compact sentence that front-loads the action and then elaborates the consequences after a colon. No filler, though the state-reversion clause is dense enough that it would read better as a separate sentence.

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?

The side effects on in-flight requests and step state are covered, but for a mutation tool with no annotations and no output schema the definition should also say what state the run ends in and whether/how it can be resumed. The unidentified 'id' parameter leaves a material gap.

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?

There is one required parameter, 'id', with 0% schema description coverage, and the description never mentions it. It is unclear whether the id is the run id, the workflow id, or a step id — a meaningful ambiguity for a tool whose whole purpose is targeting the current run.

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 names a specific verb (cancel/interrupt) and a specific object (the currently executing run_workflow run), so an agent can tell it is a run-level abort rather than a step-level action. It does not explicitly contrast with near-siblings like undo_step or skip_step, which also rewind step state, so the boundary is left to inference.

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?

Use is implied by '取消/打断当前 run_workflow 的自动执行' — call it when you want to stop an active automated run. There is no explicit when-not guidance, no prerequisites, and no named alternative for cases where the agent only wants to rewind a single step.

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