Skip to main content
Glama
test_connection.md1.45 kB
# test_connection Test Snowflake connection and verify credentials. ## Parameters None – uses the active Snowflake profile. ## Discovery Metadata - **Category:** `diagnostics` - **Tags:** `connection`, `health`, `diagnostics` - **Usage Example:** Run with no parameters to confirm the current profile connects before executing other tools. ## Returns ```json { "status": "success", "connected": true, "profile": "default", "warehouse": "COMPUTE_WH", "database": "ANALYTICS", "schema": "PUBLIC", "role": "ANALYST" } ``` Note: For SSO/Okta troubleshooting (e.g., which authenticator a profile uses), prefer `health_check`, which surfaces the active profile’s authenticator details. ## Errors ```json { "status": "failed", "connected": false, "profile": "default", "error": "Authentication failed: Invalid credentials" } ``` ## Examples ```python # Test current connection result = test_connection() if result["connected"]: print(f"Connected to {result['warehouse']}") else: print(f"Connection failed: {result['error']}") ``` ## Use Cases 1. **Before running queries** - Verify connection is valid 2. **Troubleshooting** - Check which warehouse/database is active 3. **Profile validation** - Ensure credentials are correct ## Related - [check_profile_config](check_profile_config.md) - Validate profile setup - [health_check](health_check.md) - Comprehensive health status with authenticator details

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Evan-Kim2028/igloo-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server