Skip to main content
Glama

change_git_branch

Switch the Git branch deployed by a RunCloud web application by specifying the server, application, repository, and new branch. Use it to update which branch an app tracks.

Instructions

Change git branch for a web application

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": {
      "serverId": "<serverId>",
      "webappId": "<webappId>",
      "gitId": "<gitId>",
      "branch": "<branch>"
    },
    "name": "change_git_branch"
  }
}

Input Schema

NameRequiredDescriptionDefault
gitIdYesThe ID of the git repository
branchYesNew branch name
serverIdYesThe ID of the server
webappIdYesThe ID of the web application

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden for a mutation tool. It says nothing about required permissions, whether the change triggers a redeploy or affects the working tree, whether it is reversible, or what happens if the branch does not exist.

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?

A single front-loaded sentence with no filler or redundancy. Its brevity is the only issue, and that is captured under other dimensions rather than being wasted wording.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter mutation with no annotations and no output schema, the description leaves key behavior undisclosed: side effects, failure modes, and confirmation of what 'change' alters. The schema covers parameter identity but not the consequences of the call.

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%, with all four parameters (serverId, webappId, gitId, branch) documented in the schema itself. The description adds no meaning beyond that, so the baseline of 3 is appropriate.

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?

States a specific verb and resource ('change git branch') plus the target scope ('for a web application'), which is enough to separate it from siblings like clone_git_repository or deploy_git. It stops short of differentiating from ambiguity in what 'change branch' means (updating the deployment target vs. checking out a branch on disk).

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus deploy_git, get_git_info, or update_git_deployment_script, and no preconditions such as whether the branch must already exist. The agent must infer the usage context entirely.

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

Deploy Server

Other Tools