Skip to main content
Glama

comfyui_get_image

Read-onlyIdempotent

Retrieves image URLs for a queued ComfyUI job by prompt_id, returning status and URLs when ready so you can poll for completion after generation.

Instructions

Retrieve image URLs for a previously queued job by prompt_id. Use this to poll for completion after calling comfyui_generate_image (default non-blocking mode). Returns status (pending/executing/completed/failed/not_found) and image URLs when ready.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "prompt_id": "<prompt_id>"
    },
    "name": "comfyui_get_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
prompt_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-open-world behavior, and the description adds real value on top: it enumerates the possible status values (pending/executing/completed/failed/not_found) and says URLs are returned only when ready. It doesn't say what to do on each status or whether polling has a cost limit, which keeps it below a 5.

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 short sentences, front-loaded with the action and resource, then usage, then return behavior. No redundant restatement of the name and no filler.

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 one-parameter polling tool with no output schema, the description covers the essential contract: what it returns, the status vocabulary, and when in the workflow to call it. Minor gaps remain around retry cadence and status-specific next steps.

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 0% for the single prompt_id parameter, so the description has to carry the meaning. It conveys that prompt_id identifies a previously queued job and is obtained from comfyui_generate_image, but never states that explicitly or gives the ID's format, so the compensation is partial.

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?

States a specific verb and resource ("Retrieve image URLs") scoped to "a previously queued job by prompt_id," and explicitly names the sibling comfyui_generate_image whose output it follows, so an agent can place it in the workflow without opening the schema.

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?

Gives clear situational guidance: call it to poll for completion after comfyui_generate_image in its default non-blocking mode. It does not mention comfyui_get_request_history as an alternative or state when not to use this tool, so it stops short of full routing guidance.

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