Skip to main content
Glama

查询任务状态

query_task

Check the status and retrieve results for an image generation task by its task ID.

Instructions

查询任务状态和结果

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_id": "<task_id>"
    },
    "name": "query_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
req_keyNo服务标识,默认使用 jimeng_t2i_v40(4.0版本文生图和图生图统一使用此标识)
task_idYes任务ID
logo_infoNo水印信息
return_urlNo是否返回URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.3

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, and it is nearly silent. It does not explain the possible task states (pending, succeeded, failed), whether results expire, whether this is a read-only and safe operation, or what happens when task_id is unknown or the task has failed. For a polling endpoint, this is a significant gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The sentence is short and front-loaded with no padding, so it is concise but under-specified rather than efficient. There is no structure beyond one clause, and no detail about return shape or next steps.

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

Completeness2/5

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

With no annotations and no output schema, the description must carry the task-state semantics and return-value explanation, and it does not. An agent cannot learn from the definition what a response looks like or how to interpret an unfinished task.

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 req_key, task_id, logo_info, and return_url are already documented in the schema. The description adds no meaning about these parameters, for example that req_key defaults to jimeng_t2i_v40, so the baseline score of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a verb and resource ("查询任务状态和结果"), but since it is nearly a restatement of the tool name query_task and the title 查询任务状态, it adds almost nothing. It also does not distinguish this tool from the generate_image sibling; in particular, it does not say that this tool is the follow-up polling step after generate_image.

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

Usage Guidelines2/5

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

There is no when-to-use guidance. The description does not say that this tool should be called after generate_image to poll for a task result, whether polling should be repeated or how often, or what to do when a task is not yet complete. The only clue is the tool name itself.

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