Plan Postgres data masking
plan_maskingPlan how to mask personal data in a PostgreSQL schema before copying production to staging or dev. Input: the schema only (pg_dump --schema-only output or CREATE TABLE statements). Only table and column definitions are read; data dumps (COPY or many INSERT rows) are refused. Returns a masking method for every column (keep, fake email or name, coarsen dates, random secrets, blank free text…) with the reason, a mask.sql that applies them to a copy (foreign keys get the same expression as the key they point at, so joins still match) and a check.sql that must return 0 for every check. Free: up to 150 columns per call; a bigger schema is planned in whole tables up to that.
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": {
"schema_sql": "<schema_sql>"
},
"name": "plan_masking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema_sql | Yes | The PostgreSQL schema: pg_dump --schema-only output or CREATE TABLE statements, without data. |