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

delete_variable

Destructive

Permanently deletes an n8n variable after explicit confirmation, so you can intentionally remove outdated or unneeded configuration data.

Instructions

Permanently delete an n8n variable. 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": {
      "variableId": "<variableId>",
      "confirm": "<confirm>"
    },
    "name": "delete_variable"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmYes
variableIdYesOpaque n8n resource ID

Output Schema

NameRequiredDescriptionDefault
idNo
keyNo
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, readOnlyHint=false and idempotentHint=false, so the safety profile is known. The description adds the useful nuance of permanence (irreversibility) beyond "destructive", but the confirmation requirement merely restates the schema's confirm const:true, and it omits what happens to workflow references or what errors occur on failure.

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, both front-loaded: the destructive action first, the safety prerequisite second. Nothing is padded or repeated.

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 (two required params), annotations carry the safety profile, and an output schema covers return values, so little is strictly missing. However, for an irreversible delete it says nothing about side effects such as broken references in workflows or error behavior when the variable is in use.

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%: variableId is documented as an opts n8n resource ID while confirm has no description. The description partly compensates by explaining that confirm represents explicit confirmation, which clarifies the intent of that boolean, but adds nothing about ID sourcing or format.

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 variable" gives a specific verb and resource, and naming the resource (variable) implicitly separates it from siblings like delete_workflow, delete_tag, or delete_execution. It stops short of a 5 because it never explicitly contrasts with those siblings or with update_variable as a less-destructive alternative.

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?

"Requires explicit confirmation" signals a prerequisite but not a when-to-use policy: there is no statement of when deletion is appropriate versus resetting the value via update_variable, and no stated failure conditions. Usage is implied by the destructive verb rather than spelled out.

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