discover_connections
Lists warehouses reachable from this machine by name without reading credentials or opening connections, and checks whether a named warehouse is supported or what route it needs.
Instructions
Which warehouses are reachable from this machine, by name.
Reads DuckDB files in the working directory, warehouse environment
variables, `$SEMLAYER_HOME/.env`, dbt's profiles.yml and Snowflake's
connections.toml. Names only: no credential is read, no value that
could be one is reported, and no connection is opened. Each entry says
whether semlayer can open it (`supported`) and what it would need if
not (`note`).
requested: the warehouse the user NAMED, in their words, when it is
not in the list -- "databricks", "our iceberg tables in s3", "redshift".
The answer says whether semlayer opens it after all (Redshift is the
postgres connection), and if not, the nearest route and what to tell
them. Pass it rather than guessing: a wrong guess here is either a
promise we cannot keep or a user sent away who did not need to be.
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": "discover_connections"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| requested | No | The warehouse the user named, in their own words, when it is not in the list: 'databricks', 'redshift', 'our iceberg tables in s3'. Omit it to list what is reachable. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |