Skip to main content
Glama

dispatch_subworker

Read-only

Spawn a focused child agent (subworker) for a narrowly-scoped task. Use this ONLY when (a) the work is parallelisable across siblings, (b) it benefits from a narrow tool list that keeps context small, or (c) you need a different model (e.g. planner_opus for Opus-level planning, registry_prober for cheap Haiku probes). Default execution stays single-loop in the parent agent; reach for subworkers when one of those three conditions clearly applies. Each subworker gets its own iteration budget (default 20) and its own narrow tool list keyed by worker_type. Workers do NOT see each other's transcripts unless share_context_with names a sibling explicitly.

Input Schema

NameRequiredDescriptionDefault
taskYesConcise task brief for the subworker. Include the specific scope (cluster, namespace, resource names) and the expected output shape.
scopeNoOptional scope hints to bias the subworker's search: namespace, stack_name, draft_id.
worker_typeYesWhich subworker type to spawn. Each type has a pre-baked system prompt and narrow tool list: - cluster_explorer: read-only investigation - repo_explorer: read-only GitHub repository investigation (files, code search, CI runs) - manifest_author: draft/edit one manifest or Helm release - policy_auditor: RBAC / NetworkPolicy / OPA / Kyverno scan - incident_diagnoser: crashloop / pending / scheduling root cause - registry_prober: chart-existence and image-manifest probes (Haiku) - planner_opus: decompose a complex multi-stage turn into a todo list (Opus)
max_iterationsNoPer-subworker iteration budget (default 20, max 40).
requires_criticNoWhen true, the subworker's final output is run through the Critic regardless of the default gating rules.
share_context_withNoOptional list of sibling subworker_ids whose transcripts this subworker should be allowed to read. Default is isolation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only supply readOnlyHint=true, so the description earns credit for disclosing transcript isolation semantics and the default iteration budget. However, the iteration default (20) and share_context_with isolation are already restated in the schema descriptions, so the incremental behavioral value is partly duplicative. No contradiction: dispatching a worker is itself a control operation, though a spawned manifest_author can indirectly mutate state.

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?

Front-loaded with the core action, then the conditional guidance, then behavioral facts about budget and isolation. Every sentence carries distinct weight; nothing is filler.

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 6-param tool with nested scope and no output schema, the description covers the decision logic and worker behavior well. It stops short of describing what dispatch returns (an id? a handle?) or how to collect a subworker's result, which leaves a small gap.

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 description coverage is 100% and the enum already lists and explains every worker_type. The description's mention of planner_opus and registry_prober is consistent with the schema but adds no syntax or constraint detail beyond it, so the baseline 3 is appropriate.

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?

States a specific verb (spawn) and resource (a focused child agent/subworker) with a clear scoping qualifier (narrowly-scoped task). The concept is distinct from anything in the sibling list, so an agent can tell this is the delegation mechanism rather than a direct action tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly enumerates three conditions for use (parallelisable work, narrow tool list, different model) and states the default is single-loop execution in the parent, with 'reach for subworkers when one of those three conditions clearly applies.' This is textbook when-to-use / when-not guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources