Skip to main content
Glama
valentil

FeatureBoard MCP Server

by valentil

Create a git worktree for a ticket

create_worktree
Idempotent

Create an isolated git worktree for a ticket, enabling parallel work on multiple tickets by providing separate directories and branches outside the shared repository.

Instructions

Create (or reuse) an isolated git worktree for a ticket so several tickets can be worked in PARALLEL - each sub-agent edits its own checked-out directory on branch ticket/, sharing one .git object store, never the shared repo working tree. Created at /. IMPORTANT SYNC CAVEAT: worktrees are placed OUTSIDE the code repo by default (sibling directory -worktrees/), configurable via the project config key worktreeDir - under Cowork, a worktree created INSIDE a synced repo mount can corrupt git internals or fail to sync, so this tool REFUSES a worktreeDir inside the repo and never auto-creates worktrees in the repo itself. Reuses an existing worktree at the path; creates branch ticket/ off baseRef (or current HEAD) when absent. Returns the worktree path, branch, and merge-back guidance. Errors clearly when the project has no codeLocation, the path is not a git repo, git is too old (< 2.5), or a non-worktree directory squats the path.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ticketYes
baseRefNoBranch/ref to base the new ticket branch on (default: repo HEAD).
projectYes
Behavior5/5

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

Annotations indicate idempotence and non-destructiveness. Description adds crucial details: refusal to create inside repo, reuse behavior, error conditions, and return items. No contradiction with annotations.

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 paragraph that efficiently communicates purpose, caveat, behavior, and error conditions. Slightly long but every sentence is informative. Could be split for 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?

No output schema, but description specifies return items (path, branch, guidance). Covers error conditions and corner cases (non-git path, old git, directory squatting). Complete for a complex tool.

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

Parameters4/5

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

Schema covers 33% of parameters with descriptions (only baseRef). Description compensates by explaining defaults (baseRef from HEAD), branch naming convention, and worktree path pattern. Adds meaningful context beyond 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 states 'Create (or reuse) an isolated git worktree for a ticket' with a clear verb and resource. It distinguishes from sibling tools like cleanup_worktree and list_worktrees by emphasizing parallel work on multiple tickets.

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?

Explicitly says when to use (parallel ticket work) and includes a caveat about avoiding synced repos. Could improve by naming alternative tools like cleanup_worktree for removal, but the context is sufficiently clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/valentil/featureboard-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server