get_current_database_info
Retrieves details about the current PostgreSQL database connection, including name, encoding, locale, and size, to confirm which database you are targeting.
Instructions
[Tool Purpose]: Get information about the current database connection
[Exact Functionality]:
Show the name of the currently connected database
Display database-specific information like encoding, locale, and size
Provide connection context for clarity in multi-database environments
[Required Use Cases]:
When user asks "what database am I connected to?", "current database", etc.
When clarifying database context for analysis operations
When troubleshooting connection issues or confirming target database
[Strictly Prohibited Use Cases]:
Requests for database structure changes or creation/deletion
Requests for user authentication or permission changes
Requests for configuration modifications
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 | Target database to get info for (uses default connection if omitted) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |