get_server_info
Retrieve PostgreSQL server version, masked connection settings, accessibility status, and extension installation details to verify database connectivity and readiness before monitoring.
Instructions
[Tool Purpose]: Check basic information and connection status of PostgreSQL server
[Exact Functionality]:
Retrieve PostgreSQL server version information
Display connection settings (with password masking)
Verify server accessibility
Check installation status of extensions (pg_stat_statements, pg_stat_monitor)
[Required Use Cases]:
When user requests "server info", "PostgreSQL status", "connection check", etc.
When basic database server information is needed
When preliminary check is needed before using monitoring tools
[Strictly Prohibited Use Cases]:
Requests for specific data or table information
Requests for performance statistics or monitoring data
Requests for configuration changes or administrative tasks
Returns: Comprehensive information including server version, connection info, and extension status
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_server_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |