Skip to main content
Glama

cancel_workflow

Stops a root workflow run and cascades cancellation to its associated tasks and child runs, returning a cancelling status until settlement is observed.

Instructions

Stop root scheduling and cascade cancellation to associated tasks and children.

A cancellation request returns cancelling until settlement is observed; unresolved dispatches or cancellation transport errors return needs_attention. Child runs must be controlled through their root workflow run. Human Monitor cancellation uses the local CLI verified-human boundary; it does not transfer the original caller's answer, retry, or continuation ownership.

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": {
      "workflow_run_id": "<workflow_run_id>"
    },
    "name": "cancel_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
workflow_run_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.14

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses the asynchronous 'cancelling' state pending settlement, the 'needs_attention' failure mode for unresolved dispatches or transport errors, and the cascade to children. It omits permission/authorization prerequisites and does not state whether cancellation is reversible or what happens to already-completed tasks.

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

Conciseness3/5

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

The opening sentence is crisp and front-loaded with the core action, and the state-machine paragraph is dense but earned. The final paragraph about the local CLI verified-human boundary and ownership of answers/retries is specialized jargon that an agent can likely do little with, and it dilutes focus.

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?

An output schema exists, so return values need not be spelled out, yet the description still explains the meaningful status transitions, which is helpful. For a destructive lifecycle mutation with zero annotations, the remaining gap is authorization requirements and irreversibility, but overall it is sufficient to call the tool correctly.

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?

Only one parameter exists and its schema description coverage is 0%, so the description should clarify it. The sentences about child runs being controlled via their root run imply the identifier is a root workflow run id, which adds some meaning. However, it never explicitly states that workflow_run_id must be the root run rather than a child run id.

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 first sentence names a specific verb (stop scheduling, cascade cancellation) and the exact scope (root plus associated tasks and children). It also implicitly separates itself from cancel_task by stating child runs must be controlled through their root. It does not explicitly distinguish itself from pause_workflow, resume_workflow, or delete_workflow, which share the cancellation-ish space.

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 line 'Child runs must be controlled through their root workflow run' is a genuine routing instruction that steers the agent to this tool rather than a per-child cancel. Beyond that, there is no explicit when-to-use/when-not guidance against sibling lifecycle tools such as pause_workflow or delete_workflow, so the agent must infer the boundary.

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