Skip to main content
Glama

dsl_to_workflow

Convert a compact workflow DSL into executable ComfyUI API-format JSON. Enables authoring workflows in legible DSL and converting them to run via enqueue_workflow.

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. (Experimental.)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dslYesWorkflow DSL text
Behavior4/5

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

No annotations provided, so description carries full burden. Discloses the conversion direction and marks the tool as 'Experimental', indicating potential instability. Minor omission: no mention of validation or error handling.

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 sentences with zero waste. Includes a parenthetical reference to the sibling tool and a note about experimental status. Efficient and front-loaded.

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 simple conversion tool with one parameter and no output schema, the description is adequate. It explains purpose, usage, and links to related tools. Could benefit from a brief note on output structure, but overall complete.

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% with one parameter 'dsl' described as 'Workflow DSL text'. The description repeats this ('compact workflow DSL') but does not add additional format guidance or examples beyond the schema.

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?

Clearly states the verb 'convert' and the resource 'workflow DSL to executable ComfyUI API-format JSON'. It also references the sibling tool 'workflow_to_dsl' for the reverse direction, distinguishing it.

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

Usage Guidelines5/5

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

Explicitly says when to use: authoring/editing workflows in DSL then converting to run with enqueue_workflow. Also implies when not to use by referencing the inverse tool workflow_to_dsl.

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