Skip to main content
Glama

delete_tag

Remove tags from n8n workflows by specifying their ID to organize and maintain workflow structure.

Instructions

Delete a tag by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes

Implementation Reference

  • MCP tool handler function that executes the delete_tag logic by delegating to N8nClient.deleteTag and returning a formatted success response.
    private async handleDeleteTag(args: { id: string | number }) { await this.n8nClient.deleteTag(args.id); return { content: [{ type: 'text', text: JSON.stringify(jsonSuccess({ id: args.id }), null, 2) }] }; }
  • Input schema and metadata definition for the delete_tag tool, registered in the listTools response.
    { name: 'delete_tag', description: 'Delete a tag by ID', inputSchema: { type: 'object', properties: { id: { oneOf: [{ type: 'string' }, { type: 'number' }] } }, required: ['id'] } },
  • src/index.ts:308-309 (registration)
    Registration of the delete_tag tool handler in the CallToolRequest switch statement dispatcher.
    case 'delete_tag': return await this.handleDeleteTag(request.params.arguments as { id: string | number });
  • Supporting utility in N8nClient class that performs the actual HTTP DELETE request to the n8n /tags/{id} endpoint.
    async deleteTag(id: string | number): Promise<void> { await this.api.delete(`/tags/${id}`); }

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

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