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.
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": {
"table": "<table>"
},
"name": "pg_describe_table"
}
}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 |