Skip to main content
Glama

wait_image_task

Idempotent

Poll an asynchronous image-generation task until it finishes, save the output when ready, and return a timeout status with the task ID if processing continues so you can query again later.

Instructions

有界轮询,NOT_START 排队和 IN_PROGRESS 处理中继续等待,成功后落盘;只读查询有限重试计入等待时限。超时返回 task_id/wait_timed_out,云端任务继续;可稍后再次查询。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
task_idYes
output_dirNo可选绝对输出目录;默认配置目录。异步任务查询默认沿用提交目录。
poll_intervalNo
timeout_secondsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
costNo
noteNo
filesNo
groupNo
usageNo
statusYes
task_idNo
warningNo
progressNo
responseNo
next_toolNo
output_dirNo
fail_reasonNo
save_statusNo
wait_timed_outNo
download_errorsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already cover safety (idempotent=true, destructive=false, openWorld=true), and the description adds genuine context beyond them: bounded polling, that read-only retries count toward the wait budget, that timeout returns task_id/wait_timed_out while the cloud task continues, and that success writes to disk. It does not mention auth or rate-limit behavior, keeping it short of 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense sentence that front-loads the core concept ('有界轮询') before timeout and re-query behavior. No filler, though the multi-clause packing makes it slightly harder to parse than it needs to be.

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

Completeness3/5

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

An output schema exists, so return values need not be enumerated, and the annotations carry the safety profile. The description covers the main waiting/timeout behavior adequately, but for a 4-parameter tool with 25% schema coverage the undocumented polling parameters remain an incomplete picture.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 25% (only output_dir is documented), so the description must compensate, and it largely does not. poll_interval and timeout_seconds have no descriptions anywhere, and the description only vaguely alludes to a 'wait time limit' and disk landing rather than mapping meaning onto those parameters.

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?

The description states a specific operation — bounded polling of an image task ('有界轮询'), with the state transitions (NOT_START/IN_PROGRESS) that it waits on. It is clear what the tool does, but it never names or contrasts against the obvious sibling get_image_task, so an agent must infer the difference itself.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: waiting continues while the task is queued or in progress, and '可稍后再次查询' hints at re-querying after a timeout. There is no explicit when-to-use-this vs use-get_image_task guidance, leaving the choice between polling and single-query siblings to inference.

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