Skip to main content
Glama
Knuckles-Team

Repository Manager

Pre commit

repository_manager_pre_commit

Execute pre-commit hooks to run checks on all files or update hook versions, ensuring code quality before commits.

Instructions

Execute pre-commit commands in the specified path.

Args: run (bool): Whether to run 'pre-commit run --all-files'. Default True. autoupdate (bool): Whether to run 'pre-commit autoupdate'. Default False. path (str, optional): Path to run in. Defaults to self.path.

Input Schema

NameRequiredDescriptionDefault
runNo
pathNo
autoupdateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.5.1

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true and destructiveHint=false. The description adds real value by naming the underlying commands ('pre-commit run --all-files', 'pre-commit autoupdate'), which reveals that this mutates files and rewrites the config, but it omits failure behavior, whether hook failures abort, and any permission/install prerequisites.

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 purpose sentence is front-loaded and the parameter notes are compact. The docstring-style Args block is slightly verbose relative to the three trivial booleans/string, but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and thin annotations, the description should do more for a mutation tool: it says nothing about return values, exit-status semantics, or what happens when no pre-commit config exists at the path. It is adequate for invocation but leaves operational questions open.

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 description coverage is 0%, so the description carries the full burden and does so: it maps each boolean to a concrete CLI action and gives the path default. This meaningfully exceeds the bare type/default information in the schema, though it does not explain interaction between run and autoupdate or how path is resolved when omitted.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource: 'Execute pre-commit commands in the specified path.' An agent knows this runs pre-commit tooling against a repo path. It does not, however, distinguish itself from the very similar siblings repository_manager_pre_commit_projects or rm_git_pre_commit, so the agent must guess which variant applies.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, and no mention of the near-identical siblings that do the same job at project or git level. The only usage signal is the default flags, which describe behavior rather than context.

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