Skip to main content
Glama

release

Builds code on GitHub Actions, packages artifacts into a compressed archive, commits it to the builds branch, and publishes a GitHub Release with the package attached — no local download needed.

Instructions

构建并出包:在云端跑构建命令,把产物打成压缩包,提交到目标仓库根目录的 builds 分支,同时在构建器仓库发布 GitHub Release 并附上包。打包在云端完成,产物不需要下载回本机再上传。返回包名、大小、SHA256 与 Release 链接。

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": {
      "repo": "<repo>",
      "artifactPaths": "<artifactPaths>"
    },
    "name": "release"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNo目标仓库的分支/标签/SHA,默认仓库默认分支
repoYes目标仓库 owner/name(产物来源)
waitNo是否等待完成,默认 true
draftNo是否发成草稿,默认 false
setupNo构建前的准备命令
shellNo解释器,默认 bash
runnerNorunner 标签,默认 ubuntu-latest
commandNo构建命令。留空表示产物已存在于仓库中,直接打包。
maxWaitMsNo最长等待毫秒数,默认 30 分钟
releaseTagNoRelease tag,默认同包名
packageNameNo包名(不含扩展名),默认 <仓库名>-<短SHA>
releaseRepoNoRelease 发到哪个仓库,默认构建器仓库。留空即发到 Build-Runner。
commitBranchNo接收产物的分支,默认 builds。用独立分支避免污染你的工作分支。
commitToRepoNo是否同时把包提交到目标仓库根目录,默认 true
releaseNotesNo附加到 Release 说明里的额外内容
releaseTitleNoRelease 标题
workspaceDirNo本地 git 工作区目录。设置后「出包」会先发布该目录的**未提交改动和未推送提交**到快照分支,再从那里构建打包。不设此项时,云端只会签出已推送的代码 —— 若你的修复还没 push,包会基于旧代码构建。
artifactPathsYes必填。要打包的文件或目录,逗号/换行分隔,支持 glob,例如 "app/build/outputs/apk/**"
timeoutMinutesNo构建超时(分钟),默认 30
workspaceBranchNo快照分支名,默认 build-runner(与 run 工具共用)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does well: it discloses the side effects (commit to a builds branch in the target repo, publish a GitHub Release), states that work happens remotely, and lists the return values (package name, size, SHA256, Release link). It stops short of stating permission/auth requirements, whether an existing builds branch or Release tag is overwritten, or what happens on build failure.

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 action is front-loaded in the first clause, followed by the concrete pipeline steps and then the return values, with no filler sentences. It is dense but each sentence contributes a distinct fact. Slightly more compression would be possible, but nothing is redundant.

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 20-parameter tool with no annotations and no output schema, the description covers the pipeline, the remote-execution model, and the return values, which is what an agent most needs before calling. Gaps remain around failure behavior, whether wait=false returns early, and any auth prerequisites for publishing a Release. Those are meaningful but secondary to the covered core.

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 every one of the 20 parameters is already documented in the schema, including the important workspaceDir caveat. The description adds no per-parameter meaning beyond that and mainly restates the overall flow. Baseline 3 applies when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb chain and resource set: run the build in the cloud, zip the artifacts, commit them to the builds branch of the target repo root, and publish a GitHub Release in the builder repo. That is far more concrete than a name/title restatement. It does not, however, name or contrast with the sibling 'run' tool, so an agent must still infer which of the two to pick for a build-only task.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is implied by the described workflow (use this when you want a packaged artifact plus a published Release), and the 'no need to download and re-upload' line clarifies the intended context. There is no explicit when-to-use versus when-not-to-use framing, and no mention of the sibling 'run' or 'prepare_workspace' as alternatives. The workspaceDir caveat is useful context but is parameter guidance, not tool-selection guidance.

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