Find sensitive columns
pg_find_sensitive_columnsIdentify columns likely holding sensitive data by name, comment and type—passwords, tokens, IDs, emails, cards—without reading rows, so you can plan masking and access control.
Instructions
Find columns that look like they hold sensitive data, judging by column name, comment and type only: passwords, tokens and keys, CPF/CNPJ/SSN, emails, phones, payment cards, birth dates, salaries, addresses and similar, in English and Portuguese.
For each match it gives the table, column, type, category, why it was flagged, whether
the table has row level security (rls) and whether it uses column-level grants
(column_grants). The data itself is never read. Use it to plan masking and access
control, or before exposing a schema to an application. schema narrows the search.
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": "pg_find_sensitive_columns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| schema | No | ||
| connection | No |