list_connections
View configured SQL database connections by ID to manage and select available data sources for query execution.
Instructions
List configured SQL connections by connection_id.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- sql_query_mcp/app.py:26-30 (handler)The MCP tool registration and handler wrapper for list_connections.
@mcp.tool() def list_connections() -> dict: """List configured SQL connections by connection_id.""" return {"connections": registry.list_connections()} - sql_query_mcp/registry.py:24-25 (helper)The underlying implementation of listing connections within the ConnectionRegistry.
def list_connections(self): return [item.summary for item in self._config.connections]