Skip to main content
Glama

validate_workflow

Read-onlyIdempotent

Checks a ComfyUI workflow before execution for missing node types, invalid connections, required inputs, and type mismatches, returning errors and warnings.

Instructions

Validate a workflow before running it. Checks that all node types exist, connections are valid, required inputs are provided, and types match. Returns errors and warnings.

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": {
      "workflow": "<workflow>"
    },
    "name": "validate_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
workflowYesThe ComfyUI workflow JSON (API format) to validate

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and open-world, so safety is covered. The description adds real value beyond that by disclosing the validation categories and that output consists of errors and warnings, though it doesn't say whether validation is exhaustive, blocking, or how severe issues are surfaced.

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?

Two tight sentences: the first states purpose and timing, the second enumerates the checks and the return nature. Nothing is redundant or buried.

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

Completeness4/5

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

For a read-only, single-parameter validator with no output schema, the description covers what is checked and that errors plus warnings come back, which is what an agent needs to call it. Minor gaps remain on result structure and whether a clean workflow yields an empty result versus a success flag.

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?

Schema coverage is 100% and the single parameter is documented as ComfyUI workflow JSON in API format. The description adds no format, versioning, or shape details beyond the schema, so the baseline 3 applies.

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?

States a specific verb and resource ('Validate a workflow') and enumerates the exact checks performed: node type existence, connection validity, required inputs, and type matching. The phrase 'before running it' implicitly separates it from run_workflow, so an agent can place it in the pipeline without inspecting siblings.

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?

'Validate a workflow before running it' gives a clear usage context tied to the run step. It stops short of naming run_workflow explicitly or saying when validation can be skipped (e.g., already-validated workflows), so it is clear but not complete routing guidance.

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