Back to Genai Toolbox

looker-get-explores

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

1.1.01.4 KB
Original Source

About

A looker-get-explores tool returns all explores for a given model from the source.

looker-get-explores accepts one parameter, the model id.

The return type is an array of maps, each map is formatted like:

json
{
    "name": "explore name",
    "description": "explore description",
    "label": "explore label",
    "group_label": "group label"
}

Compatible Sources

{{< compatible-sources >}}

Example

yaml
kind: tool
name: get_explores
type: looker-get-explores
source: looker-source
description: |
  This tool retrieves a list of explores defined within a specific LookML model.
  Explores represent a curated view of your data, typically joining several
  tables together to allow for focused analysis on a particular subject area.
  The output provides details like the explore's `name` and `label`.

  Parameters:
  - model_name (required): The name of the LookML model, obtained from `get_models`.

Reference

fieldtyperequireddescription
typestringtrueMust be "looker-get-explores".
sourcestringtrueName of the source the SQL should execute on.
descriptionstringtrueDescription of the tool that is passed to the LLM.