Skip to main content
Glama

build_publish

Packages and uploads an authored bundle and records a new version under the project. Runs build_validate first; force=true overrides soft errors only. Inputs: project_uuid and the files as {relative_path: content} (files), files_b64gz or files_ref. Returns version_uuid, file_id and download_url.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project_uuid": "<project_uuid>"
    },
    "name": "build_publish"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNoMap of {relative_path: file_content}.
forceNoPublish despite SOFT validation errors (default false). Validation still runs; a wrong/absent schema namespace, a JavaScript syntax error or schemas the platform refuses always block.
patchNoChange only some files of base_version instead of re-sending the whole bundle. {path: new_content} replaces or adds a file, {path: null} deletes it, and {path: {"edits": [{"old": "exact text", "new": "replacement"}]}} replaces text inside it (each old must occur exactly once). Paths are app-root relative ('ui/app.js', no app folder). Everything else is taken from base_version, so the patch must hold every change since base_version, not only the latest fix. The merged bundle goes through the same checks as a full one. Use it for every change after the first publish. Do not combine with files/files_b64gz/files_ref.
app_typeNoDefault 'web'.
validateNoValidate before publish (default true).
files_refNoFor a LARGE bundle that exceeds the model output-token cap: a file_id from build_stage_bundle (upload the gzip(json {path:content}) blob out-of-band, then pass its file_id here). Preferred over files/files_b64gz when the bundle will not fit inline.
files_b64gzNoAlt to files: base64(gzip(JSON {path:content})). Use if a CDN/WAF blocks raw code in the body.
base_versionNoWith patch: the version_uuid of a version THIS project already published (build_publish and build_get_bundle return it; normally the latest). Its files are the starting point.
project_uuidYesProject UUID (from build_list_projects or build_create_project).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / base_version
      Added value: +{
      +  "description": "With patch: the version_uuid of a version THIS project already published (build_publish and build_get_bundle return it; normally the latest). Its files are the starting point.",
      +  "type": "string"
      +}
    • addedInput schema / properties / patch
      Added value: +{
      +  "description": "Change only some files of base_version instead of re-sending the whole bundle. {path: new_content} replaces or adds a file, {path: null} deletes it, and {path: {\"edits\": [{\"old\": \"exact text\", \"new\": \"replacement\"}]}} replaces text inside it (each old must occur exactly once). Paths are app-root relative ('ui/app.js', no app folder). Everything else is taken from base_version, so the patch must hold every change since base_version, not only the latest fix. The merged bundle goes through the same checks as a full one. Use it for every change after the first publish. Do not combine with files/files_b64gz/files_ref.",
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "project_uuid",
      -  "files"
      -]New value: +[
      +  "project_uuid"
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / force / description
      Previous value: -"Publish even if validation has errors (default false)."New value: +"Publish despite SOFT validation errors (default false). Validation still runs; a wrong/absent schema namespace, a JavaScript syntax error or schemas the platform refuses always block."
  4. Changed1 schema field changed
    • addedInput schema / properties / project_uuid / description
      Added value: +"Project UUID (from build_list_projects or build_create_project)."
  5. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only flag it as a non-readonly, non-idempotent, non-destructive mutation; the description adds the material behavior that validation gates the publish and that force cannot bypass hard failures (missing schema namespace, JS syntax errors, platform-rejected schemas). Since no output schema exists, naming the returned version_uuid, file_id and download_url is genuinely additive. It does not say whether the version becomes visible/deployed immediately, which is the one behavioral question left open.

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?

Three sentences, front-loaded with purpose, then the validation/force rule, then the input and return summary. No filler or repetition of the title.

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?

For a nine-parameter mutating tool with nested objects and no output schema, the description covers the essential wrap-up of inputs and return values, with the heavy detail delegated to a fully documented schema. It omits any mention of the patch/base_version incremental workflow at the description level, which is the tool's main usage pattern after the first publish.

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 description coverage is 100%, so the schema already explains every parameter, including patch semantics, base_version and the three file-passing modes. The description only restates the input grouping and that patch must not be combined with the other file parameters. Baseline 3 is appropriate; there is little added meaning 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?

States a specific compound verb chain (packages, uploads, records a new version) plus the resource scope (under the project), and explicitly relates itself to build_validate. An agent can distinguish this mutating publish tool from build_validate/build_deploy 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a clear precondition (runs build_validate first) and the force=true escape hatch with its limit ('soft errors only'). It also frames files, files_b64gz and files_ref as alternative input modes. It stops short of naming when to prefer build_deploy or build_go_live over publishing, so no explicit exclusion set is present.

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.