Skip to main content
Glama

Create branch

create_branch

Create one branch of a file: a copy to try a big change without touching the main file. It is edited like any file (its own fileId); the user reviews it and merges it back from the app (Branch menu → Review & merge), which applies only what the branch changed. Branches are listed under their file; update_branch brings the main file's later changes in, and request_review tells the person the branch is ready.

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

Input Schema

NameRequiredDescriptionDefault
nameYesWhat the branch tries: "Dark header".
fileIdYesThe main file (not a branch).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false), the description adds genuinely useful behavior: the branch has its own fileId and is edited like any file, and merging is a user action performed in the app via Branch menu → Review & merge, applying only the branch's changes. The main remaining gap is that it never states what the call returns (presumably the new branch fileId) or any permission/limit constraints on branch creation.

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 tight paragraph that front-loads the core definition before the mechanics and the sibling routing. The parenthetical UI path is slightly verbose but earns its place by telling the agent the merge cannot be done through tools.

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 two-parameter creation tool with no output schema, the description covers the concept, the identity model, and the merge lifecycle well enough to call it correctly. The one meaningful omission is the return value — the agent is told the branch has its own fileId but not that creation yields it.

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% and the schema already explains both fields, including the important caveat that fileId must be the main file, not a branch. The description reinforces the conceptual model (the branch is a copy with its own fileId) but adds no naming conventions, length limits, or other semantics beyond the 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?

The description opens with a specific verb and resource ("Create one branch of a file") and then defines the domain concept in plain terms: a copy for trying a big change without touching the main file. It also distinguishes the tool from update_branch and request_review by naming what those siblings do instead, so an agent can pick the right one without opening schemas.

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 gives a clear selection context (use this to try a big change without touching the main file) and routes follow-on actions to update_branch and request_review. It stops short of explicit exclusions, such as when a small edit should go straight to the original file rather than through a branch.

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.