Create n8n Tag
n8n_create_tagCreate 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "n8n_create_tag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Tag name (max 24 characters) |
Implementation Reference
- src/tools/tags.ts:116-124 (handler)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 }; } ); - src/tools/tags.ts:97-124 (registration)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 }; } );