Skip to main content
Glama

Get Task

get_task

Retrieve a one-time snapshot of a task's status, live progress, and final result to check current state without polling.

Instructions

查询任务状态、运行中进度与最终结果(一次性快照)

运行中想看进展可以单次调用本工具,返回里带 live 进度;不要按固定节奏轮询,也不要拿它当等待手段。要等结果请用 poll_task(仅当用户明确要求等待时)。

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
serverNo
task_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.6
    • changedInput schema / properties / server / default
      Previous value: -"default"New value: +""
  2. Addedv0.1.3
  3. Removedv0.1.2
  4. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden, and it does disclose the key behavioral traits: the result is a snapshot rather than a blocking wait, and live progress is embedded in the response. It does not cover permissions, whether the snapshot is consistent across concurrent runs, or what happens for an unknown task_id, so it falls short of exhaustive.

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 scope and snapshot semantics are front-loaded, and the alternative is named last, which is a sound ordering. The two prohibitions (no fixed-cadence polling, not a wait mechanism) overlap somewhat but are short enough to earn their place.

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 the absence of return-value detail is acceptable, and the waiting/anti-polling guidance is unusually thorough. However, the undocumented server parameter leaves a genuine gap for correctly invoking a task lookup that may span multiple servers.

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 0% across two parameters, so the description must compensate and does not. It never explains task_id or the server parameter (which defaults to an empty string and presumably selects which server the task lives on) — that omission matters in a multi-server catalog.

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 names a specific verb and resource (query task status, live progress, final result) and pins the shape of the answer as a one-time snapshot. It also explicitly contrasts itself with poll_task, so an agent can distinguish the two without opening either schema.

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 both sides of the routing decision: call this once to inspect progress, do not poll on a fixed cadence, and do not treat it as a wait mechanism. It then names the alternative, poll_task, together with the precondition for using it (the user explicitly asks to wait).

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