Skip to main content
Glama

moa_tower_spawn

Spawns a tower agent (worker or reviewer) by creating a dedicated git worktree, registering it as the mission owner, and launching the agent in the foreground to execute the mission or review a branch.

Instructions

Two-stage spawn (tower-only, B1 bookkeeping stage): creates the mission's physical git worktree (sibling -worktrees/wt-, never inside the repo), marks the mission active with the agent as owner, and registers the roster entry with a PENDING agent id. The tower then launches the agent with its own Agent tool in the FOREGROUND (never run_in_background=true — a backgrounded child cannot wake the tower when it completes): phase 1 does offline work only (workers: code + local commits; reviewers: read-only verdict draft) with no tower calls, then moa_tower_register(agent_id=…) completes the enrollment and a foreground resume (phase 2) lets the agent submit tower reports under its own identity. Argument combos: worker spawn = {name, kind:"worker", mission_id}; reviewer spawn = {name, kind:"reviewer", review_target} — the matching mission_id / review_target argument is REQUIRED for the chosen kind. Reviewers take review_target (a branch to review) instead of a mission.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYesworkers execute a mission in their worktree; reviewers review one branch
nameYesUnique tower name (e.g. "agent-build", "reviewer-a"); used for inbox addressing and mission ownership
workspaceYesThe absolute repo root (main checkout) this tower namespace anchors to. Required on every tower tool — the server cwd is never used as a fallback.
mission_idNoRequired for workers: the mission id (e.g. "M1") from moa_tower_plan
instructionsNoExtra tower instructions for the agent briefing
review_targetNoRequired for reviewers: the branch to review (e.g. "feat/M2-x")
caller_agent_idYesYour engine agent id. The tower tools resolve it against the boot-registered roster (the booted tower, or a spawned worker/reviewer).
Behavior5/5

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

With no annotations provided, the description fully discloses side effects: creates sibling worktree, marks mission active, registers PENDING roster entry, phases of execution, and foreground requirement. It explains the two-stage process and what phase 1 vs phase 2 does, offering rich behavioral context beyond the schema.

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?

The description is long but each sentence carries necessary detail about the two-stage process, worktree placement, and argument rules. It is structured and front-loaded, though slightly dense with multiple clauses that could be split for readability.

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

Completeness5/5

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

For a complex spawn tool with no output schema, the description covers the full lifecycle: worktree creation, enrollment, launching, phase restrictions, and argument requirements. It leaves little ambiguity about how the tool behaves and what the caller should expect.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Even though schema coverage is 100%, the description adds critical conditional semantics: worker spawn requires mission_id while reviewer spawn requires review_target, and clarifies that reviewers take a branch instead of a mission. This goes beyond the schema's generic property descriptions.

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 description clearly states the tool creates a physical git worktree, marks the mission active, registers roster entry, and launches the agent. The verb 'spawn' plus detailed resource outcomes distinguishes it from siblings like moa_tower_boot or moa_tower_register.

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?

Provides explicit argument combos (worker vs reviewer), required parameters for each kind, and explicit warnings like 'never run_in_background=true'. Also tells when to use moa_tower_register to complete enrollment, giving clear procedural guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Yorha9e/moamcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server