get_database_size_info
Retrieve MySQL database sizes, table counts, and storage breakdowns to compare capacity and monitor growth; analyze one database or all.
Instructions
[Tool Purpose]: Get database size information and storage distribution
[Exact Functionality]:
Show database sizes with table counts
Display total, data, and index size breakdown
Compare databases by storage usage
Include average table sizes
[Required Use Cases]:
When user requests "database sizes", "storage usage", "database capacity"
When planning database resources
When monitoring growth trends
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_database_size_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database_name | No | Specific database name to analyze (analyzes all databases if omitted) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |