Skip to main content
Glama
privacyscrubber-mcp

privacyscrubber-mcp

guard_exec

Destructive

Run local shell commands in an isolated process and mask API keys, credentials, database URIs, and PII in stdout and stderr before any output reaches the LLM.

Instructions

Zero-Trust Agentic Guard: Safely executes a shell/terminal command locally in isolated process, sanitizes stdout and stderr in volatile RAM, tokenizes any API keys, credentials, database URIs, or PII before sending output to LLM. Maps original values in memory for safe local restoration.

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": {
      "command": "<command>"
    },
    "name": "guard_exec"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoOptional working 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').
unmaskNoOptional. Substitute session tokens into command before local execution (requires server started with --allow-exec-unmask).
commandYesThe shell command to execute (e.g. 'cat .env', 'git diff', 'docker logs web', 'env').
profileNoDetection profile. Available: 'Dev' (default for code/secrets), 'General', or any of the 30 specialized industry profiles (e.g. 'Security', 'Finance', 'Medical'). Defaults to 'Dev'.
session_idNoOptional session ID for multi-agent isolation. Defaults to 'default'.
timeout_msNoExecution timeout in milliseconds. Defaults to 15000 (15s).
verbose_receiptNoOptional. Detailed multi-line audit receipt breakdown.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.5.5
    • addedInput schema / properties / unmask
      Added value: +{
      +  "description": "Optional. Substitute session tokens into command before local execution (requires server started with --allow-exec-unmask).",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changedv2.5.2
    • addedInput schema / properties / verbose_receipt
      Added value: +{
      +  "description": "Optional. Detailed multi-line audit receipt breakdown.",
      +  "type": "boolean"
      +}
  3. Addedv1.0.3

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, so the safety burden is partly covered. The description adds real value beyond them: isolated process execution, in-RAM sanitization of stdout/stderr, tokenization of secrets/PII before LLM exposure, and in-memory mapping for local restoration. It does not discuss failure modes, timeouts, or that unmask requires a server flag (left to the schema).

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 front-loaded sentence opens with the core action and purpose before layering the sanitization mechanics. It is dense but every clause adds information; slight over-packing into one sentence is the only weakness.

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?

For a destructive, open-world executor with 8 parameters and no output schema, the description covers purpose, isolation, and the sanitization pipeline well. Gaps remain around execution side effects, timeout/error behavior, and the audit receipt output, but annotations and the fully documented schema absorb most of these.

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 the schema already explains cwd, profile, sector, session_id, timeout_ms, unmask, and verbose_receipt. The description adds only conceptual context ('maps original values in memory for safe local restoration') that loosely relates to unmask, but no parameter-level detail beyond the schema. Baseline 3 applies.

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+resource ('executes a shell/terminal command locally') and adds scope ('isolated process', sanitized output). It is clearly distinguishable from siblings like guard_read_file or guard_git_diff by being the general command runner, though it never names those alternatives explicitly.

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 / when-not-to-use guidance and no routing to sibling tools; nothing says whether to prefer guard_read_file or guard_git_diff over this general executor. The agent must infer the applicability from the word 'shell command' alone.

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