pg_list_tables
List tables and views in a PostgreSQL schema (default public) with optional database or profile override to inspect database structure.
Instructions
List tables/views for a schema (default public). Optional database and/or profile override.
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_list_tables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 |