pg_describe_table
Describe columns for a PostgreSQL table or view. Specify schema, database, or profile to inspect table structure across environments.
Instructions
Describe columns for a table or view. Optional schema, database, and/or profile override.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table or view name | |
| schema | No | Schema name (default: public) | |
| profile | No | Connection profile: "dev" | "qa" | "default". Uses credentials from mcp.json (PG_DEV_* / PG_QA_*). Omit to use the sticky session profile from pg_set_profile / PG_PROFILE. | |
| database | No | Optional database name override |