- Symptom
- MCP client reports unknown tool delete_agentPackage export no longer includes archived items when includeArchivedWorkflows is passedCall to an archived sub-agent fails with an error asking you to restore it
- Cause
- With agent archiving in n8n 3.3, the MCP server tool archive_agent replaces delete_agent. The package export flag includeArchivedWorkflows was renamed includeArchived, and when set, project exports also include archived agents. A sub-agent that is archived stays referenced by parent agents but calls to it fail.
- Fix
- Update MCP clients and scripts to call archive_agent, then delete from the UI after archiving if you need permanent removal. Rename the export flag to includeArchived. Before archiving an agent, check which parent agents use it as a sub-agent and restore it with Unarchive, then publish again, if calls fail.
- Apply
Replace delete_agent with archive_agent in MCP tool calls, and replace includeArchivedWorkflows with includeArchived in package export requests or CLI options.- Affected
- n8n 3.3 and later (agents are in Preview)
- Sources
Last verified 2026-11-27 · Confirmed by 0 builders