Skip to main content
Glama

generate_image_from_text

Generate images from descriptive text prompts. Choose workflows and set width, height for customized output.

Instructions

Generates an image using ComfyUI based on the provided prompt and optional parameters.

Args:
    prompt: The positive text prompt (It must be in English).
    workflow_name: The name of the workflow file (without .json) from the 'workflows' directory to use.
                If None, uses the default workflow ('t2image_bizyair_flux').
    width: The desired width of the image (default: 1024).
    height: The desired height of the image (default: 1024).
Returns:
    A URL to view the generated image.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYes
workflow_nameYes
widthNo
heightNo
seedNo
Behavior3/5

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

With no annotations, the description carries full burden. It mentions the prompt must be in English, defaults for dimensions, and returns a URL. However, it does not disclose side effects, authentication needs, rate limits, or what happens on failure. It is adequate but not thorough.

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 one paragraph with clear Args and Returns sections. It is concise but could be slightly more streamlined. No unnecessary information, and the structure helps parsing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema, no annotations, and 0% schema coverage, the description is moderately complete. It covers most parameters and the return value, but lacks usage guidance and deeper behavioral context. Additional details on seed and error handling would improve completeness.

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

Parameters2/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. It explains prompt, workflow_name, width, and height, but fails to describe the 'seed' parameter, which is present in the schema but absent from the description. This omission reduces clarity for that parameter.

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 generates an image from a text prompt using ComfyUI. The verb 'Generates' and resource 'image' are specific, and the sibling tool 'generate_image_from_image' implies this is for text-to-image, distinguishing it effectively.

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?

No explicit guidance on when to use this tool versus the sibling. The description lists parameters but does not provide context for selection, such as specifying that this is for text-to-image while the sibling is for image-to-image. Usage is implied but not stated.

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

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