get_node_type
Retrieve detailed information about specific n8n node types to understand their functionality and usage within workflow automation.
Instructions
Get details about a specific n8n node type
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | The node type name (e.g., n8n-nodes-base.httpRequest) |
Implementation Reference
- src/index.ts:657-678 (handler)MCP tool handler for get_node_type. Fetches node type details from N8nClient and returns JSON success or error response.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), }, ], }; }
- src/index.ts:111-123 (registration)Tool registration in list_tools handler, defining name, description, and input schema.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:113-122 (schema)Input schema for get_node_type tool defining required 'type' string parameter.inputSchema: { type: 'object', properties: { type: { type: 'string', description: 'The node type name (e.g., n8n-nodes-base.httpRequest)', }, }, required: ['type'], },
- src/n8n-client.ts:286-291 (helper)N8nClient method that retrieves node type by name from static registry.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; }
- src/node-registry.ts:393-395 (helper)Core lookup function returning node type definition from curated NODE_CATALOG.export function getNodeType(typeName: string): N8nNodeType | undefined { return NODE_CATALOG[typeName]; }