Skip to main content
Glama

Start ensemble

start_ensemble

Run multiple agents on one task in a single call, then aggregate their results into one output instead of separate reports.

Instructions

Run several agents (any mix of configs, backends and models) on one task with a single call, and get one aggregated result instead of per-agent reports. Each member is an ordinary spawn under the same config, model-policy and permission checks; all members are validated before any launches. task is shared; a member's instructions add to it. Modes: parallel; specialist (instructions required); competitive (each member in its own worktree); pipeline (each member gets the previous one's successful result; a member's depends_on replaces that link, and on_dependency_failure: continue passes failures on too). isolation: none | worktree (at HEAD) | snapshot (own worktree holding the current working tree, uncommitted changes included; best for reviews). A member may give select instead of config/model, or selection.count adds members: models are picked from the roster by category, objective, routing profiles, measured history and quota, never past model policy; dry_run shows the picks without launching. completion: all | first_valid | quorum | deadline. aggregation (deterministic, no model calls): collect | compare | vote (field/choices) | merge (conflicts reported, never overwritten) | review_findings (built-in findings schema, de-duplicated and ranked with corroboration); aggregation.synthesize opts in to one extra agent's advisory reading. Valid means completed and, when a result schema applies, matching it; a vote or consensus is not proof. profile loads a named roster from .subagents/ensembles.yaml. Background by default: returns at once, child notifications are suppressed, and one ensemble event arrives when it finishes (plus one update if members still running then add results); member approval requests still arrive individually (resolve_approval returns immediately for members). Responses are compact JSON within output.max_chars (default 1600).

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

Input Schema

NameRequiredDescriptionDefault
modeNo
nameNo
taskNo
agentsNo
budgetNo
outputNo
dry_runNoResolve profile and model selection and validate members, without launching
profileNoNamed profile from .subagents/ensembles.yaml (or the user-global file); call fields override it
categoryNoTask category for model selection and outcome history
isolationNoDefault isolation for members that set none
selectionNoAdd `count` automatically selected members
completionNo
aggregationNo
result_schemaNo
allow_duplicateNoStart even if an identical ensemble is still running (default: return that one)
run_in_backgroundNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4.5/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 thoroughly: all members are validated before any launch, background is the default with child notifications suppressed and one completion event, member approval requests still arrive individually, merge never overwrites conflicts, aggregation makes no model calls, and responses are capped at output.max_chars default 1600.

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?

Purpose and the aggregated-result contrast are front-loaded, and most clauses carry distinct information. It is a dense single paragraph, though, so topics like completion, aggregation and backgrounding would scan faster if separated.

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 16-parameter, deeply nested tool with no output schema, the description covers the operationally risky parts an agent needs (mode, isolation, background behavior, aggregation, output cap) well enough to call it correctly. Gaps remain around budget, result_schema, and some completion sub-fields, but they are secondary.

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 38% across 16 params, but the description compensates for the important ones: it explains mode semantics, isolation including uncommitted changes, depends_on replacing the pipeline link, on_dependency_failure continue, `select` vs config, selection.count, dry_run, profile, completion strategies, aggregation strategies with vote/merge/review_findings details, and synthesize. Budget, result_schema, and the quorum/allow_partial/cancel_remaining fields are left to the schema, so it is not exhaustive.

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?

The first sentence states a specific verb+resource+outcome: run several agents of any config/backend/model on one task and get one aggregated result instead of per-agent reports. That scope and the aggregated-result promise distinguish it from spawn_agent and the other siblings without needing their schemas.

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 enumerates the four modes and their selection criteria (specialist requires instructions, competitive uses per-member worktrees, pipeline chains prior results), names the isolation options and singles out snapshot as best for reviews, and explains when to use dry_run. It does not explicitly say when to prefer start_ensemble over spawn_agent or a manual loop, so it stops short of full alternatives guidance.

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