Skip to main content
Glama

veil_redact

Anonymizes PII and secrets such as emails, credit cards, IBANs, API keys, and national IDs in text, storing reversible mappings in the session vault for later restoration.

Instructions

Anonymizes PII and secrets in text (emails, credit cards, IBANs, API keys, DB URIs, national IDs) and stores reversible mappings in the session vault.

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": "veil_redact"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoOptional redaction mode override
textYesInput text to redact

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose one important behavior: mappings are stored reversibly in a session vault, implying statefulness tied to session lifetime. It omits other behavioral facts an agent needs, such as what the return value looks like, whether the vault write can fail, and any idempotency or size limits.

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 front-loaded sentence with no filler; the verb and target come first. The long parenthetical entity list is informative but pushes the key behavioral detail (session-vault storage) to the tail.

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?

For a two-parameter tool with no output schema, the agent still does not learn what is returned (redacted text alone, a mapping reference, counts) or how modes affect results. The vault-storage note partially compensates by explaining downstream restore behavior.

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 'text' and 'mode' are already documented at baseline. The description adds no meaning to the mode enum values (placeholder, synthetic, mask) or how output differs per mode, which is the one place extra explanation would have helped.

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 specific verb ('Anonymizes') and resource ('PII and secrets in text') and enumerates the entity classes it covers, which is concrete and actionable. It stops short of naming how it differs from siblings like veil_redact_json or veil_scan, so differentiation is only implicit in the phrase 'in text'.

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 rather than stated: 'in text' hints this is the plain-text path versus a JSON variant, and 'reversible mappings in the session vault' hints at a restore counterpart. There is no explicit when-to-use, when-not-to-use, or named alternative.

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

Deploy Server

Other Tools