Skip to main content
Glama

Get a generated image

get_image
Read-only

Fetch the status of an image job and return the image bytes when complete. Use it after an image generation job is still running or to inspect an older job ID.

Instructions

Fetch the current status of one image job, and return the image bytes if it is complete. Use this after generate_image reports that a job is still running, or to inspect an older job id.

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesImage job id returned by generate_image or list_images.

Output Schema

NameRequiredDescriptionDefault
jobYes
imageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered. The description adds real behavioral context beyond them: results are conditional, yielding status metadata for an incomplete job and image bytes only once the job is complete. It does not mention pagination, caching, or expiry of old job ids, which keeps it off 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?

Two sentences, both earning their place: the first states what is fetched and returned, the second states when to reach for it. The capability is front-loaded ahead of the usage guidance with no redundant restatement of the title.

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 read tool with an output schema and full annotation coverage, this is essentially complete: the agent knows the input source, the polling use case, and the conditional return. A brief note on what a non-complete status looks like, or on id expiry, would fully close it out.

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 the single job_id parameter is fully documented in the schema, including its UUID pattern and origin. The description reinforces that older job ids are valid inputs, but adds no format or constraint detail 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?

The description gives a specific verb-plus-resource ("Fetch the current status of one image job") and adds the key distinguishing scope: exactly one job, versus the plural job tools in the sibling list. It also states the payload condition (image bytes only when complete), so an agent knows what it gets back 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?

It gives concrete triggering conditions: use after generate_image reports a still-running job, or to inspect an older job id. That is stronger than implied usage. It stops short of naming when NOT to use it, e.g. polling several jobs at once via check_image_jobs, so it is not a full when/when-not routing statement.

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