check_database
Tests connectivity to one or all configured databases and reports OK or a sanitized failure cause so you can diagnose connection errors or verify tunneled connections.
Instructions
Test connectivity for one database (or all) — returns OK or a sanitized cause.
Opens a read-only connection and closes it again; it changes nothing. Use it when a call fails with a connection error, or after starting a tunnel. When it says UNREACHABLE and the reason is unclear, run doctor for a full setup diagnosis.
Returns meta and results, one item per database with database and status
(OK or UNREACHABLE; an unreachable one adds category and detail). meta.database
is null when every database was checked. Reports active_port when the database
answered on a fallback port — doubles as a live re-probe for tunneled connections.
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": "check_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | No | Name of one configured database, as list_databases returns it. Omit to check every configured database. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | Yes | ||
| results | Yes |