Skip to main content
Glama

resume_task

Continue a finished task's session with follow-up instructions while preserving prior context. Returns a new task_id on the same backend and model so you can build on earlier work.

Instructions

Continue a finished task's session with follow-up instructions.

Args: task_id: A task that has finished; its session is the one resumed. followup_prompt: What the agent should do next, with the prior context intact. Write it in plain prose, as with start_task's prompt: preserve spaces and word boundaries and never concatenate words to shrink the payload — the text is stored and delivered exactly as submitted. Blank or all-whitespace follow-ups are rejected rather than trimmed into shape. May be omitted only when the task has follow-ups queued with send_message (see below); otherwise it is required. max_turns: Cap on agent turns, where the backend supports one. network: Optional boolean overriding the parent run's network setting for this run only: None (the default) inherits what the parent was dispatched with — which is also the historical default for a record written before the field existed — True asks for no network barrier of harflow_mcp's own, False asks for one, honoured or refused exactly as on start_task for the parent's freedom. fetch: Optional refresh of remote-tracking refs before the resumed agent starts. true uses the default remote; a list names remotes. A prepared branch is reused and is not recreated. branch and base are not accepted on resume. fetch_required: When true, a fetch failure refuses the resume. group_report_output: None inherits the saved group-scoped output opt-in; false disables it. allowed_commands: None (the default) inherits the parent's saved command grants; a list replaces them for this run after the same validation and nested-subset check as start_task, which documents the grammar and limits.

Follow-ups queued on the task with send_message are consumed by this call, exactly once: the prompt is each queued message as a block "Queued caller follow-up N of M (message , queued ):" followed by its text exactly as sent, in queue order, a blank line, then followup_prompt verbatim — or the line "End of queued caller follow-ups." when it is omitted. The new task's task_started event lists the message_ids. A message cannot be consumed twice; one that cannot be proven undelivered after a failed launch is kept as delivery_unknown rather than re-queued.

A task that had resources re-queues the same names; if they are busy the call returns at once with launch_state: "waiting_for_resources", hands the consumed follow-ups to the waiting launch (consumed when it spawns, queued again if it never starts) and has no record until then.

Returns a new task_id sharing the original session, and returns immediately as with start_task. Runs on the same backend, model, reasoning_effort and freedom as the original — none of these can be changed on resume, since a mid-conversation switch would not honestly describe what produced the reply. network is the one per-run override, because it is a per-run sandbox setting rather than a description of the session.

Some backends mint their own session id and only disclose it mid-run; if a task died before doing so, its conversation cannot be continued and this says so rather than starting a disconnected one.

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

Input Schema

NameRequiredDescriptionDefault
fetchNo
networkNo
task_idYes
max_turnsNo
fetch_requiredNo
followup_promptNo
allowed_commandsNo
git_https_rewriteNo
group_report_outputNo
conversation_profileNo
background_idle_secondsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

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 behavioral burden and does so: it discloses the exact format queued follow-ups are injected in, that they are consumed exactly once and never re-queued without proof of non-delivery, that task_started lists message_ids, the busy-resource path returning launch_state waiting_for_resources, and that the call returns immediately. It even explains why network is the sole per-run override and what happens when a backend never disclosed its session id.

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 in one clean sentence and little is pure filler, but the remaining prose is a dense wall of nested clauses that is costly to parse. Sentences like "honoured or refused exactly as on start_task for the parent's freedom" and repeated deferrals to start_task's documentation would benefit from tighter phrasing.

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 an eleven-parameter, stateful tool with no annotations, the definition covers the important behavior: queue consumption, resource waiting, inheritance of backend settings, and failure modes. An output schema exists so return values need not be spelled out. It falls short only on the three unexplained parameters and the absent contrast with continue_task/resume_workflow.

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 description coverage is 0%, so the description must compensate, and it does for task_id, followup_prompt, network, fetch, fetch_required, group_report_output and allowed_commands, often adding semantics far beyond the type (e.g. None inherits the parent's grants; a list replaces them after the same nested-subset validation as start_task). However git_https_rewrite, conversation_profile and background_idle_seconds are never mentioned, leaving three of eleven parameters with no semantics anywhere.

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?

"Continue a finished task's session with follow-up instructions" gives a specific verb (continue/resume), a specific resource (a finished task's session), and a precondition (finished). It further distinguishes itself from start_task by carrying prior context and from send_message by the fact that queued messages are consumed here rather than merely enqueued.

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 states preconditions clearly (the task must have finished; followup_prompt is required unless queued follow-ups exist; backend/model/reasoning_effort cannot be changed) and explains what is inherited vs overridden. The gap is sibling differentiation: continue_task and resume_workflow appear in the sibling list but are never mentioned, so the agent gets no explicit routing rule against them.

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