Skip to main content
Glama

get_job_result

Retrieve a ComfyUI job's result by prompt ID, optionally waiting up to 50 seconds for completion; repeat the call while status remains running.

Instructions

Get the result of a completed or running job by its prompt ID. Pass wait_seconds to block until it finishes (repeat the call while status is "running").

Input Schema

NameRequiredDescriptionDefault
prompt_idYesThe prompt/job ID returned from run_workflow
wait_secondsNoBlock up to this many seconds for the job to finish (default 0 = check once, max 50)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses blocking behavior and the need to repeat while running, but does not describe return format, error behavior, or any permission/rate-limit considerations.

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, front-loaded with the core action and followed by the key polling instruction. No wasted text.

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 low-complexity retrieval tool with complete parameter schema, the description covers the essential polling behavior. It could say more about the returned result, but no output schema exists and the core usage is clear.

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 100%, so both parameters are already documented in the schema. The description mentions prompt_id and wait_seconds but adds little parameter meaning beyond what the schema provides.

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 a specific verb and resource: get the result of a job by prompt ID. It clearly covers completed or running jobs, but does not explicitly differentiate from siblings such as download_job_results or get_queue_status.

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 gives useful polling guidance: pass wait_seconds to block and repeat while status is running. However, it does not say when to use this tool versus download_job_results, get_queue_status, or cancel_job.

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