Skip to main content
Glama

Build editable source and ship the result as the new dist

build_and_deploy

Run a build inside a hardened one-shot pod against the site's editable source tree (write source first via write_source_files / list_source_files autoPromote), then atomically swap the build output into the live dist. Reuses the same build pod the GitProject git-deploy flow uses, so the same isolation guarantees apply: no SA token, no DB/Vault reach, NetworkPolicy-restricted egress. The first run writes the chosen buildCommand/outputDir into Site.sourceManifest; subsequent calls can omit those fields.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
siteIdNo
rootPathNoSubdirectory inside the source tree where package.json lives. Empty string = source root. Useful for monorepos.
outputDirNoOverride for which directory to ship as the new dist. If omitted, uses the manifest, then auto-detects (dist > build > out > public).
buildCommandNoOverride for the build script's `npm run build` step (e.g. 'npm run build:prod' or 'pnpm vite build'). If omitted, uses the manifest stored on the site, then falls back to 'npm run build'.
saveManifestNoIf true (default), persists the merged manifest back onto the site so future builds default to these settings. Set false to do a one-off build without changing the saved manifest.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
siteIdYes
buildLogYesCombined orchestrator + builder log; truncated to ~32 KB to fit MCP responses.
manifestYes
outputDirYes
request_idNoServer-assigned request correlation id. Quote it when contacting support.
totalBytesYes
filesDeployedYes

TDQS

A4.6/5.0
Behavior5/5

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

Beyond annotations (readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false), the description adds critical behavioral details: hardened one-shot pod, no SA token, no DB/Vault reach, NetworkPolicy-restricted egress, and atomic swap. These details enhance the agent's understanding of the tool's security and operational characteristics.

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?

The description is concise (4 sentences) with front-loaded action. Each sentence adds value: the process, isolation guarantees, and state persistence. No redundant information.

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?

Given complexity (6 params, no required ones, output schema present), the description covers the core process, statefulness, and security context. It lacks details on output format or error handling, but the presence of an output schema mitigates the need to describe return values. Slight gap: no mention of rollback or failure scenarios.

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?

With 67% schema description coverage, the description adds meaning by explaining that buildCommand and outputDir can be omitted in subsequent calls after the first run persists them into Site.sourceManifest. This clarifies the stateful nature of the tool. However, parameters name and siteId are not elaborated beyond the schema.

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's action: build the editable source tree in a hardened pod and atomically swap into the live dist. It distinguishes from siblings like 'commit_deploy' and 'begin_deploy' by specifying the isolation guarantees and the integration with source writing tools.

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?

The description provides implicit guidance: use after writing source files via write_source_files or list_source_files autoPromote. It mentions that the first run persists settings for subsequent calls. However, it lacks an explicit comparison to alternatives like deploy_from_url or commit_deploy, and does not specify when NOT to use this tool.

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.

TDQS

A4.2/5.0
Disambiguation5/5

Every tool has a clearly distinct purpose, from deployment and file management to domain configuration and analytics. Even similar-sounding tools like add_files and add_file_chunk are well-differentiated by context and use case.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern using snake_case (e.g., add_custom_domain, list_sites, delete_source_file). The naming is predictable and easy to understand.

Tool Count4/5

39 tools is higher than the typical 3-15 range, but each tool serves a necessary function for a comprehensive deployment platform. The count is justified by the broad feature set, though slightly heavy.

Completeness5/5

The tool set covers the full lifecycle of site deployment, management, backup, custom domains, form handling, analytics, and source editing. There are no obvious gaps for the intended functionality.