get_table_list
List tables in a specified MySQL database or across all user databases, including table type, engine, row count, size, and timestamps; optionally filter by BASE TABLE or VIEW.
Instructions
[Tool Purpose]: List all tables in specified database or all databases
[Exact Functionality]:
If database_name provided: Show tables in that specific database
If database_name empty: Show tables from all user databases with database names
Display table type (BASE TABLE, VIEW), engine, rows count, and size information
Show creation and update timestamps
Filter by table type if specified
[Required Use Cases]:
When user requests "table list", "show tables", "database tables"
When exploring database structure
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": "get_table_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_type | No | Filter by table type ("BASE TABLE", "VIEW") | |
| database_name | No | Database name to analyze (if empty, shows tables from all databases) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |