Verify connection encryption
verify_connection_encryptionCheck whether the current PostgreSQL connection is TLS-encrypted and report protocol version, cipher, key bits, plus a cluster-wide tally of encrypted vs unencrypted backends.
Instructions
Report whether MCPg's own connection to PostgreSQL is TLS-encrypted, including the negotiated protocol version, cipher, and key bits (from pg_stat_ssl). Also returns a cluster-wide tally of encrypted vs unencrypted backends (a lower bound under non-superuser privileges). Complements the startup TLS-enforcement check by confirming the live connection actually came up encrypted.
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": "verify_connection_encryption"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No | Optional: a database id from list_databases, to target a configured secondary (read-only) database; omit for the primary. Database names that are not configured ids are rejected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ssl | Yes | ||
| bits | Yes | ||
| cipher | Yes | ||
| version | Yes | ||
| total_connections | Yes | ||
| encrypted_connections | Yes | ||
| unencrypted_connections | Yes |