Skip to main content
Glama

list_tasks

Retrieve dispatched tasks oldest first, filtering by status, backend, repository, group, or time to monitor queued, running, completed, failed, timed-out, or cancelled work.

Instructions

List dispatched tasks, oldest first.

Args: status: Optional filter — running, completed, failed, timed_out or cancelled. backend: Optional filter by harness, e.g. "codex". waiting_for_resource: Optional resource name: only launches that have not started and are still queued for it (launch_state: "waiting_for_resources"). Uses the unpaged listing.

The unpaged listing also carries launches that are waiting for resources and have no task record yet (pending_launch: true); the indexed page does not.

Includes tasks from earlier harflow_mcp server processes, marked recovered: true. Supplying group/title_contains/repo/since/limit/fields/cursor selects a bounded newest-first indexed page (default limit 50, maximum 100), rather than the legacy oldest-first list. since is an inclusive ISO8601 timestamp with timezone. fields selects compact names. Accepted fields, in sorted order: background_idle_seconds, backend, dispatch_origin, duration_seconds, finished_at, group, input_channel, last_captured_output_at, needs_direct_lookup, needs_reconciliation, note, observation_mode, observation_note, observed_exit, output_capture, owner, parent_task_id, persisted_status, process_identity_state, recovered, repo_path, responding_server, root_task_id, session_id, started_at, status, task_id, title. The repository field is repo_path, not repo. Identity and status fields are always included: task_id, status, needs_reconciliation, needs_direct_lookup, persisted_status, observed_exit, process_identity_state. An unknown name, an empty list, a non-string entry and a list longer than the accepted set each produce their own error, and the error names the bad entries and lists the accepted ones. Accepted filters: group, title_contains, repo, status, backend, since, predecessor_task_id. Filters run before pagination; cursor binds filters. Status is the indexed observation: inspect needs_reconciliation and observed_exit before interpreting it. See docs/compact-task-reads.md for supported fields, bounded-header matching and direct detail lookup. Listing never replays task logs. When status_reconciliation_pending is true, results are incomplete: retry the same filters without a cursor as directed by polling_guidance, even if has_more is false.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_tasks"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoNo
groupNo
limitNo
sinceNo
cursorNo
fieldsNo
statusNo
backendNo
title_containsNo
waiting_for_resourceNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.14

TDQS

A4.4/5.0
Behavior5/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 so well: it discloses that unpaged results include pending_launch entries the indexed page omits, that tasks from earlier server processes appear with recovered: true, that status is an indexed observation requiring needs_reconciliation/observed_exit inspection, and that incomplete results must be retried without a cursor. It also states "Listing never replays task logs" and documents the error behavior for malformed fields entries.

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 purpose is front-loaded, but the body is a dense run-on that mixes an argparse-style Args block with prose about pagination, errors and reconciliation. It spends several lines enumerating ~30 accepted field names and then separately points at docs/compact-task-reads.md for supported fields, duplicating that content instead of letting the doc own it.

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?

For a 10-parameter listing tool with no annotations and an output schema that already documents return shape, the description covers the remaining gaps: mode selection, pagination bounds, cursor-to-filter binding, filter ordering before pagination, field compaction rules, error semantics, and the reconciliation retry path. Nothing essential to invoking it correctly is missing.

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%, so the description must compensate, and it does: status enumerates the five accepted values, backend is tied to a harness example, waiting_for_resource is tied to launch_state, since is defined as an inclusive ISO8601 timestamp with timezone, and limit defaults to 50 with a 100 cap. It also spells out the exact accepted fields set and clarifies that the repository parameter is repo_path, not repo, which the schema cannot convey.

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 sentence gives a specific verb and resource ("List dispatched tasks, oldest first") and immediately explains that supplying group/title_contains/repo/since/limit/fields/cursor switches to a bounded newest-first indexed page. An agent can distinguish the default legacy listing from the paged mode from the text alone. It stops short of naming any sibling (e.g. list_task_page) as the alternative entry point, so the differentiation is by mode rather than by tool.

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?

It gives concrete selection rules: waiting_for_resource is for launches that have not started and is served by the unpaged listing, and the presence of pagination-style parameters selects the newest-first indexed page. It also states the recovery path when status_reconciliation_pending is true (retry the same filters without a cursor even if has_more is false). No explicit when-not-to-use vs a named sibling tool, which keeps it below 5.

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