get_table_size_info
Retrieve MySQL table sizes with data and index breakdowns, row counts, and average row size, ordered largest first to support storage analysis and database optimization planning.
Instructions
[Tool Purpose]: Get table size information and storage analysis
[Exact Functionality]:
Show table sizes with data and index breakdown
Display size ratios and storage efficiency
Order by total size (largest first)
Include row counts and average row sizes
[Required Use Cases]:
When user requests "table sizes", "largest tables", "storage analysis"
When planning database optimization
When monitoring storage usage
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_size_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of tables to return (default: 20) | |
| database_name | No | Database name to analyze (uses current database if omitted, shows all if none) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |