Get PostgreSQL Server Information
pg_server_infoRetrieve detailed PostgreSQL server information including version, connection details, memory settings, WAL configuration, and runtime parameters. Supports JSON or Markdown output.
Instructions
Get detailed PostgreSQL server information: version, connection details, memory settings, WAL configuration, and runtime parameters.
Returns: JSON: { version, current_database, current_user, settings: {...}, uptime } Markdown: formatted multi-section report
Useful for understanding the server environment, verifying connection details, and checking key configuration values.
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": "pg_server_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| response_format | No | Output format: 'markdown' for human-readable, 'json' for machine-readable | markdown |