Skip to main content
Glama

SwitchAbapGitBranch

Switches an abapGit repository to a specified branch, optionally creating that branch in the remote first if it does not exist.

Instructions

Switches an abapGit repository to a branch, creating the branch in the remote first when asked.

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": {
      "repository_key": "<repository_key>",
      "branch": "<branch>",
      "create": "<create>"
    },
    "name": "SwitchAbapGitBranch"
  }
}

Input Schema

NameRequiredDescriptionDefault
branchYesThe branch, as CheckAbapGitExternalRepo lists it (for example refs/heads/main).
createYestrue creates the branch in the remote when it does not exist; false switches to an existing branch only.
repository_keyYesThe key of a linked repository, as ListAbapGitRepos answers it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It usefully discloses that a branch may be created in the remote first, which is a real side effect an agent should know about. However, it says nothing about required permissions, what happens to uncommitted local changes, or failure behavior when the branch does not exist and create=false.

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?

A single front-loaded sentence that communicates the action and its conditional side effect with zero wasted wording.

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

Completeness3/5

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

With a fully documented three-parameter schema and no output schema, the definition is callable as-is. It is still thin for a mutating VCS operation with no annotation coverage: consequences on the working tree and error conditions remain unstated.

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 each parameter documented including the alternate branch format and the create flag semantics. The description echoes the create behavior but adds no format or constraint detail beyond the schema, so the baseline of 3 applies.

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 ('Switches an abapGit repository to a branch') with an added scope detail about remote branch creation. An agent can tell this apart from PullAbapGitRepo or PushAbapGitRepo, though it does not explicitly name those siblings.

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 only implied by the verb: use it when you need to change the checked-out branch. There is no explicit statement of when to prefer this over CheckAbapGitRepo or PullAbapGitRepo, nor any prerequisites such as the repo needing to be linked and clean.

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