Skip to main content
Glama

Continue a worker

resume_worker

Continue an existing worker session with a new instruction in its Git worktree, preserving history so you can address review findings before landing; optionally rebase onto a newer commit first.

Instructions

Continue the same worker session with a new instruction, in its worktree; the thread keeps its history. Use it to fix what review found before landing. rebase_onto first moves the worktree onto a newer commit and refuses on conflict. A worktree removed by cleanup is restored from the worker's branch.

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>",
      "prompt": "<prompt>"
    },
    "name": "resume_worker"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYes
task_idYes
acceptanceNoReplaces the stored acceptance commands; an empty list clears them
rebase_ontoNoCommit or branch to rebase the worktree onto before continuing
context_filesNoReplaces the worker's context files

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.1

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations supplied, the description carries the burden and does meaningful work: it discloses that history is retained, that rebase_onto runs first and refuses on conflict, and that a cleanup-removed worktree is restored from the worker's branch. These are non-obvious state and failure behaviors an agent could not infer. It omits whether the call blocks/returns immediately and what permissions or limits apply.

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?

Four short sentences, front-loaded with the core action and then narrowing to guidance and edge cases; nothing is padded. Slight redundancy between "continue the same worker session" and "thread keeps its history" but it reinforces rather than wastes.

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 mutation tool with no annotations and no output schema, the definition covers the essential behavior: session continuity, worktree context, rebase ordering, conflict handling, and recovery from cleanup. Missing only execution semantics (blocking vs async, response shape), which a caller would likely want but which does not block correct invocation.

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 60%, so most parameters are already documented in the schema. The description adds genuine meaning only for rebase_onto (ordering and conflict refusal), while acceptance and context_files replacement semantics live solely in the schema and prompt/task_id are not elaborated at all. Baseline 3 is appropriate given the partial coverage.

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 action and object: continue the same worker session with a new instruction inside its worktree, preserving thread history. That implicitly separates it from create_worker (new session) and gives the agent a clear picture of the operation. It stops short of naming a sibling explicitly, so it is clear but not fully differentiated by comparison.

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?

"Use it to fix what review found before landing" gives an explicit situation for choosing this tool over starting fresh, and the rebase_onto sentence clarifies an ordering prerequisite. No explicit when-not or named alternative (e.g. ask_worker vs resume_worker) is offered, which keeps it below a 5.

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