Skip to main content
Glama

Run the configured build

buildtree_build

Run the build command from buildtree.config.json for one platform and record the resulting artifact for upload.

Instructions

Run the build command from buildtree.config.json for one platform and record the artifact for buildtree_upload. Builds take 5 to 30 minutes. Progress notifications keep long-running clients alive, but some clients enforce a short per-tool timeout (Codex defaults to 60 seconds). If yours may time out, run the command yourself in a shell instead (for example npx @buildtree/cli build android) and then call buildtree_upload with the artifact path.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dirYesAbsolute path to the app's root directory (where buildtree.config.json lives).
platformNoPlatform key from the config, e.g. ios or android. Optional when only one is configured.
tailLinesNo
timeoutSecondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does so well: it discloses the 5-30 minute runtime, that progress notifications keep long-running clients alive, the 60-second Codex default timeout risk, and that the run produces an artifact recorded for upload. It does not state authentication requirements or where artifacts are written.

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 core purpose is front-loaded in the first sentence, followed by runtime expectations and the timeout fallback. Three sentences with little waste, though the Codex-specific timeout detail is somewhat lengthier than strictly necessary.

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?

There is no output schema and no annotations, so the description must cover behavior itself; it explains runtime, timeout handling, and the artifact handoff to buildtree_upload. It stops short of describing the return payload or permission prerequisites, which leaves a small gap for a long-running mutation-style tool.

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 coverage is only 50%: dir and platform are documented in the schema, but tailLines and timeoutSeconds have no descriptions in either the schema or the description. The description's 'for one platform' wording marginally reinforces the platform parameter, but it adds no syntax or guidance for the two undocumented numeric parameters.

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 action (run the build command from buildtree.config.json) with a defined scope (one platform) and a downstream effect (record the artifact for buildtree_upload). An agent can distinguish this from sibling tools like buildtree_upload or buildtree_list_builds without opening any schema.

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?

It gives explicit when-to-use context (config-driven build for one platform) and an explicit when-not/alternative path: if the client enforces a short timeout, run `npx @buildtree/cli build android` in a shell and then call buildtree_upload with the artifact path. This names both the failure condition and the substitute workflow.

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