Skip to main content
Glama

build_start

Destructive

Starts a server-owned build run on a remote host, acquires the host lease, executes the SSH command, and returns a run ID immediately for status tracking.

Instructions

Start a server-owned build run on a host: acquires the host lease, runs the command over SSH and returns a run id immediately. Do NOT poll with sleeps — use build_wait(run_id) or build_status. The host lease is released automatically when the run reaches a terminal status. The lease's phase is the run kind (e.g. 'compile'), so a run whose compile hangs while its heartbeat stays fresh reads STUCK on list_hosts — the server, not the client, decides that.

Input Schema

NameRequiredDescriptionDefault
kindNoLabel for the run, e.g. 'build', 'resourcecompiler'build
notesNo
commandYesShell command to run on the host over SSH (detaching/hiding is its job)
host_idYesHost id from list_hosts, e.g. 'build-pc'
log_pathNoServer-local path for the captured log

Output Schema

NameRequiredDescriptionDefault
idYes
kindNobuild
lockNoThe host lock this run holds (owner build:<id>), when it is still its own
notesNo
ownerYesHost-lock owner holding this run's lease, 'build:<id>'
handleNoProcess handle (pid) when known
statusYes
commandYes
host_idYes
summaryNoParsed counts from the log summary line
web_urlNoAbsolute URL of this run's page in the web UI (Activity page)
log_pathNo
warningsNoMaterial-guard findings; None when the log was clean or unscanned
artifactsNo
exit_codeNo
created_atYes
updated_atYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and openWorldHint=true; the description adds genuinely non-obvious behavior: the call is asynchronous (returns a run id immediately), the host lease is server-owned and auto-released at terminal status, and lease phase equals the run `kind`. It omits any note on failure modes of the SSH command itself or permission requirements, keeping it short of a 5.

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?

What the tool does is front-loaded in the first clause, followed by operational guidance and then lease semantics. The STUCK/list_hosts passage is dense and slightly tangential to invoking this tool, though it does explain how to interpret the resulting run's state.

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?

Output schema exists, so return values needn't be explained, and the description still states that a run id comes back immediately. Async behavior, lease lifecycle, and the correct follow-up call are all covered, which is everything an agent needs to invoke this 5-parameter, 2-required 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 80%, so the baseline is 3, but the description adds real meaning to `kind`: its value becomes the lease phase shown on list_hosts, which is not stated in the schema. `notes` and `log_path` are left entirely to the schema, so this is additive but incomplete.

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 and resource ("Start a server-owned build run on a host") plus the mechanism (acquires lease, runs command over SSH, returns run id immediately). This clearly distinguishes it from build_status, build_wait, build_cancel, and build_list in the sibling set.

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?

Explicitly routes the agent away from sleep-polling toward build_wait(run_id) or build_status, which is the key decision an agent faces after calling this. It does not, however, contrast build_start with adjacent launchers like test_start or deploy_push, so the sibling-exclusion guidance is partial rather than complete.

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