Skip to main content
Glama

validate_workflow_connections

Verify workflow structure in n8n by validating node integrity, checking for cycles, ensuring proper triggers, and testing AI tool links. Ensures accurate workflow automation setup.

Instructions

Check workflow connections only: valid nodes, no cycles, proper triggers, AI tool links. Fast structure validation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflowYesThe workflow JSON with nodes array and connections object.

Implementation Reference

  • Zod schema defining the structure for workflow connections validation. Supports main, error, and various AI-specific connection types. Used by the validateWorkflowConnections function.
    export const workflowConnectionSchema = z.record( z.object({ main: connectionArraySchema.optional(), error: connectionArraySchema.optional(), ai_tool: connectionArraySchema.optional(), ai_languageModel: connectionArraySchema.optional(), ai_memory: connectionArraySchema.optional(), ai_embedding: connectionArraySchema.optional(), ai_vectorStore: connectionArraySchema.optional(), }) );
  • The core handler function for validating workflow connections using Zod schema parsing. This is the exact implementation of the tool logic.
    export function validateWorkflowConnections(connections: unknown): WorkflowConnection { return workflowConnectionSchema.parse(connections); }
  • Usage of validateWorkflowConnections within the broader workflow structure validation in validateWorkflowStructure function.
    if (workflow.connections) { try { validateWorkflowConnections(workflow.connections); } catch (error) { errors.push(`Invalid connections: ${error instanceof Error ? error.message : 'Unknown error'}`); } }
  • The tool 'validate_workflow_connections' is listed in the migration script for tool documentation generation under validation category, indicating planned registration.
    validation: [ 'validate_node_minimal', 'validate_node_operation', 'validate_workflow', 'validate_workflow_connections', 'validate_workflow_expressions' ],
  • Type declaration for the private validateWorkflowConnections method in the N8NDocumentationMCPServer class, likely the MCP tool handler.
    private validateWorkflowConnections;

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/czlonkowski/n8n-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server