Skip to main content
Glama
jesspig

git-mcp-server

by jesspig

git_clean

Destructive

Remove untracked files and build artifacts by previewing with dry_run, then confirming deletion. Avoids touching tracked or ignored files.

Instructions

Delete untracked files, or preview them first with dry_run. Use this to remove build artifacts and other untracked clutter, and to answer 'what junk is in this repo?' before deleting. DESTRUCTIVE: requires confirmed=True to delete; dry_run=True previews without deleting, so preview first. Does NOT touch tracked files, ignored files, or stashes — untracked files only; use git_status to see untracked files before deciding what to clean. Best for: removing build artifacts and other untracked clutter. Returns: list of removed or would-be-removed files, or 'No untracked files to clean.'

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dry_runNoShow what would be removed without removing
confirmedNoExplicit confirmation to delete the untracked files
repo_pathNoPath to the git repository, defaults to '.' (the server working directory).
directoriesNoAlso remove untracked directories
Behavior5/5

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

The description adds significant behavioral context beyond the annotations: it warns 'DESTRUCTIVE: requires confirmed=True to delete', explains that dry_run previews without deleting, and clarifies scope ('Does NOT touch tracked files, ignored files, or stashes'). It also mentions return values. This aligns with the destructiveHint annotation without contradiction.

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?

The description is somewhat long but every sentence provides useful information: purpose, safe usage, destructive warning, scope limitations, best-for, and return value. It is front-loaded with the primary action and flows logically.

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?

Even without an output schema, the description states the return format ('list of removed or would-be-removed files, or 'No untracked files to clean.'') and covers safety, scope, and workflow. For a destructive tool with 4 parameters, this is fully complete.

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%, so the schema already documents all four parameters. The description reinforces the confirmed/dry_run relationship but does not add substantial new semantic detail beyond what the schema provides. Baseline 3 is appropriate.

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 opens with a specific verb-resource pair: 'Delete untracked files, or preview them first with dry_run.' It clearly distinguishes itself from siblings by explicitly stating 'Does NOT touch tracked files, ignored files, or stashes — untracked files only' and referencing git_status for viewing untracked files.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit when-to-use guidance ('Best for: removing build artifacts and other untracked clutter') and an alternative ('use git_status to see untracked files before deciding what to clean'). It also instructs to preview first with dry_run, outlining a safe workflow.

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/jesspig/git-mcp-server'

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