List Postgres tables
postgres_list_tablesLists tables and views in allowed PostgreSQL schemas with approximate row counts and comments, helping discover available data before inspecting column details.
Instructions
List the tables and views the AI may query in the allowed schemas (public), with approximate row counts and table comments. Call this first to discover what data exists, then postgres_describe_table for column details.
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": "postgres_list_tables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | No | Only list this schema. One of: public. Omit to list all allowed schemas. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tables | Yes | ||
| row_count | Yes | Number of tables returned. |