`add_dashboard_element`: only the first dashboard filter binds when several are requested for one tile

Author: roannyCreated Sep 13, 2026Updated Sep 29, 2026
Labelstype: bugproduct: looker

Prerequisites

  • I've searched the current open issues
  • I've updated to the latest version of Toolbox

Toolbox version

v1.11.0. The code below is unchanged on main as of 2026-09-13.

Environment

Not environment-specific: the defect is in the request body the tool builds.

Client

Any MCP client calling the Looker add_dashboard_element tool with more than one dashboard filter binding.

Expected Behavior

A tile created with bindings to two (or more) dashboard filters listens to all of them: its result_maker.filterables holds one entry whose listen array carries one entry per dashboard filter, and the tile reacts to every bound filter.

Current Behavior

The tile listens to exactly one of the requested filters — the first. No error is returned: the API answers 200 and the element is created, so a caller that trusts the response believes every filter is bound.

In v1.11.0, internal/tools/looker/lookeradddashboardelement/lookeradddashboardelement.go lines 202-227 (source) build one ResultMakerFilterables entry per requested binding, each with a single-entry listen (line 220), and line 236 sends that array as the element's filterables. Looker keeps the first entry of that array and discards the rest.

Steps to reproduce?

  1. Create a dashboard with two filters — say brand on a string field and created_date on a date field.
  2. Call add_dashboard_element for one tile, requesting both filters as bindings for the tile's query.
  3. Read the element back (GET /dashboard_elements/{id}) and look at result_maker.filterables.
  4. Observed: one filterable whose listen carries the first binding only — the second is absent — and a tile that reacts to that filter alone. Expected: one filterable whose listen has both entries, and a tile that reacts to both.

Additional Details

The shape Looker stores. One ResultMakerFilterables entry for the tile's query, whose listen array carries one entry per dashboard filter (the filter's name and the field it drives). The grouping is per query, not per filter. On a production instance, 32 tiles built by hand in the Looker UI, each listening to two dashboard filters, carry exactly one filterable with a two-entry listen; a create through the per-binding shape on the same instance produced a tile bound to the first filter only.

Suggested fix. Build a single ResultMakerFilterables for the element and append every requested binding to its listen array, instead of one filterable per binding.

Why it is easy to miss. Looker answers 200 for a binding it did not apply, so only reading the element back after the write shows it. We hit the identical defect in another MCP server for Looker, confirmed it this way, and fixed it by grouping the bindings into one filterable; tiles created with the grouped shape keep every binding on read-back.