Skip to main content
Glama

Lookup Kit

pii_redact

Read-only

PII detection and redaction, remove personal data and secrets from text. Find and redact personal and secret data in text by pattern: email addresses, phone numbers, payment card numbers (Luhn-checked), IBANs, US SSNs, IP addresses, API keys and tokens, and passwords in URLs. Returns the redacted text and what was found (types and positions, not the values). Pattern-based: it can miss things, and it does not detect names or street addresses. Runs in memory only; the text is never stored or logged. Price: $0.002 per call (x402, USDC on Base).

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_redact"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
styleNolabel
typesNoEMAIL,PHONE,CARD,IBAN,US_SSN,IP,SECRET,URL_CREDENTIALS
regionNoUS

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Goes well beyond the supplied annotations (readOnlyHint, openWorldHint=false) by disclosing the in-memory-only, never-stored-or-logged data handling, the $0.002 per call x402/USDC pricing, and that results report types and positions rather than matched values. These are exactly the behavioral facts an agent needs before sending sensitive text.

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?

Front-loads purpose in the first clause and every subsequent sentence adds distinct value (patterns, limitation, privacy, cost). The long run-on enumeration of pattern types is dense but not wasteful.

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?

With no output schema, the description correctly covers return content ('the redacted text and what was found'), and it addresses privacy and cost for a sensitive-data tool. Remaining gaps are the undocumented 'region' and 'style' parameters and the input length cap.

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 0%, so the description must carry parameter meaning. It effectively explains the 'types' parameter by enumerating EMAIL, PHONE, CARD, IBAN, US_SSN, IP, SECRET and URL_CREDENTIALS, and hints at label-vs-mask via 'types and positions, not the values', but never mentions 'region', 'style', or the 8000-character limit.

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 and resource ('PII detection and redaction, remove personal data and secrets from text') and then enumerates the exact pattern classes it covers, which lets an agent distinguish it from neighboring checkers like check_contact or injection_check without opening the schema.

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 clear usage context plus explicit exclusions ('pattern-based: it can miss things, and it does not detect names or street addresses'), which is real when-not guidance. It stops short of routing to a named alternative for the cases it misses, so no explicit alternative is offered.

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