Skip to main content
Glama
n8n MCP Server

n8n MCP Server

by fedealvarez

list_variables

List environment variables configured in n8n, with filters for project and state plus pagination, to inspect automation settings.

Instructions

List all environment variables configured in n8n.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_variables"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results per page
stateNoFilter by state (e.g. 'empty')
cursorNoPagination cursor
projectIdNoFilter by project ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. 'List' implies a non-mutating read, but the description says 'all' while the schema exposes limit and cursor pagination, and it says nothing about permissions, ordering, or what happens when the result set is paged — a real ambiguity given zero annotation coverage and no output schema.

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 front-loaded sentence with no filler; the purpose is stated immediately. Only the word 'all' undercuts precision slightly against a paginated API.

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 read-only listing tool with full schema coverage and no output schema, the description is close to sufficient — the agent knows what it returns (environment variables) and how to call it from the schema. It is missing pagination and filtering context that would make it complete, but little else is required.

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%, so limit, state, cursor, and projectId are already documented in the schema and the baseline is 3. The description adds no meaning beyond that — it never mentions filtering by state or project, nor how pagination via cursor/limit interacts with the claim of listing 'all' variables.

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 (List) and resource (environment variables configured in n8n), which cleanly distinguishes it from create_variable, delete_variable, and the other list_* siblings by resource type. It stops short of explicitly steering the agent among alternatives, so a 4 rather than 5.

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?

Usage is only implied: an agent can infer this is the read path for inspecting configured variables. There is no explicit when-to-use/when-not-to-use guidance, no mention of how it relates to create_variable or delete_variable, and no note that state filtering exists as an alternative to scanning everything.

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