Skip to main content
Glama

Dispatch a worker

create_worker

Starts an isolated worker on one verifiable task in its own Git worktree and branch without committing or pushing, enabling parallel work with controlled write paths and supervisor-run acceptance checks.

Instructions

Start a worker on one verifiable piece of work in its own git worktree and branch. It never commits or pushes. task is the whole brief: background, spec, write set, verify command, output format. followup_of continues a finished worker from its branch with its settings. runner: codex (default) or claude.

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": "<task>"
    },
    "name": "create_worker"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoRepository. Required unless followup_of
goalNo{objective, token_budget}. Required unless followup_of
taskYes
modelNo
titleNo
limitsNo{max_run_ms, max_total_ms}
runnerNo
contextNo{files: [{path}] abs paths to read, contracts: [binding statements]}
sandboxNo{mode: read-only | workspace-write (default) | danger-full-access, network_access, writable_roots: [abs dirs], allowed_commands: [commands; trailing * = prefix], forbid: [paths or commands]}
sessionNo{id, title, note}: one id per batch
workspaceNo{kind: git_worktree (default) | read_only_in_place | scratch | in_place_write, base_ref, setup: {links: [{path, source}], submodules, commands} run first, in_place_authorization, external_outputs: [{path}]}
acceptanceNo{commands, timeout_ms}: shell commands the supervisor runs in the worktree after the worker exits; all must exit 0
depends_onNoTasks that must land first
followup_ofNo
owned_pathsNoPaths it may change; overlap with an active worker is refused. Required unless followup_of
preflight_idNoPassed preflight id
reasoning_effortNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry the whole behavioral load, and it does disclose the most important traits: isolated worktree/branch and that it "never commits or pushes," which tells the agent landing is a separate step. It omits whether the call is asynchronous and how the agent should later collect results, plus any permission, cost, or failure semantics for a 17-parameter mutation.

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 sentences, front-loaded with purpose and isolation before parameter notes; nothing is filler and the no-commit/no-push constraint is placed early. The "task is the whole brief" clause is dense but earns its place by defining the brief's expected shape.

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

Completeness3/5

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

For a 17-parameter tool with nested objects and no annotations, the description covers purpose, isolation, and three parameters, leaving the rest to schema descriptions. The notable hole is that no output schema exists, yet the description never says what a successful dispatch returns (a worker id to poll?) or how it relates to wait_workers/poll_workers.

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 coverage is only 65%, yet the description adds real meaning to the three most decision-critical parameters: task is elaborated into its expected contents (background, spec, write set, verify command, output format), followup_of is explained as continuing a finished worker with its settings, and runner's default (codex) and alternative (claude) are named where the schema gives no enum.

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?

"Start a worker on one verifiable piece of work in its own git worktree and branch" gives a concrete verb and resource plus the isolation model, so the agent knows exactly what gets created. It falls short of 5 because it never names the sibling it should be chosen over (resume_worker, preflight_worker) even though the concept of followup vs. fresh start is right there.

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?

It implicitly contrasts a fresh start with "followup_of continues a finished worker from its branch," which is useful routing. But there is no explicit when-to-use guidance relative to resume_worker, preflight_worker (despite the preflight_id parameter), or ask_worker, and no stated preconditions such as needing an owned_paths write set before dispatch.

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