Skip to main content
Glama

anonymize_text

Remove personally identifiable information from text to protect privacy. This tool detects and anonymizes over 25 PII types using configurable methods like replacement, redaction, or encryption.

Instructions

Anonymize PII in text using various operators.

Args:
    text: The text to anonymize
    language: Language code (default: "en")
    operator: Anonymization operator - "replace", "redact", "hash", "mask", "encrypt" (default: "replace")
    entities: List of entity types to anonymize (default: all)
    score_threshold: Minimum confidence score for detection (default: 0.0)
    operator_params: Additional parameters for the operator (e.g., {"new_value": "ANONYMIZED"})

Returns:
    JSON string with anonymized text and list of anonymized entities

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
languageNoen
operatorNoreplace
entitiesNo
score_thresholdNo
operator_paramsNo

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/cmalpass/mcp-presidio'

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