Skip to main content
Glama

kilo_task_result

Fetch the result of a background coding task, including status, exit code, parsed Final Report, and log path; optionally return the full run trace.

Instructions

Fetch the outcome of a background kilo_implement task.

Returns the task result once completed: by default, returns a trimmed summary with status, exit code, session_id, worktree/branch (when isolated), the parsed Final Report, and the log file path. Pass include_trace=true to retrieve the full run trace. While still running it says so — use kilo_task_progress for live plan/commentary or kilo_task_status for a quick OS-level heuristic. Tasks run as detached OS processes, independent of this server: results persist on disk and self-heal across server restarts — even a task that was still running when a previous server instance died is recovered here (from its log file) the first time anything asks about it, not lost.

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": "kilo_task_result"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_idYesThe task_id returned by kilo_implement when launched with background=true.
include_traceNoIf True, returns the full run trace. Defaults to False (returns status, exit code, session_id, worktree/branch when present, parsed Final Report, and log file path).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/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 substantial work: it discloses that tasks are detached OS processes independent of the server, that results persist on disk, and that a task orphaned by a server restart is recovered from its log file on first query. It does not state what happens for an unknown or expired task_id, nor that the recovery path may have a side effect, 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.

Conciseness4/5

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

Front-loaded with the purpose, then the return shape, then the alternatives, then the durability guarantee — a logical order with no filler sentences. The default-output field list is largely duplicated by the include_trace schema description, which is the only real redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation, yet the description still summarizes them, and it covers the awkward cases (still-running tasks, server restarts, orphaned tasks) that matter for a background-task result tool. Nothing an agent needs in order to call it correctly is missing.

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 100%, so the baseline is 3. The description restates the include_trace behavior (full run trace versus a trimmed summary) and lists the default fields, but adds little beyond what the schema already documents for both parameters.

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?

Opens with a specific verb and resource: "Fetch the outcome of a background kilo_implement task." It also scopes the tool to background tasks and enumerates what the default result contains, so an agent can distinguish it from kilo_task_progress and kilo_task_status without opening any 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?

Explicitly routes the agent: use kilo_task_progress for live plan/commentary and kilo_task_status for a quick OS-level heuristic, while this tool is for the completed outcome. It also covers the in-flight case ("While still running it says so"), so both the when-to-use and when-not-to-use conditions are stated.

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