Skip to main content
Glama

get_node_type

Retrieve detailed information about specific n8n workflow nodes to understand their functionality and integration capabilities within automation workflows.

Instructions

Get details about a specific n8n node type

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesThe node type name (e.g., n8n-nodes-base.httpRequest)

Implementation Reference

  • The main handler function for the 'get_node_type' MCP tool. It calls the N8nClient to fetch the node type by name and returns it as JSON or an error if not found.
    private async handleGetNodeType(args: { type: string }) {
      const nodeType = await this.n8nClient.getNodeTypeByName(args.type);
      if (!nodeType) {
        return {
          content: [
            {
              type: 'text',
              text: JSON.stringify(jsonError(`Node type '${args.type}' not found. Use list_node_types to see available types.`, 'NOT_FOUND'), null, 2),
            },
          ],
        };
      }
    
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(jsonSuccess(nodeType), null, 2),
          },
        ],
      };
    }
  • The input schema and metadata for the 'get_node_type' tool, defining the expected 'type' parameter.
    {
      name: 'get_node_type',
      description: 'Get details about a specific n8n node type',
      inputSchema: {
        type: 'object',
        properties: {
          type: {
            type: 'string',
            description: 'The node type name (e.g., n8n-nodes-base.httpRequest)',
          },
        },
        required: ['type'],
      },
    },
  • src/index.ts:253-254 (registration)
    The switch case registration that routes CallTool requests for 'get_node_type' to the handler method.
    case 'get_node_type':
      return await this.handleGetNodeType(request.params.arguments as { type: string });
  • Helper method in N8nClient that delegates to node-registry's getNodeType.
    async getNodeTypeByName(typeName: string): Promise<N8nNodeType | null> {
      // Try to get from n8n API first (if available in future)
      // For now, use curated catalog
      const nodeType = getNodeType(typeName);
      return nodeType || null;
    }
  • Core lookup function that retrieves node type definition from the static NODE_CATALOG.
    export function getNodeType(typeName: string): N8nNodeType | undefined {
      return NODE_CATALOG[typeName];
    }

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