anonymize_sql_or_structured_dump
Anonymize PostgreSQL, SQL, CSV, JSONL, and JSON dumps offline with deterministic HMAC-SHA256 mapping while preserving foreign-key joins, NULLs, and checksum-valid IDs.
Instructions
Deterministically anonymizes PostgreSQL COPY ... FROM stdin blocks, SQL INSERT INTO statements, RFC 4180 CSV exports, or JSONL/JSON payloads offline using HMAC-SHA256 token mapping while preserving cross-table FOREIGN KEY joins, \N NULLs, Luhn card checksums, and GB 11643-1999 Mod 11-2 18-digit IDs.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "anonymize_sql_or_structured_dump"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Dataset parser mode (defaults to "auto"). | |
| content | No | Raw SQL dump (PG COPY or INSERT INTO), CSV, JSONL, or JSON text to sanitize in memory. | |
| filePath | No | Optional local path to a .sql, .dump, .csv, .jsonl, or .json file when content is omitted. | |
| filename | No | Optional filename hint (e.g. "pg_seed.sql", "users.csv", "traces.jsonl") for format detection. | |
| emailDomain | No | Safe synthetic email domain per RFC 2606 (defaults to "example.test"). | |
| sessionSalt | No | Optional ephemeral HMAC-SHA256 salt ensuring identical cross-table FOREIGN KEY & UNIQUE pseudonyms. | |
| includeMarkdownReport | No | When true, attaches a zero-plaintext Markdown compliance certificate alongside sanitizedOutput. |