looker-get-measures

A “looker-get-measures” tool returns all the measures from a given explore in a given model in the source.

About

A looker-get-measures tool returns all the measures from a given explore in a given model in the source.

It’s compatible with the following sources:

looker-get-measures accepts two parameters, the model and the explore.

Example

tools:
    get_measures:
        kind: looker-get-measures
        source: looker-source
        description: |
          The get_measures tool retrieves the list of measures defined in
          an explore.

          It takes two parameters, the model_name looked up from get_models and the
          explore_name looked up from get_explores.

The response is a json array with the following elements:

{
  "name": "field name",
  "description": "field description",
  "type": "field type",
  "label": "field label",
  "label_short": "field short label",
  "tags": ["tags", ...],
  "synonyms": ["synonyms", ...]
}

Reference

fieldtyperequireddescription
kindstringtrueMust be “looker-get-measures”.
sourcestringtrueName of the source the SQL should execute on.
descriptionstringtrueDescription of the tool that is passed to the LLM.