Back to Genai Toolbox

looker-get-connections

docs/en/integrations/looker/tools/looker-get-connections.md

1.1.01.4 KB
Original Source

About

A looker-get-connections tool returns all the connections in the source.

looker-get-connections accepts no parameters.

Compatible Sources

{{< compatible-sources >}}

Example

yaml
kind: tool
name: get_connections
type: looker-get-connections
source: looker-source
description: |
  This tool retrieves a list of all database connections configured in the Looker system.

  Parameters:
  This tool takes no parameters.

  Output:
  A JSON array of objects, each representing a database connection and including details such as:
  - `name`: The connection's unique identifier.
  - `dialect`: The database dialect (e.g., "mysql", "postgresql", "bigquery").
  - `default_schema`: The default schema for the connection.
  - `database`: The associated database name (if applicable).
  - `supports_multiple_databases`: A boolean indicating if the connection can access multiple databases.

Reference

fieldtyperequireddescription
typestringtrueMust be "looker-get-connections".
sourcestringtrueName of the source Looker instance.
descriptionstringtrueDescription of the tool that is passed to the LLM.