fix(tool/looker-create-view-from-table): correct Looker API payload s…#3515
Merged
drstrangelooker merged 3 commits intoJun 25, 2026
Conversation
…tructure to resolve 500 error
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the CreateViewsFromTables function in internal/tools/looker/lookercommon/lookercommon.go to pass the entire reqBody struct instead of just the reqBody.Tables slice, ensuring the API receives a JSON object with a tables property rather than a raw array. There are no review comments, and I have no additional feedback to provide.
drstrangelooker
approved these changes
Jun 24, 2026
Contributor
|
/gcbrun |
Contributor
|
/gcbrun |
Yuan325
added a commit
that referenced
this pull request
Jul 1, 2026
🤖 I have created a release *beep* *boop* --- ## [1.6.0](v1.5.0...v1.6.0) (2026-06-30) ### Features * Support MCP 2026 draft specs ([#3544](#3544)) ([d12eaa8](d12eaa8)) * **release:** Add digital signature to Toolbox binaries ([#3528](#3528)) ([3f0f0af](3f0f0af)) * **tool/cloud-storage:** Configure object operation parameters ([#3529](#3529)) ([d6dc5fe](d6dc5fe)) * **tool/cloud-storage:** Support configurable parameters ([#3478](#3478)) ([bc2de2a](bc2de2a)) * **tools/dataplex-list-data-products:** Add dataplex-list-data-products tool ([#3337](#3337)) ([6dd669a](6dd669a)) * **tools/dataplex-get-data-product:** Add dataplex-get-data-product tool ([#3499](#3499)) ([7ea7a09](7ea7a09)) * **tools/dataplex-list-data-assets:** Add dataplex-list-data-assets tool ([#3500](#3500)) ([182f933](182f933)) * **tools/looker:** Support complex filter_expression parameter in queries ([#3494](#3494)) ([997fb8c](997fb8c)) * **tools/looker:** Support dynamic_fields parameter in queries ([#3507](#3507)) ([cd22b89](cd22b89)) ### Bug Fixes * **tools/gda:** Support mTLS and GOOGLE_API_USE_MTLS_ENDPOINT for GDA client ([#3460](#3460)) ([cc2a61e](cc2a61e)) * **tools/looker-conversational-analytics:** Validate explore_references shape instead of panicking ([#3531](#3531)) ([b67419d](b67419d)) * **tool/looker-create-view-from-table:** Correct Looker API payload structure ([#3515](#3515)) ([18c539c](18c539c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com>
github-actions Bot
pushed a commit
that referenced
this pull request
Jul 1, 2026
🤖 I have created a release *beep* *boop* --- ## [1.6.0](v1.5.0...v1.6.0) (2026-06-30) ### Features * Support MCP 2026 draft specs ([#3544](#3544)) ([d12eaa8](d12eaa8)) * **release:** Add digital signature to Toolbox binaries ([#3528](#3528)) ([3f0f0af](3f0f0af)) * **tool/cloud-storage:** Configure object operation parameters ([#3529](#3529)) ([d6dc5fe](d6dc5fe)) * **tool/cloud-storage:** Support configurable parameters ([#3478](#3478)) ([bc2de2a](bc2de2a)) * **tools/dataplex-list-data-products:** Add dataplex-list-data-products tool ([#3337](#3337)) ([6dd669a](6dd669a)) * **tools/dataplex-get-data-product:** Add dataplex-get-data-product tool ([#3499](#3499)) ([7ea7a09](7ea7a09)) * **tools/dataplex-list-data-assets:** Add dataplex-list-data-assets tool ([#3500](#3500)) ([182f933](182f933)) * **tools/looker:** Support complex filter_expression parameter in queries ([#3494](#3494)) ([997fb8c](997fb8c)) * **tools/looker:** Support dynamic_fields parameter in queries ([#3507](#3507)) ([cd22b89](cd22b89)) ### Bug Fixes * **tools/gda:** Support mTLS and GOOGLE_API_USE_MTLS_ENDPOINT for GDA client ([#3460](#3460)) ([cc2a61e](cc2a61e)) * **tools/looker-conversational-analytics:** Validate explore_references shape instead of panicking ([#3531](#3531)) ([b67419d](b67419d)) * **tool/looker-create-view-from-table:** Correct Looker API payload structure ([#3515](#3515)) ([18c539c](18c539c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com> 35c13ad
github-actions Bot
pushed a commit
to pepe57/genai-toolbox
that referenced
this pull request
Jul 1, 2026
🤖 I have created a release *beep* *boop* --- ## [1.6.0](googleapis/mcp-toolbox@v1.5.0...v1.6.0) (2026-06-30) ### Features * Support MCP 2026 draft specs ([googleapis#3544](googleapis#3544)) ([d12eaa8](googleapis@d12eaa8)) * **release:** Add digital signature to Toolbox binaries ([googleapis#3528](googleapis#3528)) ([3f0f0af](googleapis@3f0f0af)) * **tool/cloud-storage:** Configure object operation parameters ([googleapis#3529](googleapis#3529)) ([d6dc5fe](googleapis@d6dc5fe)) * **tool/cloud-storage:** Support configurable parameters ([googleapis#3478](googleapis#3478)) ([bc2de2a](googleapis@bc2de2a)) * **tools/dataplex-list-data-products:** Add dataplex-list-data-products tool ([googleapis#3337](googleapis#3337)) ([6dd669a](googleapis@6dd669a)) * **tools/dataplex-get-data-product:** Add dataplex-get-data-product tool ([googleapis#3499](googleapis#3499)) ([7ea7a09](googleapis@7ea7a09)) * **tools/dataplex-list-data-assets:** Add dataplex-list-data-assets tool ([googleapis#3500](googleapis#3500)) ([182f933](googleapis@182f933)) * **tools/looker:** Support complex filter_expression parameter in queries ([googleapis#3494](googleapis#3494)) ([997fb8c](googleapis@997fb8c)) * **tools/looker:** Support dynamic_fields parameter in queries ([googleapis#3507](googleapis#3507)) ([cd22b89](googleapis@cd22b89)) ### Bug Fixes * **tools/gda:** Support mTLS and GOOGLE_API_USE_MTLS_ENDPOINT for GDA client ([googleapis#3460](googleapis#3460)) ([cc2a61e](googleapis@cc2a61e)) * **tools/looker-conversational-analytics:** Validate explore_references shape instead of panicking ([googleapis#3531](googleapis#3531)) ([b67419d](googleapis@b67419d)) * **tool/looker-create-view-from-table:** Correct Looker API payload structure ([googleapis#3515](googleapis#3515)) ([18c539c](googleapis@18c539c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com> 35c13ad
github-actions Bot
pushed a commit
to rodineyw/mcp-toolbox
that referenced
this pull request
Jul 1, 2026
🤖 I have created a release *beep* *boop* --- ## [1.6.0](googleapis/mcp-toolbox@v1.5.0...v1.6.0) (2026-06-30) ### Features * Support MCP 2026 draft specs ([googleapis#3544](googleapis#3544)) ([d12eaa8](googleapis@d12eaa8)) * **release:** Add digital signature to Toolbox binaries ([googleapis#3528](googleapis#3528)) ([3f0f0af](googleapis@3f0f0af)) * **tool/cloud-storage:** Configure object operation parameters ([googleapis#3529](googleapis#3529)) ([d6dc5fe](googleapis@d6dc5fe)) * **tool/cloud-storage:** Support configurable parameters ([googleapis#3478](googleapis#3478)) ([bc2de2a](googleapis@bc2de2a)) * **tools/dataplex-list-data-products:** Add dataplex-list-data-products tool ([googleapis#3337](googleapis#3337)) ([6dd669a](googleapis@6dd669a)) * **tools/dataplex-get-data-product:** Add dataplex-get-data-product tool ([googleapis#3499](googleapis#3499)) ([7ea7a09](googleapis@7ea7a09)) * **tools/dataplex-list-data-assets:** Add dataplex-list-data-assets tool ([googleapis#3500](googleapis#3500)) ([182f933](googleapis@182f933)) * **tools/looker:** Support complex filter_expression parameter in queries ([googleapis#3494](googleapis#3494)) ([997fb8c](googleapis@997fb8c)) * **tools/looker:** Support dynamic_fields parameter in queries ([googleapis#3507](googleapis#3507)) ([cd22b89](googleapis@cd22b89)) ### Bug Fixes * **tools/gda:** Support mTLS and GOOGLE_API_USE_MTLS_ENDPOINT for GDA client ([googleapis#3460](googleapis#3460)) ([cc2a61e](googleapis@cc2a61e)) * **tools/looker-conversational-analytics:** Validate explore_references shape instead of panicking ([googleapis#3531](googleapis#3531)) ([b67419d](googleapis@b67419d)) * **tool/looker-create-view-from-table:** Correct Looker API payload structure ([googleapis#3515](googleapis#3515)) ([18c539c](googleapis@18c539c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com> 35c13ad
github-actions Bot
pushed a commit
to Jaleel-zhu/genai-toolbox
that referenced
this pull request
Jul 1, 2026
🤖 I have created a release *beep* *boop* --- ## [1.6.0](googleapis/mcp-toolbox@v1.5.0...v1.6.0) (2026-06-30) ### Features * Support MCP 2026 draft specs ([googleapis#3544](googleapis#3544)) ([d12eaa8](googleapis@d12eaa8)) * **release:** Add digital signature to Toolbox binaries ([googleapis#3528](googleapis#3528)) ([3f0f0af](googleapis@3f0f0af)) * **tool/cloud-storage:** Configure object operation parameters ([googleapis#3529](googleapis#3529)) ([d6dc5fe](googleapis@d6dc5fe)) * **tool/cloud-storage:** Support configurable parameters ([googleapis#3478](googleapis#3478)) ([bc2de2a](googleapis@bc2de2a)) * **tools/dataplex-list-data-products:** Add dataplex-list-data-products tool ([googleapis#3337](googleapis#3337)) ([6dd669a](googleapis@6dd669a)) * **tools/dataplex-get-data-product:** Add dataplex-get-data-product tool ([googleapis#3499](googleapis#3499)) ([7ea7a09](googleapis@7ea7a09)) * **tools/dataplex-list-data-assets:** Add dataplex-list-data-assets tool ([googleapis#3500](googleapis#3500)) ([182f933](googleapis@182f933)) * **tools/looker:** Support complex filter_expression parameter in queries ([googleapis#3494](googleapis#3494)) ([997fb8c](googleapis@997fb8c)) * **tools/looker:** Support dynamic_fields parameter in queries ([googleapis#3507](googleapis#3507)) ([cd22b89](googleapis@cd22b89)) ### Bug Fixes * **tools/gda:** Support mTLS and GOOGLE_API_USE_MTLS_ENDPOINT for GDA client ([googleapis#3460](googleapis#3460)) ([cc2a61e](googleapis@cc2a61e)) * **tools/looker-conversational-analytics:** Validate explore_references shape instead of panicking ([googleapis#3531](googleapis#3531)) ([b67419d](googleapis@b67419d)) * **tool/looker-create-view-from-table:** Correct Looker API payload structure ([googleapis#3515](googleapis#3515)) ([18c539c](googleapis@18c539c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com> 35c13ad
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR fixes an issue where the looker-create-view-from-table tool triggers a 500 Internal Server Error from the Looker API. The API expects a JSON object wrapper with a tables property containing the array of tables, but the code was passing the raw array directly.
PR Checklist
CONTRIBUTING.md
bug/issue
before writing your code! That way we can discuss the change, evaluate
designs, and agree on the general idea
!if this involve a breaking change🛠️ Fixes #3514