Skip to main content
Glama

create_branch

Creates a new GitHub branch from a specified commit SHA so agents can isolate changes or start work from a chosen point.

Instructions

Create a new branch

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>",
      "sha": "<sha>"
    },
    "name": "create_branch"
  }
}

Input Schema

NameRequiredDescriptionDefault
shaYesSHA of the commit to branch from
repoYesRepository name
ownerYesRepository owner
branchYesNew branch name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

C2.4/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 behavioral burden, yet it only implies a write operation. It says nothing about permission requirements, behavior when the branch name already exists, or what the result contains (e.g., ref, URL, SHA).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and free of filler, but its brevity stems from under-specification rather than disciplined editing. There is no structure to convey usage or constraints.

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?

This is a four-parameter, all-required mutation tool with no annotations and no output schema, so the description should explain failure modes and return behavior. It does neither, leaving the definition adequate only because the schema itself fully documents the parameters.

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%, so all four parameters (owner, repo, branch, sha) are already documented in the schema. The description contributes no additional meaning such as SHA format requirements or naming rules, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Create a new branch" is a direct snake_case expansion of the tool name create_branch; it adds no scope, target system, or distinguishing detail. A reader learns nothing beyond what the name already states.

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?

No when-to-use, when-not-to-use, or prerequisite guidance is given. It does not say whether the branch must not already exist, nor how this relates to delete_branch or list_branches.

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