Skip to main content
Glama

get_image_task

Read-only

Check the status and retrieve results of an image generation task by request_id. Returns result URLs and image links, with built-in polling that waits before re-querying.

Instructions

Query a task created by TopMediAi-MCP using its request_id. After a successful status query, wait poll_after_seconds (normally 20 seconds) before querying this task again. Earlier or concurrent calls return cached:true with saved state and the remaining wait, without another backend request. Different tasks run independently without holding the store lock during network requests. Stop normal polling on completed or failed. Returns result URLs and image resource links. When images are available use preview_image_task and include clickable original links. Does not submit or charge for another generation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
request_idYesStable caller-generated ID. Reuse it for retries of the same submission.
refresh_resultNoRe-query the original owned image task even if completed, to attempt recovery of expired result links. No generation or paid retry; the backend may still return the same link.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnly, non-destructive), and the description adds substantial behavior beyond them: caching semantics with cached:true and remaining wait, no backend request on early/concurrent calls, no store lock held during network requests, independence of different tasks, and the fact that no generation is submitted or charged. These are non-obvious traits that materially change how an agent should poll.

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?

Front-loaded with purpose, then polling cadence, then return values, then a scope disclaimer. Every sentence carries information, though the middle clauses about store locks and concurrent calls are dense and read more like implementation notes than agent-facing guidance, slightly inflating the length.

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?

There is no output schema, and the description compensates by stating what is returned (result URLs and image resource links). Combined with polling cadence, stop conditions, cache behavior, and the no-charge disclaimer, 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%, so both request_id and refresh_result are already documented in the schema, including reuse-for-retries and the expired-link recovery behavior. The description references request_id only indirectly via polling semantics and adds no field-level meaning beyond the schema, making the baseline 3 appropriate.

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 and resource: queries a task created by TopMediAi-MCP via request_id, and explicitly disclaims submitting or charging. It is clear what the tool does, but it never differentiates itself from the sibling get_generation_task, leaving the agent to infer the image-specific scope from the tool name and schema text ('owned image task').

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit operational guidance: wait poll_after_seconds (normally 20s) before re-querying, stop normal polling on completed or failed, and use preview_image_task with clickable original links once images are available. It also states when NOT to expect value from an early call (cached:true, no backend request), which is exactly the routing context an agent needs.

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