Skip to main content
Glama
DrBalls

n8n MCP Server

by DrBalls

n8n_get_tag

Retrieve tag details including ID and name from n8n workflow automation platform by providing the tag identifier.

Instructions

Get details of a specific tag.

Args:

  • id (string): Tag ID

Returns: Tag details with id and name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe unique identifier of the resource

Implementation Reference

  • The 'n8n_get_tag' tool registration and handler implementation in 'src/tools/tags.ts'. It uses the 'IdParamSchema' to validate input and calls the 'get' service to retrieve tag details from n8n.
      server.registerTool(
        'n8n_get_tag',
        {
          title: 'Get n8n Tag',
          description: `Get details of a specific tag.
    
    Args:
      - id (string): Tag ID
    
    Returns:
      Tag details with id and name.`,
          inputSchema: IdParamSchema,
          annotations: {
            readOnlyHint: true,
            destructiveHint: false,
            idempotentHint: true,
            openWorldHint: false
          }
        },
        async (params: z.infer<typeof IdParamSchema>) => {
          const tag = await get<N8nTag>(`/tags/${params.id}`);
          
          return {
            content: [{ type: 'text', text: 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