Skip to main content
Glama

dsl_to_workflow

Convert compact DSL text into executable ComfyUI API-format JSON for running workflows.

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
Behavior2/5

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

No annotations are provided, so the description must fully disclose behavior. It only states conversion and experimental status, lacking details about error handling, input validation, or what happens with invalid DSL. This is insufficient for a tool with no annotation support.

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 plus an experimental note. The first sentence states the primary action, the second provides usage context. No wasted words, and information is 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 single-parameter conversion tool with no output schema, the description covers purpose, use case, and next steps (enqueue_workflow). It could mention return format or error scenarios, but it is largely complete given the simplicity. The experimental note adds necessary caution.

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 adds minimal context ('compact', reference to workflow_to_dsl, and experimental note) but does not significantly enhance understanding beyond the schema. Baseline 3 is appropriate.

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 it converts DSL to executable JSON, specifies the companion tool (workflow_to_dsl), and distinguishes from sibling tools like enqueue_workflow and validate_workflow. The verb 'convert' and resource 'compact workflow DSL' are specific and unambiguous.

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 provides context for when to use the tool ('authoring/editing workflows in the legible DSL, then converting to run with enqueue_workflow') and mentions the reverse operation. However, it does not explicitly state when not to use it or list alternatives beyond the implied use case.

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