list_tables
List tables, views, and materialized views in a PostgreSQL database with estimated row counts and total size. Filter by schema or database to inspect specific parts of the schema.
Instructions
List tables, views and materialized views in a PostgreSQL database, with estimated row counts and total size.
Args: database: Database name. Defaults to the session database. schema: Optional schema filter. Omit to list every non-system schema.
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 |
|---|---|---|---|
| schema | No | ||
| database | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |