List Tables in Database
mysql_list_tablesList all tables in a MySQL database. Optionally specify the database and choose response format: Markdown or JSON.
Instructions
List all tables in a MySQL database.
Args:
database (string, optional): Database name. Uses MYSQL_DATABASE if omitted.
response_format ('markdown' | 'json'): Output format (default: 'markdown')
Returns:
markdown: formatted table list
json: { database: string, tables: string[], count: number }
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": "mysql_list_tables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No | Database name (uses MYSQL_DATABASE env var if omitted) | |
| response_format | No | Output format: 'markdown' or 'json' | markdown |