Skip to main content
Glama
vinkius-labs

Regex Toolkit MCP Server

Official
by vinkius-labs

mask_sensitive_data

Redacts personally identifiable information by replacing emails, phone numbers, and URLs with [REDACTED] tags to protect user data before external sharing.

Instructions

[INSTRUCTIONS] Use this before sending sensitive user content to external systems.

Redacts sensitive PII (emails, phones, URLs) from a text blob by replacing them with [REDACTED] tags.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesThe text to sanitize.
maskEmailsYesSet to true to mask email addresses.
maskUrlsYesSet to true to mask web URLs.
maskPhonesYesSet to true to mask phone numbers.
Behavior4/5

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

Annotations only provide destructiveHint: false. The description adds behavioral detail: replacement with [REDACTED] tags, which is not in annotations. However, it does not elaborate on reversibility, output format, or side effects, leaving some gaps. Nevertheless, it improves upon the minimal annotation.

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?

The description is two sentences, with a front-loaded directive ('Use this before...') followed by the action. Every word earns its place; no redundancy or unnecessary detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter tool with full schema descriptions and no output schema, the description sufficiently conveys what the tool does and when to use it. The redacted output is implied from the replacement behavior. Sibling context is clear.

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 coverage is 100%, so baseline is 3. The description mentions emails, phones, URLs, corresponding to the boolean parameters, but adds no new semantics beyond the schema's 'Set to true to mask...' descriptions. No additional constraints or format details are provided.

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?

The description clearly states the tool's purpose: redacting sensitive PII (emails, phones, URLs) by replacing them with [REDACTED] tags. It uses a specific verb 'mask' matching the tool name and distinguishes from siblings (extract_pattern, validate_pattern) by focusing on redaction, not extraction or validation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly instructs to use this tool before sending sensitive user content to external systems, providing clear context. It implies when not to use (if not sending externally) and the siblings are for different tasks, offering implicit differentiation.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vinkius-labs/regex-toolkit-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server