Skip to main content
Glama

OpenFactory

publish_internal_repository

Publish this repository's pending work to its approved main branch.

An external MCP client has no shell here: its writes land on work inside the bare repository, and this fast-forwards main onto that tip with one atomic compare-and-swap. If it pushed some other branch over HTTPS instead, name that branch. A container agent instead has a real checkout, and for it this stays the supported replacement for git push: it accepts only a DB-authorized worktree/target pair, requires a clean checkout and a fast-forward commit, disables client hooks and external Git protocols, and never returns the host repository path.

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": {
      "name": "<name>"
    },
    "name": "publish_internal_repository"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesAttached repository id, checkout name, or unambiguous label returned by list_internal_repositories.
branchNoBare branch name to publish -- the branch you pushed. Omit for 'work', which is where file writes over MCP commit. Not a refname and not a path.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

No annotations exist, so the description carries the full burden and does so: atomic compare-and-swap semantics, fast-forward-only requirement, clean checkout precondition, DB-authorized worktree/target pair, hooks and external Git protocols disabled, and no host repository path in the response. That is exactly the behavioral context an agent needs before invoking a mutation.

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?

Front-loads the core action in the first sentence and then differentiates the two client modes. The middle transition ('If it pushed some other branch over HTTPS instead, name that branch.') is slightly disjointed from the following sentence about container agents, but overall there is little wasted wording.

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?

Covers the preconditions (clean checkout, fast-forward, authorized worktree/target), the two calling contexts, and branch selection, and an output schema exists so return-value details are not needed. Nothing an agent must know to invoke this 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?

Schema description coverage is 100% and already documents that `name` is an id/checkout name/label and that `branch` defaults to 'work' and is not a refname or path. The description adds only the scenario explaining when to set `branch` (pushed over HTTPS), so it is a useful but marginal supplement to a self-sufficient 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 verb and resource ('Publish this repository's pending work to its approved main branch') and immediately frames it as the replacement for `git push`, which distinguishes it from the write/attach siblings. An agent can tell what the operation is and which repository concept it targets without opening the 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 clear when-to-use context for both client shapes: an external MCP client uses it to fast-forward `main` onto the `work` tip, and a container agent uses it as the sanctioned substitute for `git push`. It also tells the agent to name a different branch if it pushed one over HTTPS. No sibling tool is named as an alternative, so it falls short of a 5.

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.