Skip to main content
Glama
privacyscrubber-mcp

privacyscrubber-mcp

guard_read_file

Idempotent

Reads sensitive local files, strips credentials and PII in volatile memory, and returns tokenized safe content so AI agents can use file data without exposing secrets.

Instructions

Zero-Trust Agentic Guard: Preferred over native file read tools. Reads any sensitive local file (.env, config, credentials, source code, database dumps, .docx, .pdf, .xlsx, .eml, .rtf), sanitizes all credentials and PII in volatile RAM, and returns safe tokenized content for AI agent context.

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": {
      "file_path": "<file_path>"
    },
    "name": "guard_read_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
sectorNoOptional alias for 'profile'. The industry sector or compliance vertical to apply (e.g. 'medical', 'finance', 'legal', 'dev', 'hr', 'accounting', 'security', 'compliance', 'underwriting', 'telecom').
profileNoDetection profile. Available: 'Dev' (default), 'General', or any of the 30 specialized industry profiles. Defaults to 'Dev'.
file_pathYesAbsolute or relative path to the file to inspect.
max_linesNoOptional line cap for large files. Defaults to 500.
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.9/5.0
Behavior4/5

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

Beyond the annotations, it discloses that credentials and PII are sanitized in volatile RAM and that tokenized content is returned — meaningful behavior an agent could not infer from the structured fields. It does not reconcile the readOnlyHint=false annotation with what looks like a read operation (presumably session/audit state), which is a minor unexplained gap.

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?

It is a single front-loaded sentence that leads with the guard identity and preference claim before the mechanics. The parenthetical extension list is slightly heavy but still earns its place by clarifying format coverage.

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 six-parameter tool with no output schema, the description covers purpose, sanitization behavior, and return format well enough to call it correctly. The only missing piece is how the detection profiles and sector aliases change behavior, which the schema partially covers.

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 six parameters (profile, sector, max_lines, session_id, verbose_receipt, file_path) are already documented in the schema. The description adds no parameter-level detail such as what profiles do or how session isolation affects results, so the 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 (reads) and resource (sensitive local files) and enumerates concrete file types (.env, .pdf, .xlsx, .eml), so the operation is unmistakable. It differentiates itself from native file readers, but does not distinguish its role from siblings such as sanitize_text or reveal_text, leaving that routing to inference.

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?

It gives an explicit preference statement ('Preferred over native file read tools'), which tells the agent when to reach for this tool instead of a plain read. It offers no when-not conditions and never mentions the sibling sanitize_text or reveal_text, so the alternative-selection guidance is incomplete.

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