List Tables
list_tablesList all tables in a database for exploration and discovery.
Instructions
List all tables in a database for exploration and discovery.
Use this tool to:
Discover what tables exist in a database
Filter tables by name pattern (like/not_like)
Get basic table metadata (name, engine, row counts, sizes, primary keys)
Custom views are listed as their own rows named table#view. Query one as
database.table#view, quoting the table and view together.
Returns basic table information WITHOUT column details for performance. Tables are returned with empty columns lists and is_summary_table not set.
IMPORTANT: Always call get_table_info(database, table) before querying a specific table. Column metadata (types, categories, merge functions) is required to build correct queries, especially for summary tables which need special -Merge function syntax. list_tables() is intentionally lightweight to avoid loading schema for all tables at once.
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": "list_tables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| like | No | ||
| database | Yes | ||
| not_like | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tables | Yes |