Skip to main content
Glama

privacy_guard_scan

Scans a Git repository or folder for exposed local paths, phone numbers, secrets, and sensitive files before commit or push, with optional staged-only checks.

Instructions

Garde-fou impitoyable de confidentialité (règle poucave-pas-tout) : audite un dépôt Git ou dossier pour détecter toute fuite de chemin machine utilisateur, numéro de téléphone, secrets ou fichiers sensibles avant commit/push

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": "privacy_guard_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
repo_pathNoChemin local du dépôt à scanner (défaut : répertoire courant)
staged_onlyNoSi true, analyse uniquement les fichiers indexés pour commit (git diff --cached)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.2.0

TDQS

B3/5.0
Behavior2/5

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

With no annotations at all, the description carries the full burden of behavioral disclosure, and it falls short. It never states whether the scan is read-only, whether it writes reports or installs hooks, what happens on detection (error, exit code, warning), or what permissions/paths it needs. 'Impitoyable' signals severity but conveys nothing an agent can act on.

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?

It is a single sentence with the core purpose front-loaded, which is structurally sound. But the sentence is overstuffed: a parenthetical inside-joke rule name and a four-item detection list crowd out behavioral details the agent actually needs. Some of that verbiage does not earn its place.

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

Completeness2/5

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

For a two-parameter tool with no annotations and no output schema, the description should describe what a scan returns and whether it mutates anything. It does neither, leaving the agent unable to predict the result shape or side effects. The detection-category list covers intent but not the operational details this tool's configuration demands.

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%, with both parameters and their defaults documented in the schema itself, so the baseline is 3. The description's phrase 'dépôt Git ou dossier' does add a small hint that repo_path accepts either a repository root or an arbitrary folder, which is mildly useful beyond the schema. Beyond that it does not elaborate on parameter behavior.

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?

The description names a specific verb ('audite') and resource ('un dépôt Git ou dossier') and enumerates what it looks for (machine paths, phone numbers, secrets, sensitive files), which is far more specific than a restated title. It is distinguishable from siblings like git_health_audit or git_cleanup_branches. The only dilution is the jargon parenthetical 'règle poucave-pas-tout', which adds no informational value for an agent.

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?

'avant commit/push' supplies a concrete trigger point, so usage context is implied clearly rather than left entirely to inference. However, there is no when-not guidance, no mention of how it relates to the sibling git tools, and no hint about when to prefer 'staged_only' versus a full scan. Guidance exists but stops at a single temporal cue.

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