Skip to main content
Glama

get_tag

Retrieve specific workflow tags by ID to organize and categorize n8n automation workflows for better management and filtering.

Instructions

Get a specific tag by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes

Implementation Reference

  • MCP tool handler for 'get_tag': receives arguments, calls n8nClient.getTag(id), formats success response as JSON.
    private async handleGetTag(args: { id: string | number }) { const tag = await this.n8nClient.getTag(args.id); return { content: [{ type: 'text', text: JSON.stringify(jsonSuccess(tag), null, 2) }] };
  • Core N8nClient method implementing getTag: makes HTTP GET request to /api/v1/tags/{id} and returns the tag object.
    async getTag(id: string | number): Promise<N8nTag> { const response = await this.api.get<N8nApiResponse<N8nTag>>(`/tags/${id}`); return response.data.data; }
  • src/index.ts:203-203 (registration)
    Tool registration in ListTools response: defines name, description, and input schema for 'get_tag'.
    { name: 'get_tag', description: 'Get a specific tag by ID', inputSchema: { type: 'object', properties: { id: { oneOf: [{ type: 'string' }, { type: 'number' }] } }, required: ['id'] } },
  • src/index.ts:302-303 (registration)
    Dispatcher switch case that routes 'get_tag' tool calls to the handleGetTag method.
    case 'get_tag': return await this.handleGetTag(request.params.arguments as { id: string | number });

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