Skip to main content
Glama

Uninstall Precommit Guard

uninstall_precommit_guard

Remove Agent Mail's pre-commit, pre-push, and legacy single-file hooks from a Git repository while leaving other existing hooks in place.

Instructions

Remove the Agent Mail commit guards from a git repository.

Removes Agent Mail's own pre-commit and pre-push guard plugins (and a legacy single-file Agent Mail hook); other hooks in the repository are left in place.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "code_repo_path": "<code_repo_path>"
    },
    "name": "uninstall_precommit_guard"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoOutput format.
code_repo_pathYesPath to the git repository to remove the guard from.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.3.5
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / code_repo_path / description
      Added value: +"Path to the git repository to remove the guard from."
    • addedInput schema / properties / format / description
      Added value: +"Output format."
  2. First observedv0.3.4

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the important mutation semantics: exactly which hooks are deleted (pre-commit, pre-push, and a legacy single-file hook) and that other repository hooks are preserved. It omits idempotency behavior (error vs. no-op when nothing is installed) and whether the action is reversible via reinstall, which keeps it short of a 5.

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 tight sentences with the primary action front-loaded and the scope qualifier immediately following. No restatement of the title, no filler, and the most decision-relevant detail (what is and isn't removed) comes before any minor detail.

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?

The tool is simple (two params, one required), an output schema exists so return values need not be explained, and the description covers the mutation scope well. The remaining gap is preconditions and failure/idempotency behavior, which matters more here because no annotations declare destructive or read-only hints.

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 code_repo_path and format are already documented in the schema. The description only indirectly gestures at the repository path and says nothing about the output format parameter, so it adds no meaning beyond the schema. Baseline 3 applies when the schema does the work.

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 and resource ("Remove the Agent Mail commit guards from a git repository") and narrows scope to Agent Mail's own pre-commit/pre-push plugins plus a legacy hook. That scope statement distinguishes it from any generic hook-removal operation. It does not explicitly name install_precommit_guard as its inverse, so sibling differentiation is implied by the name pairing rather than stated.

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?

Usage is implied rather than stated: an agent can infer this is the teardown counterpart to installing the guard, but the description never says when to run it (before decommissioning Agent Mail integration, prior to removing the repo, etc.) or what happens if the guards are not present. No explicit exclusions or alternative tools are named.

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