Check the database connection
get-database-infoCheck PostgreSQL connectivity, server version, database, connection role, and token scope to determine whether a failed query is a connection issue rather than SQL.
Instructions
[PostgreSQL] Report whether this connector can reach its database, which server version and database it is, which role it connects as, and what this token is scoped to. Call this first when a query fails in a way that might be the connection rather than the SQL. tablesInScope lists the tables this token may reach when it is scoped to an allowlist; when it is not, every table the role can read is reachable and list-tables is the way to see them.
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-database-info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||