List database tables
list-tablesLists reachable PostgreSQL tables, views, and materialized views with schema, exact case-sensitive name, kind, estimated rows, and comment; supports search, schema filters, and paging.
Instructions
[PostgreSQL] List the tables, views and materialized views this connector can reach, with their schema, kind, estimated row count and comment. Start here: the schema and name returned are exactly the identifiers describe-table and your SQL must use, including capitalisation — a table created as "Message" is a different table from message. If this connector is scoped to an allowlist, only allowlisted tables are listed and scopedToAllowlist says so; a table missing from this list cannot be reached by any tool here, so do not guess at names. estimatedRows is a planner statistic, not a count — never report it as one. This answers with ONE PAGE: when hasMore is true there are more tables you have not seen, and you must page with nextPage before concluding that a table does not exist.
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": "list-tables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 1-based page of `limit` tables. Walk this up while hasMore is true. | |
| limit | No | How many tables to return in this page | |
| schema | No | Restrict to one schema, e.g. public | |
| search | No | Case-insensitive substring match on the table name |