Skip to main content
Glama

n8n_manage_agents

Destructive

Manage n8n agents (persisted assistants) through the instance-level MCP server. Create, mutate, validate, call, publish, or delete agents, and handle approvals that require human decisions.

Instructions

Manage n8n Agents (persisted assistants with a model, instructions, tools, skills, tasks, memory and channels) through n8n's instance-level MCP server. Requires N8N_MCP_ACCESS_TOKEN (MCP API key from n8n Settings → Instance-level MCP) and n8n >= 2.34 with the agents module. Actions: reference, search, get, create, mutate, validate, call, publish, unpublish, revert, versions, delete, discover_assets, verify_mcp_server, update_integration. Start with action=reference (config shape and mutate operations), then discover_assets → create → mutate (one resource at a time, always with the latest configHash) → validate. projectId for create, discover_assets and verify_mcp_server defaults to your personal project. publish only when the user explicitly asks. call runs the agent with real credentials and tools and may return approvals[] that need a human decision — never approve on the user's behalf. This is not the AI Agent workflow node; use get_node for that.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argsNoArguments for the action, forwarded to n8n unchanged except that an omitted, null, empty or "personal" projectId on create, discover_assets and verify_mcp_server is replaced with your personal project ID. See tools_documentation("n8n_manage_agents", "full") for the per-action fields.
actionYesOperation to perform
timeoutMsNoRequest timeout in ms. Default 30000; 180000 for action=call. The agent run continues in n8n even if this expires.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.89.0
    • changedInput schema / properties / args / description
      Previous value: -"Arguments for the action, forwarded to n8n verbatim. See tools_documentation(\"n8n_manage_agents\", \"full\") for the per-action fields."New value: +"Arguments for the action, forwarded to n8n unchanged except that an omitted, null, empty or \"personal\" projectId on create, discover_assets and verify_mcp_server is replaced with your personal project ID. See tools_documentation(\"n8n_manage_agents\", \"full\") for the per-action fields."
  2. Addedv2.77.0

TDQS

A4.5/5.0
Behavior4/5

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

The description adds meaningful behavioral context beyond annotations: it discloses the need for N8N_MCP_ACCESS_TOKEN and n8n version requirements, explains that call runs 'with real credentials and tools,' warns about approvals, and clarifies that projectId defaults to the personal project. Annotations already signal destructive and non-read-only behavior, and the description enriches that with operational caveats, though individual destructive actions like delete or revert are not deeply detailed.

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?

The description is dense but each sentence contributes: scope, prerequisites, action list, recommended sequence, projectId behavior, publication safety caveat, call side-effect warning, and sibling differentiation. It could be improved with clearer separation of the long action list, but it is not padded or redundant.

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 tool with 15 actions and no output schema, the description provides a strong operating context: how to start, what to do at each stage, key behaviors, and where to find per-action details via tools_documentation. It does not fully document every action's side effects, but it points to the full reference and covers the most safety-critical aspects.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is already strong. The description adds value by explaining that args are 'forwarded to n8n unchanged' except for projectId substitution, and by giving guidance like 'always with the latest configHash.' The timeoutMs parameter is also given contextual meaning with the special default for action=call. This goes beyond the raw schema.

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 and resource: 'Manage n8n Agents (persisted assistants...)' and enumerates a concrete set of actions. It explicitly distinguishes itself from siblings by noting 'This is not the AI Agent workflow node; use get_node for that.' This gives an agent a clear, unambiguous picture of what the tool operates on and what it is not.

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

Usage Guidelines5/5

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

The description provides an explicit recommended workflow: 'Start with action=reference... then discover_assets → create → mutate... → validate.' It also gives guardrails: 'publish only when the user explicitly asks' and warns that call 'may return approvals[]' and to 'never approve on the user's behalf.' These are concrete when-to-use and when-not-to-use instructions, far beyond a generic hint.

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