Skip to main content
Glama

n8n_delete_workflow

Delete an n8n workflow by ID, saving a JSON backup before removal. Provides a safe, reversible approach to workflow cleanup.

Instructions

Delete a workflow from an n8n server. By default, a JSON backup is saved before deletion.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
server_nameNoServer name. Uses default if omitted.
workflow_idYesn8n workflow ID to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.6

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the burden of disclosing destructive behavior. It clearly says 'Delete' and adds the important context that a JSON backup is saved by default. However, it does not mention permanence, required permissions, or what happens after deletion.

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 with no filler. The primary action is stated first, and the backup behavior is added succinctly.

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?

For a simple two-parameter delete operation, the description gives essential information: what is deleted and the default safety backup. It does not describe the response or possible errors, but those are not critical for invoking 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?

The input schema already describes both parameters fully (100% coverage). The description adds no extra meaning about workflow_id or server_name, so it meets the baseline but provides no additional value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('Delete') and resource ('workflow from an n8n server'), which is unambiguous. The added backup detail also helps distinguish this destructive operation from related siblings like n8n_restore_workflow and n8n_list_backups.

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 guidance about when to use this tool versus alternatives such as deactivating a workflow or exporting it. The backup note implies a safety benefit, but it does not explicitly state when deletion is appropriate or when another sibling should be used instead.

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