n8n_get_tag
Retrieve a specific tag by its ID from the n8n workflow automation platform to organize and categorize workflow elements.
Instructions
Get a specific tag by ID
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": {
"id": "<id>"
},
"name": "n8n_get_tag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Tag ID |
Implementation Reference
- src/n8n-client.ts:193-196 (handler)The actual implementation of the getTag operation using the HTTP client.
async getTag(id: string): Promise<any> { const response = await this.client.get(`/tags/${id}`); return response.data; } - src/index.ts:268-274 (handler)The tool handler in the main server logic that calls n8nClient.getTag.
case 'n8n_get_tag': { if (!args?.id) throw new Error('id is required'); const result = await n8nClient.getTag(args.id as string); return { content: [{ type: 'text', text: formatResponse(result) }], }; } - src/index.ts:727-737 (registration)The registration of the n8n_get_tag tool with its input schema.
{ name: 'n8n_get_tag', description: 'Get a specific tag by ID', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Tag ID' }, }, required: ['id'], }, },