Skip to main content
Glama

Doc-to-LLM Markdown, Table JSON, RAG Chunker & PII Redactor

pii_redactor_audit

Deterministically detect and redact PII/sensitive tokens (emails, US phone numbers, SSNs, Luhn-valid payment cards, IPv4 addresses) prior to LLM/RAG ingestion. Returns redacted text and aggregate counts only (never echoes raw PII).

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": {
      "text": "<text>"
    },
    "name": "pii_redactor_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesInput text to sanitize before LLM/RAG processing.
categoriesNoSubset of PII categories to redact (defaults to all categories).
placeholder_styleNoReplacement style: [REDACTED_EMAIL] (bracket) or *** (mask).bracket

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations present the description carries the full burden, and it delivers the two facts that matter: detection is deterministic, and the response contains only redacted text plus aggregate counts, never raw PII. It does not cover edge cases such as non-string input, empty text, or whether unlisted categories are silently passed through, which keeps it short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences: the first front-loads purpose, scope, and pipeline position; the second covers the return contract. No filler and nothing buried.

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 three-parameter, single-purpose tool with full schema coverage and no output schema, this is nearly complete — it even describes the return values that an output schema would otherwise have to cover. Minor residual gaps (error behavior, treatment of text with no matches) are not things an agent needs in order to call it correctly.

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 three parameters are already documented in the input schema, and the description adds no syntax or format detail beyond it. Mentioning the PII categories duplicates the enum rather than extending it; baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb set ('detect and redact') plus resource ('PII/sensitive tokens') and enumerates exactly which token classes qualify (emails, US phones, SSNs, Luhn-valid cards, IPv4). The 'prior to LLM/RAG ingestion' framing separates it cleanly from the sibling tools, which are format converters and chunkers rather than sanitizers.

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 triggering context — sanitize text before sending it into an LLM/RAG pipeline — which is enough for an agent to select this tool at the right pipeline stage. It does not state when *not* to use it or name an alternative sanitizer, but the purpose is narrow enough that no sibling competes.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources