get_current_database_info
Retrieve current or specified MySQL database details, including name, character set, collation, size, table count, creation time, and storage engine distribution. Use it to inspect database context.
Instructions
[Tool Purpose]: Get information about the currently connected or specified database
[Exact Functionality]:
Show database name, character set, and collation
Display database size and table count
Show creation time if available
Include storage engine distribution
[Required Use Cases]:
When user requests "current database", "database info", "database details"
When getting context about the working database
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_current_database_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database_name | No | Database name to analyze (uses current database if omitted, shows available databases if none) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |