Skip to main content
Glama

moa_tower_ci

Run CI in the mission branch worktree, returning immediately with a run_id; await the CI record before merging.

Instructions

Run the configured CI command (boot ci_command) in the mission branch's worktree (tower-only). M1 async: the MCP bridge forwards the request to the persistent Bus owner, which spawns CI and the tool returns IMMEDIATELY with {run_id, started_at, status:"started"}. The ci/ record that lands when the process exits {commit (tip at run time), exitCode, dirty, logRef, ranAt, runId} is the SOURCE OF TRUTH; await it with moa_tower_wait(wait={kind:"ci", branch}) before merging. Per-worktree serialization and completion writes live in the Bus owner, so closing this MCP session cannot cancel the run. A dirty worktree is intercepted BEFORE execution: the run errors asking for a commit first and records a dirty:true failed result. The run log is truncated (last 200 lines, ≤64KB) and referenced by logRef. When a ci_command is configured, the merge gate requires a green (exitCode 0, clean, current tip) record before merging.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
branchYesThe mission branch to run CI against (e.g. "feat/M1-x")
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.
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?

The description richly discloses async behavior (immediate return with run_id/started_at/status), the source-of-truth record format, serialization and cancellation semantics (closing session cannot cancel), dirty-worktree interception, log truncation, and merge-gate requirements. With no annotations provided, the description fully carries the burden and exceeds expectations.

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?

Though long, every sentence adds unique, non-redundant information. The description is front-loaded with the core purpose and then systematically covers async behavior, dirty handling, log limits, and merge implications. No filler or repetition exists.

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?

Despite no output schema and no annotations, the description fully covers the immediate return value, the eventual record structure (commit, exitCode, dirty, logRef, ranAt, runId), how to await it, and the merge gate. It gives the agent everything needed to invoke and react to the tool correctly.

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 100%, so baseline is 3. The description adds useful param context beyond the schema, such as the branch being a 'mission branch' and the resulting 'ci/<branchSlug>' record, and confirms workspace is required on every tower tool. This enhances understanding of how parameters are used.

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 states a specific verb and resource: 'Run the configured CI command (boot ci_command) in the mission branch's worktree (tower-only).' It clearly differentiates from sibling tools like moa_tower_wait and moa_tower_merge by focusing on the CI execution action and its tower-only scope.

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?

Explicit guidance is provided: 'await it with moa_tower_wait(wait={kind:"ci", branch}) before merging' names the alternative tool and sequence. It also specifies the prerequisite ('When a ci_command is configured') and a behavioral constraint (dirty worktree triggers an error), giving clear when-to-use and when-not-to-use signals.

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