Skip to main content
Glama

branch_create

Create or switch to a branch to explore an approach, using sessionId or taskId for task-scoped branching.

Instructions

Create/switch to a branch for exploring an approach. Pass sessionId/taskId for task-scoped branching.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "branch_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNo
taskIdNo
branchIdNo
sessionIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden for a state-creating tool. It does not say what happens if the branch already exists, whether creation is idempotent, what persistence or side effects occur, or what is returned.

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?

Two compact sentences with the core action front-loaded and the scoping hint second; nothing is wasted. The only structural weakness is the compound "Create/switch" framing, which mixes two operations into one clause.

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

Completeness2/5

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

For a four-parameter, zero-annotation, no-output-schema mutation tool, the description is thin. Two of four parameters are undocumented and no lifecycle behavior (existing branch, cleanup, relationship to branch_close) is described.

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 0% across four properties, so the description must compensate and only partly does: it explains that sessionId/taskId scope branching to a task, but leaves reason and branchId completely undefined. Half the parameters remain opaque in both schema and prose.

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 concrete verb and resource: create a branch 'for exploring an approach'. The stated purpose is legible without opening the schema, but the "Create/switch to" phrasing blurs the boundary with the sibling branch_switch, so an agent cannot tell from the description alone whether switching existing branches belongs here.

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?

Adds one real conditional: pass sessionId/taskId for task-scoped branching, which tells the agent when those parameters matter. It gives no guidance on when to use this versus branch_switch, and no exclusions or prerequisites.

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