Skip to main content
Glama
DrBalls

n8n MCP Server

by DrBalls

n8n_create_tag

Create a new tag to organize and categorize workflows in n8n for better management and retrieval.

Instructions

Create a new tag for organizing workflows.

Args:

  • name (string): Tag name (max 24 characters)

Returns: The created tag.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesTag name (max 24 characters)

Implementation Reference

  • The handler logic that executes the 'n8n_create_tag' tool.
      async (params: z.infer<typeof CreateTagSchema>) => {
        const tag = await post<N8nTag>('/tags', params);
        
        return {
          content: [{ type: 'text', text: `✅ Tag created!\n\n${formatTag(tag)}` }],
          structuredContent: tag
        };
      }
    );
  • The registration block for the 'n8n_create_tag' tool.
      server.registerTool(
        'n8n_create_tag',
        {
          title: 'Create n8n Tag',
          description: `Create a new tag for organizing workflows.
    
    Args:
      - name (string): Tag name (max 24 characters)
    
    Returns:
      The created tag.`,
          inputSchema: CreateTagSchema,
          annotations: {
            readOnlyHint: false,
            destructiveHint: false,
            idempotentHint: false,
            openWorldHint: false
          }
        },
        async (params: z.infer<typeof CreateTagSchema>) => {
          const tag = await post<N8nTag>('/tags', params);
          
          return {
            content: [{ type: 'text', text: `✅ Tag created!\n\n${formatTag(tag)}` }],
            structuredContent: tag
          };
        }
      );

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/DrBalls/n8n-mcp-server-v2'

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