Skip to main content
Glama

layerfs_branch_fork

Creates a writable branch from main, any branch, commit, or layer, enabling isolated work or rewinding to earlier states without rewriting history.

Instructions

Fork a writable branch from main, any branch, commit or layer. Forking an earlier ref provides rewind without rewriting history.

Input Schema

NameRequiredDescriptionDefault
nameYes
fromRefNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare this is a non-readOnly, non-destructive, non-idempotent, open-world operation. The description adds meaningful context that the branch is writable and that forking an earlier ref acts as a rewind without rewriting history. It does not explain behavior on name collisions, required permissions, or what is created beyond the branch itself.

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?

The definition is two tight sentences, front-loaded with the action and scope. Each sentence carries useful information: the first establishes the operation, and the second explains a key behavioral consequence.

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?

For a simple two-parameter mutation tool with no output schema, the description covers the high-level operation and rewind semantics well. However, with zero schema description coverage, it leaves both parameters underspecified and omits practical behavior such as name collisions or branch creation side effects.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It implicitly indicates that a fork source can be 'main, any branch, commit or layer,' but it never maps this to the 'fromRef' parameter, does not explain the required 'name' parameter, and gives no format or validation details for either string parameter.

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 uses a precise verb and resource: 'Fork a writable branch.' It clearly conveys that the tool creates a branch from an existing ref, distinguishing it from siblings like branch_merge or branch_publish. It stops short of explicitly naming an alternative, but the purpose is unambiguous.

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?

'Forking an earlier ref provides rewind without rewriting history' gives an implied use case, but there is no explicit when-to-use versus alternatives, no when-not guidance, and no prerequisites such as permissions or existing-name handling.

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