Skip to main content
Glama

lingie_run_workflow

Run a ComfyUI workflow and receive the output file path, or get a run ID to track long-running tasks in the background.

Instructions

在灵姬中执行一个工作流(本地 ComfyUI 引擎)。提交后默认等待完成并返回输出文件的本地路径;若约 20 秒内未完成(MCP 宿主对单次调用通常只有 ~30 秒超时,超时会被掐断丢结果),自动降级为返回 run_id,任务在后台继续,用 lingie_run_result 轮询并在完成后取回本地文件。设 wait=false 立即返回 run_id。取消用 lingie_cancel_run(注意:会中断本地引擎当前正在执行的任务)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
waitNo是否阻塞等待完成,默认 true(约 20 秒未完成自动降级返回,可用 LINGIE_MCP_MAX_BLOCK_MS 调整)
paramsNo工作流参数,键为 lingie_workflow_capabilities 返回的参数名(特殊类型按其 submission_hint 提交,如 "节点ID.字段" 形式)。
workflow_idYes工作流 id,来自 lingie_list_workflows
timeout_secondsNowait=true 时的总等待上限秒数,默认 1200,最大 3600
Install Server

TDQS

A4.9/5.0
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 and meets it. It discloses the default blocking wait, ~20-second auto-degradation to run_id, ~30-second MCP host timeout, background continuation, and the side effect that canceling interrupts the local engine's current task.

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?

Three dense sentences cover submission, waiting, timeout degradation, background continuation, immediate mode, and cancellation. The core action is front-loaded and every sentence earns its place.

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 complex async execution tool with no annotations, this description is complete: it tells the agent what results to expect, when to fall back, how to avoid losing results to timeouts, and how to cancel. The absence of an output schema is compensated by explicitly stating that local output paths or a run_id are returned.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline is 3. The description adds value by explaining wait semantics beyond the schema, mentioning LINGIE_MCP_MAX_BLOCK_MS tuning, and tying params to lingie_workflow_capabilities parameter names with submission_hint formats.

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 states a specific verb and resource: executing a workflow in the local ComfyUI engine. It also distinguishes itself from siblings by contrasting submission behavior with lingie_run_result polling and lingie_cancel_run cancellation.

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?

The description explicitly explains when to use this tool and when to use alternatives: submit with run_workflow, poll with lingie_run_result after background degradation, cancel with lingie_cancel_run. It also covers the wait=false immediate-return mode.

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

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/MechaBabyAi/Lingie.Mcp'

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