connection_test
Test a configured database connection end-to-end by resolving secrets, opening tunnels, and running a query to return server info or failure details.
Instructions
Test a configured connection end-to-end: resolves secrets, opens the tunnel if configured, connects and runs a one-row server-info query. Returns ok=true with server version, user, database and latency — or ok=false with the failure code and hint (an unreachable database is a valid test result, not a tool error).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"connection": "<connection>"
},
"name": "connection_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No | Database to test; required when the connection declares multiple databases | |
| connection | Yes | Connection key from connection_list |