Skip to main content
Glama

get_task_status

Retrieve live status and output for async tasks, compact long logs locally while preserving key error lines, and append git status when a task finishes.

Instructions

Get live status and output of any async task (agy / shell / gemini_cli / build). Automatically compacts very long logs locally (0 API cost, preserves head + error lines + tail) unless raw=true, and appends concise git status when finished.

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": {
      "taskId": "<taskId>"
    },
    "name": "get_task_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
rawNoIf true, return uncompacted stdout/stderr tail
taskIdYesTask ID returned by dispatch_* or run_shell(asyncMode=true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

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 does a good job: it discloses that long logs are compacted locally at zero API cost, that head + error lines + tail are preserved, that raw=true bypasses compaction, and that git status is appended on completion. It omits whether the call is side-effect-free, what happens for an unknown taskId, and whether status values are enumerated, which keeps it short of a 5.

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?

Two tightly packed clauses: purpose first, then the output behavior. No filler; even the parenthetical task-type list earns its place by scoping applicability.

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?

No output schema exists, and the description compensates by describing the shape of the return (status, compacted log with head/error/tail, git status). It is nearly complete for a 2-parameter read tool, with only the set of possible status values and behavior on invalid IDs left unstated.

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 coverage is 100%, so both parameters are already documented in structured form, and the baseline is 3. The description adds nuance about what compaction does to the output, but it does not explain taskId beyond what the schema says nor clarify how raw interacts with the appended git status.

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?

States a specific verb and resource ("Get live status and output of any async task") and enumerates the task families it covers (agy / shell / gemini_cli / build). It does not name siblings like wait_task or cancel_task, so the boundary between polling, blocking, and cancelling is left implicit.

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

Usage Guidelines3/5

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

Usage is implied by "live status" of an async task: the agent can infer this is for polling a dispatched task, and the mention of dispatch_* / run_shell(asyncMode=true) in the schema ties it to the producing tools. But there is no explicit guidance on when to use this instead of wait_task (blocking) or cancel_task, and no statement of what happens if the task is still running versus finished.

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