describe_tables
Retrieve schema and planner statistics for multiple PostgreSQL tables in one call, including columns, primary and foreign keys, indexes, null fractions, and distinct counts.
Instructions
Describe several tables in one call: columns (name, type, nullable), primary key, outgoing and incoming foreign keys (constraint, from_table/from_columns, to_table/to_columns, paired by position), and indexes. Each column carries planner statistics (no scans): stats_available, and when true null_frac, n_distinct (negative = minus the distinct fraction of rows, -1 = unique) and, for enum-like non-sensitive columns, common_values with frequencies. Columns matching a redaction pattern get stats_available: false, redacted: true. Unknown tables get a per-table error; the rest still succeed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tables | Yes | Schema-qualified table names, e.g. public.users |