looker-add-dashboard-filter

The “looker-add-dashboard-filter” tool adds a filter to a specified dashboard.

About

The looker-add-dashboard-filter tool adds a filter to a specified Looker dashboard.

CRITICAL ORDER OF OPERATIONS:

  1. Create a dashboard using make_dashboard.
  2. Add all desired filters using this tool (add_dashboard_filter).
  3. Finally, add dashboard elements (tiles) using add_dashboard_element.

It’s compatible with the following sources:

Parameters

parametertyperequireddefaultdescription
dashboard_idstringtruenoneThe ID of the dashboard to add the filter to, obtained from make_dashboard.
namestringtruenoneA unique internal identifier for the filter. This name is used later in add_dashboard_element to bind tiles to this filter.
titlestringtruenoneThe label displayed to users in the Looker UI.
filter_typestringtruefield_filterThe filter type of filter. Can be date_filter, number_filter, string_filter, or field_filter.
default_valuestringfalsenoneThe initial value for the filter.
modelstringif field_filternoneThe name of the LookML model, obtained from get_models.
explorestringif field_filternoneThe name of the explore within the model, obtained from get_explores.
dimensionstringif field_filternoneThe name of the field (e.g., view_name.field_name) to base the filter on, obtained from get_dimensions.
allow_multiple_valuesbooleanfalsetrueThe Dashboard Filter should allow multiple values
requiredbooleanfalsefalseThe Dashboard Filter is required to run dashboard

Example

tools:
  add_dashboard_filter:
    kind: looker-add-dashboard-filter
    source: looker-source
    description: |
      This tool adds a filter to a Looker dashboard.

      CRITICAL ORDER OF OPERATIONS:
      1. Create a dashboard using `make_dashboard`.
      2. Add all desired filters using this tool (`add_dashboard_filter`).
      3. Finally, add dashboard elements (tiles) using `add_dashboard_element`.

      Parameters:
      - dashboard_id (required): The ID from `make_dashboard`.
      - name (required): A unique internal identifier for the filter. You will use this `name` later in `add_dashboard_element` to bind tiles to this filter.
      - title (required): The label displayed to users in the UI.
      - filter_type (required): One of `date_filter`, `number_filter`, `string_filter`, or `field_filter`.
      - default_value (optional): The initial value for the filter.

      Field Filters (`flter_type: field_filter`):
      If creating a field filter, you must also provide:
      - model
      - explore
      - dimension
      The filter will inherit suggestions and type information from this LookML field.

Reference

fieldtyperequireddescription
kindstringtrueMust be “looker-add-dashboard-filter”.
sourcestringtrueName of the source the SQL should execute on.
descriptionstringtrueDescription of the tool that is passed to the LLM.
Last modified December 11, 2025: chore(main): release 0.23.0 (#2138) (466aef0)