Skip to main content
Glama

dispatch_batch

Runs multiple independent coding subtasks concurrently in isolated Git worktrees with bounded concurrency, pre-flight scope overlap warnings, and acceptance criteria to parallelize disjoint modules or tests.

Instructions

Dispatch multiple independent subtasks concurrently across separate isolated Git worktrees (bounded concurrency pool + pre-flight scope overlap warnings). Ideal for parallelizing disjoint modules or tests.

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": {
      "repoPath": "<repoPath>",
      "tasks": "<tasks>"
    },
    "name": "dispatch_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
tasksYes1 to 5 independent subtasks with disjoint allowedPaths.
repoPathYesAbsolute path to the target Git repository.
defaultModelNoDefault model override for subtasks.
defaultWorkerNoDefault worker adapter for subtasks.
maxConcurrencyNoMax workers running concurrently (default: 3).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

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 behavioral burden, and it does add real detail: bounded concurrency pool, pre-flight scope overlap warnings, and isolated worktrees per subtask. It does not disclose what side effects occur (worktree creation, task IDs returned), failure handling, or permissions/prerequisites.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

Two sentences, front-loaded with the core action and mechanism, followed by the ideal use case. The parenthetical is dense but every element (concurrency bound, warning behavior) earns its place.

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 multi-task orchestrator with a nested task schema and no output schema, the description covers purpose, mechanism, and a use case but says nothing about what is returned (task IDs, statuses) or what happens on partial failure. Adequate but leaves an agent guessing at the response shape.

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 100%, so the schema already documents all five parameters including the nested task fields. The description reinforces the disjoint-path constraint through 'pre-flight scope overlap warnings' but adds no syntax or format guidance beyond the schema.

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 verb and resource ('Dispatch multiple independent subtasks'), plus the mechanism (isolated Git worktrees, bounded concurrency). The 'multiple' framing implicitly distinguishes it from the single-task sibling dispatch_task, though it never names that alternative.

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?

'Ideal for parallelizing disjoint modules or tests' gives a clear use case, and 'independent' implies dependent tasks are out of scope. However, it offers no explicit when-not guidance and never points to dispatch_task for single-task work or explains how to handle overlapping scopes.

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