Skip to main content
Glama
tcs-n8n-mcp
by ntatschner

delete_workflow

Destructive

Permanently delete an n8n workflow by providing its ID and explicit confirmation when the workflow is no longer needed.

Instructions

Permanently delete an n8n workflow. Requires explicit confirmation.

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": {
      "workflowId": "<workflowId>",
      "confirm": "<confirm>"
    },
    "name": "delete_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmYes
workflowIdYesOpaque n8n resource ID

Output Schema

NameRequiredDescriptionDefault
idYes
messageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the irreversibility signal is largely carried by structured data. The description reinforces permanence and adds the confirmation requirement, which is context beyond the annotations, but it says nothing about side effects on dependent executions, credentials, or error behavior on a bad workflowId.

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?

Two short sentences, front-loaded with the verb, resource, and permanence, then the gating requirement. No filler or redundancy.

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 destructive mutation with an output schema and clear annotations, the definition is adequate: permanence and confirmation are both stated. It omits what breaks or is orphaned by deletion and whether the operation is recoverable, which an agent weighing this call would want.

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 50%: workflowId is documented as an 'Opaque n8n resource ID' in-schema while confirm has no description, though its const:true makes it self-documenting. The description's "Requires explicit confirmation" is the only prose explaining confirm, which is modest added value over a high-coverage baseline of 3.

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?

"Permanently delete an n8n workflow" gives a specific verb plus resource and adds the permanence qualifier, which distinguishes it from soft-state siblings like deactivate_workflow. It does not name a sibling to route against, but the resource noun alone separates it from delete_execution/delete_tag/delete_variable.

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 description states a prerequisite (explicit confirmation) but gives no when-to-use guidance relative to alternatives such as deactivate_workflow or update_workflow. Usage is implied by the destructive nature of the verb rather than explained.

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