Skip to main content
Glama

unfour.flow.cancel_run

unfour.flow.cancel_run

Cancels a running Flow by run ID to stop further execution; remote effects already applied are not rolled back.

Instructions

Request cancellation of a running Flow; remote effects are not rolled back.

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": "unfour.flow.cancel_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
runIdYes
workspaceIdNo

Output Schema

NameRequiredDescriptionDefault
runYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.15.0
    • changedInput schema / $defs / action / properties / capability / enum
      Previous value: -[
      -  "api",
      -  "ssh",
      -  "database"
      -]New value: +[
      +  "api",
      +  "ssh",
      +  "database",
      +  "redis"
      +]
    • addedInput schema / $defs / summary / properties / outcomeUncertain
      Added value: +{
      +  "type": "boolean"
      +}
    • changedOutput schema / $defs / action / properties / capability / enum
      Previous value: -[
      -  "api",
      -  "ssh",
      -  "database"
      -]New value: +[
      +  "api",
      +  "ssh",
      +  "database",
      +  "redis"
      +]
    • addedOutput schema / $defs / summary / properties / outcomeUncertain
      Added value: +{
      +  "type": "boolean"
      +}
  2. Addedv0.10.0

TDQS

A3.5/5.0
Behavior4/5

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

The annotations only say it is a non-destructive, non-idempotent, open-world write; the description adds a genuinely useful fact they do not carry, namely that remote effects already performed are not rolled back. It still does not say that cancellation is cooperative/asynchronous (implied only by the word 'Request') or how to confirm the final status, and it does not reconcile repeated calls with idempotentHint=false.

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 semicolon-joined sentence with zero filler; the core action is front-loaded and the important caveat follows immediately.

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?

An output schema exists, so return values need not be described, and the annotations cover the safety profile. For a state-changing cancellation operation, however, the definition omits key operational context: asynchronous/cooperative semantics, the terminal states a run may land in, and how to poll for them.

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?

Schema description coverage is 0% for the two parameters (runId required, workspaceId optional), and the description says nothing about them. An agent gets no hint that runId identifies the run and that workspaceId is only needed when outside a default workspace context.

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 ('Request cancellation') and a specific resource ('a running Flow'), which is enough to distinguish it from unfour.flow.run, unfour.flow.get_run and the SSH-side 'unfour.ssh.cancel_task_run'. It stops short of naming those siblings as alternatives, so the agent must infer the difference itself.

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 'of a running Flow' implicitly scopes use to in-flight runs, but there is no explicit when-to-use/when-not guidance, no mention of what happens if the run has already finished, and no pointer to unfour.flow.get_run for verifying the outcome.

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