Skip to main content
Glama

Get Image Result

get_result

Retrieve file paths for images queued by generate_image or edit_image, waiting up to 50 seconds and polling again until all jobs finish.

Instructions

Wait for images queued by generate_image or edit_image and return their file paths. Waits up to wait_seconds (max 50). Each result has a status: completed (images ready), running, queued, error, or not_found. If done is false, some jobs are still generating: call get_result again with the same prompt_ids and keep calling until done is true. Slow machines can need several calls.

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_ids": "<prompt_ids>"
    },
    "name": "get_result"
  }
}

Input Schema

NameRequiredDescriptionDefault
prompt_idsYesprompt_ids returned by generate_image or edit_image
wait_secondsNoMax seconds to wait before reporting pending jobs (0-50)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations supplied, the description carries the behavioral disclosure burden and does well: it explains waiting, the 50-second cap, possible statuses, and the need to repeat calls on slower machines. It still omits some operational details such as permissions or rate-limit behavior, so it is strong but not exhaustive.

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?

The description is compact and front-loaded: purpose, wait behavior, status meanings, and retry instruction follow in a logical order. Every sentence contributes useful operational context without unnecessary repetition.

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

Completeness5/5

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

Because no output schema exists, the description must explain return behavior, and it does: results include file paths and statuses, with done used to signal whether more polling is needed. It is complete enough for an agent to invoke and interpret the tool correctly in the queued-image workflow.

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 description coverage is 100%, so the schema already documents prompt_ids and wait_seconds thoroughly. The description reinforces that prompt_ids come from generate_image or edit_image and that wait_seconds caps at 50, but adds little beyond the structured field descriptions.

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 states a specific verb and resource: wait for images queued by generate_image or edit_image and return their file paths. It explicitly connects the tool to its sibling tools, so an agent can distinguish retrieval of queued results from generation/editing.

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?

It clearly frames usage after generate_image or edit_image and gives explicit polling guidance: if done is false, call again with the same prompt_ids until done is true. It does not state explicit when-not-to-use exclusions, but the usage context is otherwise clear.

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

Deploy Server

Other Tools