pseudonymize_pii
Replaces emails, phones, cards, IBANs, SSNs, IPs, crypto addresses and secret URL values with stable keyed HMAC tokens, so redacted text stays linkable across records without exposing raw PII.
Instructions
utilpeek: Pseudonymise PII in text: stable keyed tokens for emails, phones, cards, IBANs and IPs. Returns the text with each email, phone number, payment card, IBAN, US SSN, IPv4 / IPv6, EVM / BTC address and secret URL query value replaced by a typed token (EMAIL_843eca1f055c), plus the token-to-type list with counts. The token is HMAC-SHA256 under your key of the normalised value, so the same value and key give the same token on every call and memory records stay linkable. Same detectors as /v1/text/redact. Pseudonymisation, not anonymisation: the key holder can test guesses. Names and street addresses are not detected. Key never stored or logged. Typically under 1 s. Price: USD 0.002. No free tier. The submitted text is never logged or stored.
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>",
"key": "<key>"
},
"name": "pseudonymize_pii"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Your secret, 16-1024 UTF-8 bytes. The same key always gives the same tokens; keep it private (whoever has it can test guessed values). Never stored, logged or echoed. Use a long random key kept for this use only. | |
| text | Yes | The text (at most 200,000 characters). | |
| types | No | Limit detection to these types: email, phone, card, iban, ssn, ipv4, ipv6, crypto_address, url_secret (default: all). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| count | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| notes | No | ||
| types | No | ||
| scheme | No | ||
| source | No | ||
| tokens | No | ||
| by_type | No | ||
| token_hex | No | ||
| not_detected | No |