Skip to main content
Glama

dsl_to_workflow

Convert compact workflow DSL into executable ComfyUI API JSON. Validate with warnings for unknown class types or mismatches before running.

Instructions

Convert the compact workflow DSL (see workflow_to_dsl) back into executable ComfyUI API-format JSON. Useful for authoring/editing workflows in the legible DSL, then converting to run with enqueue_workflow. When ComfyUI is reachable, the result also carries advisory warnings (unknown class_type, output index out of range, type mismatches) — the conversion still succeeds regardless. (Experimental.)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dslYesWorkflow DSL text
Behavior4/5

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

With no annotations, the description adds important behavioral context: the result includes advisory warnings about potential issues (unknown class_type, etc.) but conversion always succeeds regardless. It also marks the tool as experimental. These traits go beyond the simple schema.

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 three efficient sentences, each adding value: primary action, use case, and warning/experimental note. No redundant information, front-loaded with the core purpose.

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?

For a simple conversion tool with one parameter and no output schema, the description covers purpose, use case, behavioral details (warnings, experimental), and references related tools, making it fully self-contained and actionable.

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 single parameter 'dsl' is described in the schema as 'Workflow DSL text'. The description does not add further meaning or format details, so it meets the baseline for high schema coverage but does not enrich it.

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 that the tool converts DSL back to executable JSON, referencing the sibling tool workflow_to_dsl which produces the DSL. The verb 'convert' and resource 'workflow DSL to JSON' are specific, and it distinguishes from other tools by mentioning the conversion direction and purpose.

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 description gives a clear use case: authoring/editing workflows in DSL then converting to run with enqueue_workflow. It implies when to use (during editing) and the next step, but does not explicitly state when not to use or provide alternatives beyond mentioning the sibling and enqueue_workflow.

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

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