Skip to main content
Glama

Cancel workflow

workflow_cancel

Cancel a workflow and stop any scan it owns to halt running security activity and prevent further processing.

Instructions

Cancel a workflow and any running scan it owns.

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_id": "<workflow_id>"
    },
    "name": "workflow_cancel"
  }
}

Input Schema

NameRequiredDescriptionDefault
workflow_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the agent knows it is a non-read, non-destructive mutation. The description adds one genuinely useful behavioral fact beyond that: cancellation cascades to running scans the workflow owns. It omits whether the cancel is reversible (a workflow_resume sibling exists but is unmentioned), what happens to queued/paused/completed workflows, and whether it errors or no-ops on an already-finished workflow.

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 front-loaded sentence with the destructive scope stated immediately; nothing is padded or repeated. It is arguably under-specified rather than over-written, but on the conciseness axis it is clean.

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 no explanation, and the tool is structurally simple with one required parameter. What remains missing is decision-relevant context: how to source the workflow_id, whether cancellation is idempotent, and whether workflow_resume is the undo path. Adequate but with clear gaps for a state-changing tool.

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 a single required parameter, workflow_id, and schema description coverage is 0% — the schema offers only a bare string title. The description says nothing about where to obtain a workflow_id (e.g. workflow_list), its format, or whether it accepts a name. With only one parameter this is a small gap, but the description does nothing to compensate for the empty schema.

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+resource ("Cancel a workflow") and adds scope by stating it also cancels "any running scan it owns", which distinguishes it in spirit from the scan_cancel sibling. It stops short of naming the alternative, so an agent must still infer the boundary, but the operation and its cascade are unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not-to-use guidance, no mention of workflow_resume as the recovery path, and no statement about whether this is the right call versus scan_cancel when only a scan needs stopping. The cascade clause implies usage but never states the selection condition.

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