Skip to main content
Glama

list_worktrees

List git worktrees and view their branch, path, uncommitted changes, and commits ahead or behind master.

Instructions

List all git worktrees with their status information. Shows branch name, path, uncommitted changes, and commits ahead/behind master.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdNoOptional: Working directory (defaults to current directory)
Behavior3/5

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

No annotations provided, so description carries full burden. It lists output fields but does not mention read-only nature, prerequisites (e.g., being in a git repo), or potential errors. Adequate but could be more explicit.

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?

Two sentences front-loading purpose and then details. No extraneous words; every sentence provides value.

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?

Given one optional parameter and no output schema, the description is fairly complete. It explains the tool's output and behavior. Could mention requirement for git repository, but not essential.

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 covers cwd parameter with description 'Optional: Working directory (defaults to current directory)'. Description adds no extra parameter meaning. Schema coverage is 100%, so baseline score is 3.

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?

Clearly states verb 'List' and resource 'git worktrees', specifies output fields (branch, path, uncommitted changes, commits ahead/behind master), and distinguishes from sibling tools like cleanup_worktree and create_worktree.

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?

Describes what the tool does but lacks explicit guidance on when to use vs alternatives like worktree_status or when not to use it. Usage is implied but not explicit.

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/georgeasoto/worktree-tools-mcp'

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