Skip to main content
Glama

git_init

Initialize a new git repository at a given path, creating the directory if needed. Optionally add a .plumb workspace marker for automatic project attachment.

Instructions

Initialise a new git repository at the given path (git init). The directory is created if it does not exist. Set init_plumb: true to also create a .plumb/ workspace marker with a blank context.md, so plumb attaches to the project automatically on the next session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoAbsolute path, file:// URI, or workspace-relative path of the directory to initialise as a git repository. Created if it does not exist.
init_plumbNoAlso create a .plumb/ workspace marker with a blank context.md so plumb attaches to the project on the next session. Default false.
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses a key side effect: 'The directory is created if it does not exist', and explains the init_plumb behavior. However, it does not mention whether re-initializing an existing repository is safe, what happens on failure (e.g., invalid path), or any output/return value. This is partial transparency.

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 description is two sentences, front-loaded with the core purpose, and every clause adds value. No wasted words or redundant filler.

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?

For a simple tool with two fully documented parameters and no output schema, the description covers the essential context: what it does, side effects, and the optional flag. It does not mention return values or prerequisites (e.g., git must be installed), but those are minor gaps for a common operation. The description is complete enough for an agent to invoke correctly in most cases.

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 description coverage is 100% and both parameters have detailed descriptions. The description largely repeats the schema: 'path' is the directory to initialize, and 'init_plumb' is explained in the schema and again in the description. The description adds no new semantic information beyond what the schema already provides.

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 clearly states the specific action ('Initialise a new git repository') and the resource ('at the given path'), with the parenthetical '(git init)' reinforcing the exact command. This distinguishes it from sibling tools like the generic 'git' tool or file-write operations.

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?

The description implies when to use the tool (when initializing a repository) but provides no explicit guidance on when not to use it or alternatives, such as the sibling 'git' tool. It does not mention exclusions like 'use this only for new repositories' or 'for other git operations use git'. Context is clear but not formally differentiated.

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/plumbkit/plumb'

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