Skip to main content
Glama
privacyscrubber-mcp

privacyscrubber-mcp

guard_apply_patch

Idempotent

Restores token placeholders from local RAM and writes real values directly to disk, enabling AI-generated code or text to be applied without exposing secrets to remote LLMs.

Instructions

Zero-Trust Agentic Guard: Reverses token placeholders ([API_KEY_1], [SECRET_1]) in AI-generated code or text, restores authentic values from local volatile RAM, and writes real content directly to target file on disk. Remote LLM never learns actual secrets.

Input Schema

NameRequiredDescriptionDefault
contentYesCode or text content containing token placeholders to de-anonymize locally before write.
file_pathYesAbsolute path to the destination file to create or update.
session_idNoOptional session ID for multi-agent isolation. Defaults to 'default'.
create_backupNoWhether to create a .bak backup if target file already exists. Defaults to true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.3

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover read-only=false, idempotent=true, destructive=false, so the description's added value is the security model: secrets stay in local volatile RAM and never reach the remote LLM. It does not disclose overwrite behavior when the target file exists, which matters given destructiveHint=false while the schema allows 'create or update' and a default .bak backup.

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 dense sentence that front-loads the operation and then the security rationale; every clause carries information. The 'Zero-Trust Agentic Guard' prefix is branding rather than instruction and is the one part that does not earn its place.

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?

The write behavior and secrecy guarantee are clear, but with no output schema the description never says what is returned (success status, masked path, count of restored tokens) or what happens if content has no matching placeholders or the session has no token registry. For a mutating disk-write tool those gaps are material.

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 all four parameters are documented, including the session_id isolation default and create_backup default. The description adds no per-parameter syntax or meaning beyond the schema, so the baseline of 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?

States a concrete verb chain (reverses placeholders, restores values, writes to disk) and a concrete resource (target file), so there is no ambiguity about what the tool produces. Differentiation from siblings is only implicit: 'writes real content directly to target file' contrasts with reveal_text/guard_unmask_args, but no sibling is named.

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 by 'AI-generated code or text' containing token placeholders, which tells the agent this is the write-side step after generation. There is no explicit when-to-use versus reveal_text, guard_unmask_args, or sanitize_file, and no when-not guidance (e.g., a file with no placeholders).

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