Skip to main content
Glama

查询创作任务

get_task
DestructiveIdempotent

Checks an existing task_id and returns its status plus a local path or time-limited download link, without creating a new generation task or resubmitting duplicate requests.

Instructions

查询已有 task_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": {
      "task_id": "<task_id>"
    },
    "name": "get_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0-rc.13

TDQS

A4.4/5.0
Behavior5/5

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

Because it states that a query after video completion may trigger a one-time settlement with the existing gateway, this description is essential: it explains why readOnlyHint=false and destructiveHint=true on a tool whose name sounds like a simple lookup. It also states that repeated queries will not resubmit (repeated calls are not charged twice), which matches idempotentHint=true and covers billing risk that annotations alone cannot express.

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?

Three short sentences, with the return contract first and the risk-bearing side effects immediately after; every sentence carries information (return values, billing side effect, no task creation, idempotency) with no padding.

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?

There is no output schema, and the description compensates by naming what comes back (status plus a local path or expiring link) and by disclosing the settlement side effect and idempotency. The remaining gap is minor: it does not say how the expiry window works or what task_id values are valid.

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 0%, so the schema contributes only a uuid format and pattern for task_id. The description adds that the id must refer to an existing task, but it does not say where the agent obtains that id or what happens if the id is unknown, so it adds only marginal meaning beyond the schema.

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 and resource in "查询已有 task_id" and states exactly what is returned: status plus either a local path or a time-limited download link. The clause "不创建新生成任务" also clearly distinguishes it from the sibling generation tools (generate_image, generate_video).

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 makes clear that this is a call made for a task that already exists, implicitly acting as a polling or status-check step after a generation request, and it explicitly excludes the case of creating new generation tasks. It does not specify polling cadence, terminal states, or the point at which the agent should stop querying, so the guidance is clear but not complete.

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