Skip to main content
Glama

get_task_result

Read-onlyIdempotent

Retrieve generated images from a completed ComfyUI task by task ID. Use it to fetch final outputs after a generation workflow finishes.

Instructions

Get the result of a completed generation task (images)

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": {
      "taskId": "<taskId>"
    },
    "name": "get_task_result"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskIdYesThe task ID to get results for

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so the safety profile is covered. The description adds the useful constraint that the task must be complete, but says nothing about error behavior for an incomplete task or rate/retention limits, which is what an agent would still need.

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?

A single front-loaded sentence with no filler. The trailing parenthetical '(images)' is slightly cryptic but does useful narrowing work, so nothing is genuinely wasted.

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?

There is no output schema, so the description carries the burden of explaining the return value, yet 'the result' is left undefined — image URLs, base64 data, or a wrapper object are all plausible. For a simple one-parameter read tool this is a notable but not fatal gap.

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?

With a single required parameter at 100% schema description coverage, the schema already documents taskId. The description adds no format, provenance, or sourcing detail (e.g., where the ID comes from, such as a prior generation call), so it only matches rather than exceeds the schema baseline.

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?

States a specific verb ('Get') and resource ('the result of a completed generation task') and narrows the payload type with '(images)'. It is clearly distinct from mutating siblings like cancel_task, though it does not explicitly differentiate itself from get_task or get_image.

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?

The phrase 'completed generation task' implies a precondition — only call this once the task has finished — but it never states what to do if the task is still pending or failed, nor does it name which sibling to use for that case (get_task, get_status, list_tasks). Usage is implied rather than prescribed.

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