looker-make-look
“looker-make-look” generates a Looker look in the users personal folder in Looker
About
The looker-make-look creates a saved Look in the user’s
Looker personal folder.
It’s compatible with the following sources:
looker-make-look takes eleven parameters:
- the
model - the
explore - the
fieldslist - an optional set of
filters - an optional set of
pivots - an optional set of
sorts - an optional
limit - an optional
tz - an optional
vis_config - the
title - an optional
description
Example
tools:
make_look:
kind: looker-make-look
source: looker-source
description: |
This tool creates a new Look (saved query with visualization) in Looker.
The Look will be saved in the user's personal folder, and its name must be unique.
Required Parameters:
- title: A unique title for the new Look.
- description: A brief description of the Look's purpose.
- model_name: The name of the LookML model (from `get_models`).
- explore_name: The name of the explore (from `get_explores`).
- fields: A list of field names (dimensions, measures, filters, or parameters) to include in the query.
Optional Parameters:
- pivots, filters, sorts, limit, query_timezone: These parameters are identical
to those described for the `query` tool.
- vis_config: A JSON object defining the visualization settings for the Look.
The structure and options are the same as for the `query_url` tool's `vis_config`.
Output:
A JSON object containing a link (`url`) to the newly created Look, along with its `id` and `slug`.
Reference
| field | type | required | description |
|---|---|---|---|
| kind | string | true | Must be “looker-make-look” |
| source | string | true | Name of the source the SQL should execute on. |
| description | string | true | Description of the tool that is passed to the LLM. |