Skip to main content
Glama
privacyscrubber-mcp

privacyscrubber-mcp

guard_git_diff

Idempotent

Inspect staged or unstaged git diffs locally, mask newly added credentials, tokens, and PII in RAM, and return a safe diff for AI commit generation or code review.

Instructions

Zero-Trust Agentic Guard: Inspects unstaged or staged git diffs locally, sanitizes any newly added or modified credentials, tokens, or PII in RAM, and returns safe diff for AI commit generation or code review.

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

Input Schema

NameRequiredDescriptionDefault
cwdNoOptional repository directory. Defaults to current workspace root.
sectorNoOptional alias for 'profile'. The industry sector or compliance vertical to apply (e.g. 'medical', 'finance', 'legal', 'dev', 'hr', 'accounting', 'security', 'compliance', 'underwriting', 'telecom').
stagedNoIf true, runs 'git diff --cached'. If false, runs 'git diff'. Defaults to false.
profileNoDetection profile. Available: 'Dev' (default), 'General', or any of the 30 specialized industry profiles. Defaults to 'Dev'.
session_idNoOptional session ID for multi-agent isolation. Defaults to 'default'.
verbose_receiptNoOptional. Detailed multi-line audit receipt breakdown.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.5.2
    • addedInput schema / properties / verbose_receipt
      Added value: +{
      +  "description": "Optional. Detailed multi-line audit receipt breakdown.",
      +  "type": "boolean"
      +}
  2. Addedv1.0.3

TDQS

A3.8/5.0
Behavior4/5

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

Goes beyond the annotations meaningfully: execution is local, sanitization happens in RAM, and only newly added or modified lines are treated as sensitive. It does not explain why readOnlyHint is false (likely audit/session state written by verbose_receipt), nor how sanitized placeholders should be handled afterward, leaving some behavioral questions open.

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?

A single tight sentence with the action front-loaded after the guard name. The 'Zero-Trust Agentic Guard:' prefix is branding that does not add decision-relevant information, but nothing is padded or repeated.

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?

For a six-parameter tool with no output schema, the description leaves key operational gaps: what the returned 'safe diff' actually looks like, whether tokens are replaced with placeholders that must later be resolved via reveal_text/guard_unmask_args, and what verbose_receipt changes in the response.

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 cwd, staged, profile, sector, session_id, and verbose_receipt are already documented. The description only adds indirect hints (staged vs unstaged workflow, the categories of sensitive data tied to profile/sector) without clarifying defaults or enum 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?

States a specific verb set and resource: it inspects staged/unstaged git diffs, sanitizes newly added or modified secrets/PII in RAM, and returns a safe diff. The git-diff scope implicitly separates it from sanitize_text and guard_read_file, but no sibling is named, so an agent must infer the boundary.

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 a clear context of use: producing a safe diff for AI commit message generation or code review. It stops short of exclusions or alternatives (e.g., when to prefer sanitize_text for non-git text, or guard_read_file for whole-file inspection).

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