Skip to main content
Glama

get_task_status

Check a dispatched task's current state without blocking, including progress, resource waits, failures, and optional output details.

Instructions

Report a dispatched task's current state without blocking.

Args: task_id: Identifier returned by start_task or resume_task, or a unique prefix of at least 8 characters; a prefix reply carries resolved_from. include_tail: If True, include the full last_output_tail (20 lines × 2000 chars each); if False (default), the tail is omitted for running/completed tasks and shortened to 5 lines × 500 chars for failed tasks. The caller can request the full raw stream log path from raw_stream_log in full detail for complete output, or use get_task_events for normalized events. brief: Compatibility alias for detail="compact"; preserves the complete summary. include_tail=True still explicitly requests the full tail. detail: "compact" (default) omits static execution metadata and detailed outcome probes; "full" returns complete MCP status. Both retain the complete summary/report, approval attention, failure diagnostics and recovery uncertainty. include_successors: Fetch the first authorized page of successor IDs. Defaults false: ordinary polling includes a detail reference without scanning retained task history.

A task still waiting for its resources has no record yet: it reports status: "running", launch_state (waiting_for_resources, granted, uncertain, or not_started once it settled without starting, with not_started_reason) and resources (names, queue position, blocked_by, deadline). See docs/resources-and-worktrees.md.

Full detail returns the task's status, summary, enforcement, and recent_activity — a list of ≤ 5 one-line strings describing the most recent meaningful events (tool calls, failed tool results, assistant messages, notices). For running tasks this gives a live summary without the bulk of the raw stream. These lines deliberately collapse whitespace and truncate to stay short — they are a summary only; the stored event log (see get_task_events) and every stored or delivered message keep their original text intact. total_cost_usd is null for backends that do not report cost — Codex, vibe and Antigravity report tokens only or nothing (vibe reports neither cost nor tokens nor a turn count).

enforcement states what the run's restrictions actually amounted to, and mcp_servers (where the backend reports them) shows what the agent loaded. owner identifies execution/output capture; dispatch_origin and dynamic responding_server distinguish the requester from this reader. observation_mode is owner, attached, recovered or unknown. A same-origin normal attachment reports recovered: false; another reader or missing process-generation evidence reports true with an explanation. PID differences alone do not establish owner loss.

Live, recovered and brief snapshots include artifact_summary with a bounded count and state (available or unavailable). Supported standalone owners may include detail_ref: {"tool": "get_task_artifacts", "task_id": "..."}, for explicit paged metadata reads. Unsupported or unverifiable ownership returns unavailable without a detail reference; a supported owner with an unreadable manifest may retain the reference for diagnostics. Artifact registration is a reference, not proof of valid contents, successful execution, or permission to copy or publish. Availability does not verify content integrity.

parent_task_id links a resume to its source; continuation_of_task_id links a new-session continuation. successor_tasks derives the reverse links from retained, authorized headers, when include_successors is true; otherwise only a detail reference is returned. Incompleteness and pagination are explicit. These links do not transfer reminders or subscriptions to the successor.

Confirmed usage limits add failure_diagnostic (category, reason, source, and optional provider-supplied reset_at). It is retained during process settlement and after failure; a running status during settlement does not authorize a replacement dispatch.

Terminal outcome records starting and ending Git observations and diff statistics. new_commits means newly reachable from the observed comparison base, including imported history; task-created commits and authorship are unavailable. Branch/HEAD are endpoint observations only; intermediate transitions are unobserved even when endpoints match. It also records local upstream comparison, optional bounded phase/probe diagnostics and partial-result status, and best-effort structured tool evidence for external file writes and the last build/test command. Missing evidence is null, including pushed state without observed publication evidence. These shared-repository observations do not establish task authorship or goal completion. Old records without captured outcomes return null.

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
briefNo
detailNocompact
task_idYes
include_tailNo
include_successorsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.14

TDQS

A3.8/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 largely meets it: it explains the resource-waiting state machine (launch_state, not_started_reason), what is null for which backends (total_cost_usd), what artifact_summary and detail_ref do and do not prove, and that recent_activity lines are lossy summaries. It never explicitly declares the call side-effect-free, which for a 5-param status reader would have been a cheap addition.

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

Conciseness2/5

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

It is front-loaded and structured (Args block, then thematic paragraphs), but the body runs several hundred words of return-field semantics — enforcement, mcp_servers, owner, observation_mode, outcome/git diffs, successor links — most of which duplicates the output schema that already exists. Several sentences hedge on details an agent cannot act on (e.g., PID differences not establishing owner loss), inflating size without improving tool selection.

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?

For a five-parameter status reader with an output schema, this covers the cases an agent must handle: missing records while waiting for resources, partial/prefix task IDs, unavailable artifacts, null cost fields, and old records returning null. Completeness is arguably over-served given the output schema, but nothing needed for correct invocation is absent.

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

Parameters4/5

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

Schema coverage is 0%, so the Args block is doing all the work and it documents all five parameters, including that task_id accepts an 8-character prefix and that prefix replies carry resolved_from. The one weak spot is the brief/detail interaction: brief is called a "compatibility alias" for detail="compact" yet also said to preserve the complete summary, which is hard to reconcile with the stated default.

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 opening line gives a specific verb and resource ("Report a dispatched task's current state") and adds a distinguishing property ("without blocking"), which implicitly separates it from wait_for_task-style polling. It also names get_task_events and get_task_artifacts as related readers, so an agent can place it among siblings, though the non-blocking contrast is implied rather than tied to a named alternative.

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?

Guidance is given per-parameter and per-situation: use get_task_events for normalized events, use raw_stream_log for the full raw stream, set include_successors only when reverse links are needed because ordinary polling avoids scanning retained history. What is missing is an explicit statement of when NOT to use this tool (e.g., versus wait_for_task or get_workflow_status).

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