Skip to main content
Glama

n8n_create_variable

Create environment variables in n8n to store configuration values securely across workflows. Specify key, value, type, and optional project ID.

Instructions

Create a new environment variable in n8n.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesVariable key
typeNoVariable type
valueYesVariable value
projectIdNoProject ID
Install Server

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It only says the tool creates a variable; it does not disclose side effects, project scope implications, uniqueness constraints, or whether existing variables are overwritten.

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 a single, clear sentence with no wasted words. The core purpose is front-loaded and immediately actionable.

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

Completeness2/5

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

With no annotations and no output schema, the description is too thin to fully support a correct invocation. It leaves open questions about the type/value relationship, whether projectId is needed, and what the API returns, especially given the additional schema parameters.

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 description adds no parameter-level meaning beyond the input schema, but the schema itself includes brief descriptions and an enum for type, giving high coverage. The description does not compensate for any ambiguity, so the baseline of 3 is appropriate.

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 ('Create') and a clear resource ('environment variable'), which distinguishes this tool from list, update, and delete variable siblings. Even without referencing the siblings, the main action and focus are unambiguous.

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 on when to use this tool versus alternatives like n8n_update_variable or n8n_delete_variable. The agent must infer usage from the tool name alone, and no preconditions are mentioned.

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

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/leonardosepulvedat/mcp-n8n'

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