Skip to main content
Glama

github_mcp.publish_branch

Destructive

Publishes a verified job's task branch to its configured remote after local push approval and policy checks, validating final tree and refusing divergence or protected branches.

Instructions

Publish a verified job's task branch to its configured remote after applicable local push approval, policy and checks. Revalidates final tree and remote expectations; refuses divergence and protected branches. Returns job report; changes remote state and does not create a PR.

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": {
      "job_id": "<job_id>"
    },
    "name": "github_mcp.publish_branch"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesExisting verified job identifier with applicable push approval.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
messageNo
error_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.2
    • addedInput schema / properties / job_id / description
      Added value: +"Existing verified job identifier with applicable push approval."
  2. First observedv1.0.1

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructive/openWorld/non-readOnly; the description goes further by disclosing that remote state is mutated, that the final tree and remote expectations are revalidated, which branches are refused, and that a job report is returned rather than a PR. That is exactly the beyond-annotation context a destructive remote push needs.

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 tight sentences: action and scope first, safeguards and refusal conditions second, return value and side effects last. No filler or restated title.

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?

For a one-parameter destructive push tool with an output schema present, the description covers preconditions, mutation of remote state, refusal conditions, and the exception that no PR is created. Nothing an agent needs to invoke it safely is missing.

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?

Only one parameter and the schema already covers it at 100%, including the 'verified job with applicable push approval' constraint. The description's mention of a 'verified job' restates the schema rather than adding new meaning, so baseline 3 applies.

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 ('Publish a verified job's task branch to its configured remote') and explicitly contrasts the outcome with the nearest sibling expectation by noting it 'does not create a PR', routing the agent to create_pull_request for that need.

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 clear preconditions — the job must be verified and an applicable local push approval, policy, and checks must be satisfied — plus explicit negative cases (refuses divergence and protected branches). It does not name a fallback tool for those refusal cases, so it stops short of full when/when-not/alternative coverage.

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