Skip to main content
Glama

get_image

Fetch a generated image from ComfyUI and return it as an inline display. Obtain the filename from get_history first.

Instructions

Fetch a generated image from ComfyUI and return it as an inline image. Works with remote ComfyUI instances — does not require COMFYUI_PATH. Use get_history first to obtain the filename.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNoImage directory: output (default), input, or tempoutput
filenameYesOutput image filename, e.g. PulID_Klein_00001_.png
save_dirNoLocal directory to save the image file. Defaults to /tmp/comfyui-images/.
subfolderNoSubfolder within the directory, if any
Behavior3/5

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

With no annotations, the description tells that it returns an inline image and works remotely, but lacks details on response format, side effects (none?), or error handling. Adequate but could be more transparent.

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, no fluff, front-loaded with the core action. Every sentence provides necessary information efficiently.

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 fetch tool with no output schema, the description covers the main aspects: action, prerequisite, and remote compatibility. Missing explicit return type, but overall complete enough.

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 covers all 4 parameters with 100% coverage. Description adds value by explaining the filename comes from get_history and the default save_dir behavior, going 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?

The description clearly states the action ('Fetch a generated image from ComfyUI'), the resource ('inline image'), and distinguishes from siblings by noting it works with remote instances and does not require COMFYUI_PATH.

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?

Explicitly recommends using get_history first to obtain the filename, and clarifies the tool works remotely. Does not mention alternatives or when not to use, but provides sufficient context for appropriate use.

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