Skip to main content
Glama

Create a version

create_branch

Create a named project version from sourceBranch. Set switchToBranch explicitly. Returns its version id. hidden true makes a version for one option of a question to the person: write the option on it with the writing tools' branchId, draw it with the previews' branchId, and show those previews in ask. The editor never lists or opens a hidden version, so the person keeps watching their film while you prepare the options; merge_branch puts the option they pick into their version.

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": {
      "branchName": "<branchName>",
      "sourceBranch": "<sourceBranch>",
      "switchToBranch": "<switchToBranch>",
      "hidden": "<hidden>",
      "projectId": "<projectId>"
    },
    "name": "create_branch"
  }
}

Input Schema

NameRequiredDescriptionDefault
hiddenYestrue: a hidden version for one option of a question to the person, which is never opened (switchToBranch must be false). null or false: a version the person sees in the editor.
projectIdYesThe project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs.
branchNameYes
sourceBranchYes
switchToBranchYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / hidden
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "true: a hidden version for one option of a question to the person, which is never opened (switchToBranch must be false). null or false: a version the person sees in the editor."
      +}
    • changedInput schema / required
      Previous value: -[
      -  "branchName",
      -  "sourceBranch",
      -  "switchToBranch",
      -  "projectId"
      -]New value: +[
      +  "branchName",
      +  "sourceBranch",
      +  "switchToBranch",
      +  "hidden",
      +  "projectId"
      +]
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent mutation, so the description's job is to add context and it does: a hidden version is never listed or opened in the editor, the person keeps watching their film while options are prepared, and the call returns a version id. It does not cover failure modes (e.g. duplicate branchName) or what switchToBranch=true actually switches, leaving a modest gap.

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?

The core action and return value are front-loaded in the first three short sentences, and the longer hidden-version workflow follows as elaboration that earns its length. Some phrasing is convoluted ('makes a version for one option of a question to the person'), which costs a point on readability.

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

Completeness5/5

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

For a five-parameter mutation with no output schema, the definition covers the action, the returned identifier, the hidden/visible distinction and its editor consequences, and the follow-up tool for committing an option. That is enough for an agent to call it correctly without further exploration.

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 only 40%, with branchName, sourceBranch and switchToBranch undocumented in the schema, and the description compensates only partly: sourceBranch is framed as the source and 'named' implies branchName is the version name, but switchToBranch is only asserted ('Set switchToBranch explicitly') without saying what it switches. The hidden constraint (switchToBranch must be false) is duplicated from the schema rather than extended.

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?

States a specific verb and resource ('Create a named project version from sourceBranch') and immediately resolves the name/title mismatch by establishing that a 'version' is what this creates. It also states the return value ('Returns its version id') and names merge_branch as the counterpart that folds a version back in, so an agent can place it among siblings.

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?

Gives a concrete when-to-use scenario: hidden=true for staging one option of a question to the person, with the downstream path spelled out (write with the writing tools' branchId, draw with the previews' branchId, show in ask, then merge_branch the chosen option). It does not explicitly contrast with switch_branch or plain project creation, so an agent must infer when a normal visible version is preferable.

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.