Skip to main content
Glama
MCP Pre-commit Manager

MCP Pre-commit Manager

by ars-system

check_project_setup

Detects project type and verifies Git status plus pre-commit hook installation to confirm repository setup and return next-step recommendations.

Instructions

Use this tool when the user asks about git or pre-commit status of a repository, or when you need to verify project setup before making changes. This tool performs a comprehensive check of: 1) Project type detection (Python/JavaScript/TypeScript based on config files), 2) Git repository status (initialized, current branch, commits, remotes), 3) Pre-commit hooks installation status (config file and hook scripts). Returns detailed information including recommendations for next steps. Call this tool whenever a user mentions 'check', 'status', 'git', 'pre-commit', or 'setup' in the context of repository configuration.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "check_project_setup"
  }
}

Input Schema

NameRequiredDescriptionDefault
repo_pathNoAbsolute path to the repository to check. If not provided, defaults to current working directory.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full disclosure burden. It compensates well by listing exactly what is inspected and noting that results include recommendations, from which an agent can infer this is a non-mutating inspection. It stops short of an explicit statement that nothing is modified.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The numbered enumeration of checks is well organized, but the final sentence repeats the first sentence's trigger conditions as a fragmented keyword list, and this is redundant bulk that weakens front-loading.

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?

With no output schema, the description does explain the shape of the return ('detailed information including recommendations for next steps'). Combined with the enumerated checks, an agent knows enough to call it correctly; only the absence of any note on failure modes or invalid paths keeps it from a 5.

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?

There is one optional parameter and schema description coverage is 100%, so the schema already documents repo_path and its default. The description adds no extra detail such as path format expectations or behavior for invalid paths, making this the baseline case.

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?

States a specific verb ('check') and resource ('project setup') and enumerates the three things inspected: project type detection, git status, and pre-commit hook installation. An agent can tell this apart from a setup/mutation sibling because the description frames it as verification.

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?

Gives clear usage contexts: when the user asks about git or pre-commit status, or before making changes. It does not explicitly name setup_git_and_precommit as the alternative for fixing problems, and the keyword list ('check', 'status', 'git'...) is broad enough to invite over-invocation, so it falls short of a 5.

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

Deploy Server

Other Tools