Text Processing
Detect common PII in text and replace repeated entities with stable, auditable pseudonyms without sending the text to a model.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/consistent-pseudonym-text-anonymizer' \
-H 'Content-Type: application/json' \
-d '{"textInput":"Email [email protected] and [email protected]; phone 13800138000.","entityTypes":["email","phone"],"replacementMode":"label","includeMapping":true,"seed":"demo"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/consistent-pseudonym-text-anonymizer| Name | Type | Required | Description |
|---|---|---|---|
| textInput | textarea | Yes | — |
| entityTypes | select | No | — |
| replacementMode | select | No | — |
| includeMapping | checkbox | No | — |
| seed | text | No | — |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-consistent-pseudonym-text-anonymizer": {
"name": "consistent-pseudonym-text-anonymizer",
"description": "Detect common PII in text and replace repeated entities with stable, auditable pseudonyms without sending the text to a model.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=consistent-pseudonym-text-anonymizer",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "consistent-pseudonym-text-anonymizer",
"arguments": {
"textInput": "Email [email protected] and [email protected]; phone 13800138000.",
"entityTypes": [
"email",
"phone"
],
"replacementMode": "label",
"includeMapping": true,
"seed": "demo"
}
}
}Questions or issues? Contact [email protected]
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}