Skip to main content
Glama

get_task_status

Retrieve a queued coding task's status, exit code, concise summary, session ID, and log path; optionally wait briefly for completion or include a log tail when troubleshooting.

Instructions

查询指定任务的执行状态、退出码、精简摘要(<=1500字)、会话 ID 与日志路径。 Query status, exit code, concise summary, conversation ID, and log file path for a task.

默认遵循“传引用不传全文”原则;仅在需要排障时将 include_log_tail 设为 True。 对于短任务,可设置 wait_seconds(1~20)让服务端短暂等待至结束再返回,减少轮询次数。

Args: task_id: enqueue_task 返回的任务 ID。 include_log_tail: 是否附带完整日志文件的末尾若干行(默认 False)。 tail_lines: 当 include_log_tail=True 时返回的末尾行数(默认 40,上限 500)。 wait_seconds: 可选,最多阻塞等待的秒数(0 表示立即返回,上限 20 秒)。

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_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_idYes
tail_linesNo
wait_secondsNo
include_log_tailNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose meaningful behavior: the default terse response, the <=1500-character summary cap, the blocking wait up to 20 seconds, and the 500-line tail ceiling. It never explicitly states that the call is a read-only operation, and it does not say what happens for an unknown task_id or while the task is still running.

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 content is front-loaded and the Args block is well organized, but every sentence is duplicated in Chinese and English, roughly doubling length without adding information. The core guidance itself is tight and earns its place.

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, so the description correctly enumerates the return fields, and it covers blocking behavior and size limits. Gaps remain around error cases (invalid task_id) and what fields are populated while a task is still running, which an agent polling a task would want to know.

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

Parameters5/5

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

Schema description coverage is 0% — the schema only supplies bare titles and defaults — yet the description documents all four parameters with meaning, defaults, and limits (tail_lines default 40 / max 500, wait_seconds 0-20 with 0 meaning immediate return, include_log_tail default False). It also ties task_id to the enqueue_task return value, which the schema cannot express.

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?

States a specific verb and resource (query a task's execution status) and enumerates what is returned: exit code, concise summary (<=1500 chars), conversation ID, and log path. This clearly separates it from enqueue_task, cancel_task, and list_tasks, which create, cancel, and enumerate tasks rather than inspect one.

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?

Gives real conditional guidance: keep the default 'pass a reference, not the full text' behavior, and only set include_log_tail=True when troubleshooting. It also explains that wait_seconds lets the server block briefly for short tasks to reduce polling. It stops short of saying when to prefer this over list_tasks for bulk inspection.

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