Skip to main content
Glama

Get background image result

get_image_result
Read-onlyIdempotent

Collect a background image generation job’s result by job ID: returns status while running, then text and image outputs when complete.

Instructions

Collect the result of a generate_image call started with background: true. When the job is done it returns the same text and images as a normal call (images only the first time; later calls return the text and file paths). While it runs it returns its status. Finished jobs are kept for 1 hour and are lost if the MCP server restarts.

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": {
      "job_id": "<job_id>"
    },
    "name": "get_image_result"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesThe job id returned by generate_image with background: true.
wait_secondsNoWait up to this many seconds; returns as soon as the job finishes. 0 returns the current status immediately.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well past the annotations (readOnly/idempotent/non-destructive) by disclosing the return contract: text and images on first completion, text plus file paths on later calls, status while running. It also discloses a real operational constraint — one-hour retention and loss on server restart — which the agent could not infer from any structured field.

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?

Four sentences, front-loaded with the trigger condition, then the success contract, then the in-progress behavior, then the retention caveat. Every sentence carries information an agent would otherwise lack; nothing is repeated from the schema or annotations.

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?

With no output schema, the description carries the full burden of describing return values and does so precisely, including the non-obvious first-call vs. later-call difference. Combined with the retention caveat, an agent has everything needed to call and interpret this tool correctly.

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%, and both parameters are already documented, including the wait_seconds polling semantics and 600s cap. The description reinforces the job_id provenance but adds no format or edge-case meaning beyond the schema, so the baseline of 3 applies.

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: collect the result of a generate_image call started with background: true. The 'background: true' qualifier immediately distinguishes it from the sibling generate_image, so an agent knows which tool to reach for without opening either 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?

The condition for use is explicit: only for jobs launched with background: true, and it also covers the polling case ('while it runs it returns its status'). It stops short of naming an alternative or saying what to do for non-background calls, so the negative case is only implied.

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