Skip to main content
Glama

validate_workflow

Validate a ComfyUI workflow for correctness without executing it: checks that node classes exist, required inputs are connected, connections are type-compatible, and an output node is present.

Instructions

Validate a workflow for correctness without executing it.

Checks: all node class_types exist, required inputs connected, connection type compatibility, output node exists.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workflow_idYesThe workflow to validate.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It explicitly states the tool does not execute the workflow and details four specific checks (node class_types exist, required inputs connected, connection type compatibility, output node exists). This is rich, specific behavioral transparency beyond what annotations would typically provide.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is highly concise: one sentence for the primary purpose and a compact bullet-style list of checks. Every word earns its place, no redundancy or filler. It is perfectly structured, front-loading the main action.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a single-parameter validation tool with an output schema. The description covers the tool's purpose, non-execution behavior, and specific checks, which is complete for an agent to select and invoke it correctly. The output schema handles return value details, and no further context is required.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage for the single parameter (workflow_id: 'The workflow to validate.'). The description adds no additional semantic meaning beyond the schema, so the baseline of 3 applies. No further parameter context is needed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's function with a specific verb and resource: 'Validate a workflow for correctness.' It distinguishes itself from execution tools by adding 'without executing it,' and enumerates the exact validation checks performed (node class_types, input connections, type compatibility, output node). This makes the purpose unambiguous and easily distinguishable from siblings like execute_workflow.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'without executing it' implies the tool is for pre-execution validation, providing clear context for when it should be used. However, it does not explicitly name alternatives (e.g., 'use execute_workflow to run it') or list exclusions, so it falls short of a perfect 5. The context is clear enough for an agent to decide appropriately.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/halbert04/comfyui-mcp'

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