Skip to main content
Glama

n8n_workflow_versions

Destructive

List, rollback, delete, or prune workflow versions to control history and perform cleanup operations.

Instructions

Manage workflow version history, rollback, and cleanup. Six modes:

  • list: Show version history for a workflow

  • get: Get details of specific version

  • rollback: Restore workflow to previous version (creates backup first)

  • delete: Delete specific version or all versions for a workflow

  • prune: Manually trigger pruning to keep N most recent versions

  • truncate: Delete ALL versions for ALL workflows (requires confirmation)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYesOperation mode
workflowIdNoWorkflow ID (required for list, rollback, delete, prune)
versionIdNoVersion ID (required for get mode and single version delete, optional for rollback)
limitNoMax versions to return in list mode
validateBeforeNoValidate workflow structure before rollback
deleteAllNoDelete all versions for workflow (delete mode only)
maxVersionsNoKeep N most recent versions (prune mode only)
confirmTruncateNoREQUIRED: Must be true to truncate all versions (truncate mode only)
Behavior5/5

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

Annotations indicate destructiveHint=true and readOnlyHint=false. The description goes beyond by detailing which modes are destructive (delete, truncate), that rollback creates a backup first, and that truncate requires explicit confirmation. This fully informs about behavioral traits.

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?

The description is concise yet comprehensive, using a bullet list to clearly present six modes. Every sentence adds value with no redundancy or filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity with multiple modes and optional parameters, the description covers all necessary selection and usage details. The absence of an output schema is acceptable as the tool's return values are straightforward (e.g., list returns versions, delete returns success).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Input schema has 100% coverage with descriptions for all parameters. The description adds semantic value by explaining per-mode parameter requirements and behaviors (e.g., 'creates backup first' for rollback, 'REQUIRED: Must be true to truncate all versions' for confirmTruncate).

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 clearly states the tool manages workflow version history, rollback, and cleanup, and enumerates six specific modes with brief explanations. It distinguishes itself from sibling tools that handle other aspects of workflow management.

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

Usage Guidelines4/5

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

The description provides clear context for each mode and its required parameters, but does not explicitly state when to use this tool versus alternatives. However, the specific functionality makes it distinct, and the mode-based structure gives clear selection guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/czlonkowski/n8n-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server