pg_list_tables
List PostgreSQL tables with estimated row counts to inspect database structure and assess table sizes. Specify a configured database label and optional schema to target the right data.
Instructions
List tables in a PostgreSQL database with estimated row counts
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": {
"database": "<database>"
},
"name": "pg_list_tables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | No | Schema name (default: public) | public |
| database | Yes | Database label from config |