Skip to main content
Glama
GitHub MCP Server

GitHub MCP Server

by rominababiel

create_branch

Create a new Git branch from a specified source or the default branch, preparing changes for a pull request before committing.

Instructions

Crea una rama nueva a partir de otra existente, o de la rama por defecto si no se indica. Usar antes de create_commit cuando el cambio debe ir por un pull request.

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": {
      "owner": "<owner>",
      "repo": "<repo>",
      "branch": "<branch>"
    },
    "name": "create_branch"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesNombre de un repositorio existente, sin el dueño. Ejemplo: mi-proyecto.
ownerYesUsuario u organización dueña del repositorio. Si no se conoce, obtenerla con list_repositories o health_check.
branchYesNombre de la rama nueva. Ejemplo: feat/login.
fromBranchNoRama de origen. Omitir para partir de la rama por defecto.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

The annotations only declare readOnlyHint=false, and the description is consistent with a mutating operation. It adds the default-source behavior, but says nothing about what happens if the branch name already exists, whether the base branch must exist, or what permissions are required — gaps the single annotation cannot cover.

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?

Two tight sentences: the operation and its fallback come first, then the workflow placement. Nothing is redundant or buried.

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 four-parameter creation tool with fully documented parameters and no output schema, the description covers what it does, where the source branch comes from, and its place in the commit/PR workflow. Only error and permission behavior are absent, which is a minor gap at this complexity.

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 coverage is 100%, so the schema already documents owner, repo, branch, and the fromBranch default. The description's mention of the default branch restates rather than extends the schema, so baseline 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?

The description gives a specific verb and resource ('Crea una rama nueva') plus the scope rule ('a partir de otra existente, o de la rama por defecto'). It also positions the tool relative to create_commit, though it does not explicitly rule out any other sibling.

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?

It states a concrete condition for use: call this before create_commit when the change should go through a pull request. There is no explicit when-not guidance (e.g., what to do for direct commits), but the positive routing advice is clear and actionable.

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