Skip to main content
Glama

comfy_apply_template

Read-onlyIdempotent

Apply a named workflow template (txt2img, img2img, controlnet) and return the workflow, with optional parameter overrides for customization.

Instructions

Apply a workflow template and return the resulting workflow.

Convenience alias for comfy_build_workflow.

Args: template: Template name (txt2img, img2img, upscale, inpaint, controlnet) params: Optional parameters to override template defaults

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsNo
templateYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

Annotations declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, which cover the safety profile. The description adds that it is a convenience alias, which is a useful behavioral note, but nothing about how the template application works (e.g., whether it validates, what happens on invalid template). With annotations present, the bar is lower, and the description adds some value.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise, using three short paragraphs: purpose, alias note, and Args list. It's front-loaded with the main action, and every sentence adds value. No fluff, appropriate length.

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?

The tool has a simple interface (2 params, 1 required) and an output schema (though not detailed here), so the description doesn't need to explain return values. It likely covers the essentials: what it does and the template options. However, it could specify what the output is (e.g., a workflow object) but that's likely in the output schema. With good annotations, this is fairly complete for a convenience wrapper.

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 description coverage is 0%, so the description must compensate. The description names the 'template' parameter and lists valid values (txt2img, img2img, upscale, inpaint, controlnet), which adds meaning beyond the schema—this is helpful. For 'params', it only says 'Optional parameters to override template defaults', which adds some context but doesn't specify what keys are accepted or any format. Overall, it partially compensates for the lack of schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states 'Apply a workflow template and return the resulting workflow', which clearly indicates a verb and resource. It also notes it's a convenience alias for comfy_build_workflow, which helps distinguish it from that sibling. However, it doesn't explicitly differentiate from other workflow-related tools beyond that.

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

Usage Guidelines3/5

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

It provides a clear context: it's an alias for comfy_build_workflow, so an agent knows it can use this instead of the longer function. However, it does not mention when to prefer this over other workflow building tools or any exclusions, such as cases where comfy_build_workflow would be more appropriate.

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/dreamrec/ComfyPilot'

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