Skip to main content
Glama

Get Image Task

get_image_task
Read-only

Query image-generation task status to get progress, result download URL, failure reason, or expiry state, and continue polling when generation times out.

Instructions

查询生图任务状态。status:queued/running(进行中,快档常在数十秒内出图,慢档可能数分钟——视模型档位与当前空闲算力)、 success(resultUrl 为图片现签下载链接,1 小时内有效;链接过期后重新查询即换新链)、 failed(errorMsg 为失败原因,不扣费)、expired(结果已过保留期)。 建议每 5~10 秒查询一次。generate_image 等待超时降级后用本工具续查。

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": {
      "task_no": "<task_no>"
    },
    "name": "get_image_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_noYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true, and the description adds substantial behavior beyond that: the four status values and their meanings, that resultUrl is a short-lived signed link valid for one hour that refreshes on re-query, that failed results are not billed, and that expired results have passed the retention window. These are exactly the traits an agent needs to decide whether to keep polling or re-fetch a link.

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?

The status breakdown is front-loaded and each clause carries distinct decision-relevant information (timing expectations, link expiry, billing, retention). It is slightly dense in a single paragraph and the parenthetical about model tiers and idle compute is more color than necessity, but nothing is truly wasted.

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?

An output schema exists, yet the description still usefully explains the status field and resultUrl lifecycle, which is well beyond what a bare output schema conveys. The only missing piece is how to obtain task_no in the first place; otherwise it fully covers what an agent needs to poll and interpret results.

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?

There is one required parameter (task_no) with 0% schema description coverage, and the description never defines it directly — it only implies the source by saying the tool continues a timed-out generate_image call. The implication is enough for an agent to infer task_no comes from the generation call, but the gap is real given the schema supplies nothing.

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 opens with a specific verb and resource ('查询生图任务状态' — query image-generation task status) and its scope separates it cleanly from the sibling status tools (get_document_task, get_speech_task, get_transcription_task) by naming the image-generation domain explicitly.

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?

It gives an explicit when-to-use trigger ('generate_image 等待超时降级后用本工具续查' — continue checking here after generate_image's wait times out) plus a concrete polling cadence of every 5–10 seconds, which is exactly the operational guidance an agent needs to avoid spamming a task-status endpoint.

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