Skip to content

feat(looker): support dynamic_fields parameter in queries#3507

Merged
drstrangelooker merged 1 commit into
mainfrom
looker-query-dynamic-fields
Jun 25, 2026
Merged

feat(looker): support dynamic_fields parameter in queries#3507
drstrangelooker merged 1 commit into
mainfrom
looker-query-dynamic-fields

Conversation

@drstrangelooker

Copy link
Copy Markdown
Contributor

Description

Support a dynamic_fields parameter to a query. This allows custom table calcs to be added to queries.

PR Checklist

Thank you for opening a Pull Request! Before submitting your PR, there are a
few things you can do to make sure it goes smoothly:

  • Make sure you reviewed
    CONTRIBUTING.md
  • Make sure to open an issue as a
    bug/issue
    before writing your code! That way we can discuss the change, evaluate
    designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)
  • Make sure to add ! if this involve a breaking change

🛠️ Fixes #3456

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces support for an optional dynamic_fields parameter across Looker query tools (looker-query, looker-query-sql, and looker-query-url). The parameter allows users to define ad-hoc calculations like table calculations, custom measures, and custom dimensions. The changes span documentation, prebuilt configurations, Go implementation in lookercommon.go, and corresponding unit and integration tests. Feedback suggests adding a defensive check to ensure the dynamic_fields slice contains elements before marshaling it to JSON, preventing empty arrays from being sent to the Looker API.

Comment thread internal/tools/looker/lookercommon/lookercommon.go
@drstrangelooker drstrangelooker force-pushed the looker-query-dynamic-fields branch 9 times, most recently from 1f8d020 to b7a176b Compare June 25, 2026 17:36
@drstrangelooker drstrangelooker enabled auto-merge (squash) June 25, 2026 17:37
@drstrangelooker drstrangelooker force-pushed the looker-query-dynamic-fields branch from 75e0bd9 to 1f8d020 Compare June 25, 2026 17:42
@drstrangelooker drstrangelooker force-pushed the looker-query-dynamic-fields branch from b7a176b to df08356 Compare June 25, 2026 18:52
@drstrangelooker drstrangelooker added the release candidate Use label to signal PR should be included in the next release. label Jun 25, 2026
@drstrangelooker drstrangelooker merged commit cd22b89 into main Jun 25, 2026
39 checks passed
@drstrangelooker drstrangelooker deleted the looker-query-dynamic-fields branch June 25, 2026 19:21
@github-actions

Copy link
Copy Markdown
Contributor

🧨 Preview deployments removed.

Cloudflare Pages environments for pr-3507 have been deleted.

github-actions Bot pushed a commit that referenced this pull request Jun 25, 2026
)

## Description

Support a dynamic_fields parameter to a query. This allows custom table
calcs to be added to queries.

## PR Checklist

> Thank you for opening a Pull Request! Before submitting your PR, there
are a
> few things you can do to make sure it goes smoothly:

- [x] Make sure you reviewed

[CONTRIBUTING.md](https://github.com/googleapis/mcp-toolbox/blob/main/CONTRIBUTING.md)
- [x] Make sure to open an issue as a

[bug/issue](https://github.com/googleapis/mcp-toolbox/issues/new/choose)
  before writing your code! That way we can discuss the change, evaluate
  designs, and agree on the general idea
- [x] Ensure the tests and linter pass
- [x] Code coverage does not decrease (if any source code was changed)
- [x] Appropriate docs were updated (if necessary)
- [x] Make sure to add `!` if this involve a breaking change

🛠️ Fixes #3456 cd22b89
github-actions Bot pushed a commit to huangjiahua/genai-toolbox that referenced this pull request Jun 25, 2026
…ogleapis#3507)

## Description

Support a dynamic_fields parameter to a query. This allows custom table
calcs to be added to queries.

## PR Checklist

> Thank you for opening a Pull Request! Before submitting your PR, there
are a
> few things you can do to make sure it goes smoothly:

- [x] Make sure you reviewed

[CONTRIBUTING.md](https://github.com/googleapis/mcp-toolbox/blob/main/CONTRIBUTING.md)
- [x] Make sure to open an issue as a

[bug/issue](https://github.com/googleapis/mcp-toolbox/issues/new/choose)
  before writing your code! That way we can discuss the change, evaluate
  designs, and agree on the general idea
- [x] Ensure the tests and linter pass
- [x] Code coverage does not decrease (if any source code was changed)
- [x] Appropriate docs were updated (if necessary)
- [x] Make sure to add `!` if this involve a breaking change

🛠️ Fixes googleapis#3456 cd22b89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release candidate Use label to signal PR should be included in the next release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Looker MCP connector: missing capabilities blocking production use

3 participants