List Tables
list_tablesList tables in a ClickHouse database with schema, row count, and column count. Filter by name patterns and paginate results.
Instructions
List available ClickHouse tables in a database, including schema, comment, row count, and column count.
Integers outside [-9007199254740991, 9007199254740991] in table metadata are returned as decimal strings. Pagination tokens are single-use and retained for up to one hour.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| like | No | Optional LIKE pattern to filter table names | |
| database | Yes | The database to list tables from | |
| not_like | No | Optional NOT LIKE pattern to exclude table names | |
| page_size | No | Number of tables to return per page (default: 50, must be greater than 0) | |
| page_token | No | Single-use token from a previous call, retained for up to one hour | |
| include_detailed_columns | No | Whether to include detailed column metadata (default: True). When False, the columns array will be empty but create_table_query still contains all column information. This reduces payload size for large schemas. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |