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

deactivate_workflow

Idempotent

Deactivates an n8n workflow using its workflow ID, stopping scheduled or triggered executions when a workflow should no longer run. Provide the workflow ID to disable it through the n8n API.

Instructions

Deactivate an n8n workflow.

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>"
    },
    "name": "deactivate_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
workflowIdYesOpaque n8n resource ID

Output Schema

NameRequiredDescriptionDefault
idYes
messageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=true, so the safety profile is covered structurally. The description adds nothing beyond that: it does not say whether deactivation is reversible, whether running executions are terminated, or what happens when the workflow is already inactive. It does not contradict the annotations, so no contradiction flag.

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 short sentence with the verb and resource front-loaded and no filler. It is efficient, though its brevity is part of why other dimensions have gaps.

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?

The tool is simple (one required parameter), annotations cover its mutation/idempotency profile, and an output schema exists to describe returns. Still, for a state-changing operation the description leaves the agent without any statement of the resulting effect on the workflow or its executions, which is the minimum extra context a mutation tool should supply.

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 description coverage is 100% with a single parameter ('workflowId', documented as an opaque n8n resource ID), so the schema already carries parameter meaning. The description contributes no additional semantics beyond what the schema states, which is the baseline case for high coverage.

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 names a specific verb ('Deactivate') and resource ('n8n workflow'), which clearly distinguishes it from the 'activate_workflow' sibling. However, it adds no scope detail (e.g., what deactivating means for in-flight executions), so it stops short of full differentiation.

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 when-to-use guidance, no prerequisites (e.g., the workflow must exist or be currently active), and no mention of alternatives such as 'delete_workflow' for permanent removal or 'activate_workflow' for the inverse. The agent must infer all selection logic from the tool name.

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