Skip to content

feat(tools/looker): add looker-agent tool#2827

Closed
hiracky16 wants to merge 12 commits intogoogleapis:mainfrom
hiracky16:main
Closed

feat(tools/looker): add looker-agent tool#2827
hiracky16 wants to merge 12 commits intogoogleapis:mainfrom
hiracky16:main

Conversation

@hiracky16
Copy link
Copy Markdown
Contributor

@hiracky16 hiracky16 commented Mar 24, 2026

Description

This PR adds a new tool looker-agent to the Looker source. This tool enables Model Context Protocol (MCP) clients to manage Looker AI Agents programmatically.

Changes

  • Implemented looker-agent tool in internal/tools/looker/lookeragent.
  • Supported operations:
    • list: Search for available agents.
    • get: Retrieve details of a specific agent.
    • create: Create a new AI agent.
    • delete: Remove an existing agent.
  • Added unit tests for configuration parsing and validation in internal/tools/looker/lookeragent/lookeragent_test.go.
  • Added documentation in docs/en/resources/tools/looker-agent.md.

Impact

Allows LLMs to manage the lifecycle of Looker AI Agents, enabling more advanced agentic workflows within the Looker ecosystem.

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 #2823

@hiracky16 hiracky16 requested review from a team as code owners March 24, 2026 12:07
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces the looker-agent tool, which empowers Model Context Protocol (MCP) clients to programmatically interact with and manage Looker AI Agents. This enhancement facilitates more sophisticated agentic workflows within the Looker ecosystem by allowing Large Language Models (LLMs) to control the lifecycle of these agents.

Highlights

  • New Tool Added: A new looker-agent tool has been implemented, enabling programmatic management of Looker AI Agents.
  • Supported Operations: The looker-agent tool supports list, get, create, and delete operations for AI agents.
  • Unit Tests: Unit tests were added to validate the configuration parsing and functionality of the looker-agent tool.
  • Documentation: Comprehensive documentation for the looker-agent tool, including its configuration and usage, has been added.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

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

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 a new looker-agent tool for managing Looker AI Agents. The implementation is clean and follows the existing structure for tools in this repository. My review includes a suggestion to use more appropriate HTTP status codes for client-side errors. Additionally, it appears a duplicate documentation file has been added, which should be cleaned up, and the Looker Go SDK version should be verified.

@duwenxin99 duwenxin99 added the priority: p2 Moderately-important priority. Fix may not be included in next release. label Mar 24, 2026
@drstrangelooker drstrangelooker added the tests: run Label to trigger Github Action tests. label Mar 24, 2026
@drstrangelooker
Copy link
Copy Markdown
Contributor

/gcbrun

@github-actions
Copy link
Copy Markdown
Contributor

@drstrangelooker
Copy link
Copy Markdown
Contributor

Working in PR #2830 now.

drstrangelooker added a commit that referenced this pull request Apr 8, 2026
## Description

Looker agent management from MCP

## 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/genai-toolbox/blob/main/CONTRIBUTING.md)
- [x] Make sure to open an issue as a

[bug/issue](https://github.com/googleapis/genai-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 #2827

---------

Co-authored-by: hiracky16 <h.piiice16@gmail.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
github-actions bot pushed a commit that referenced this pull request Apr 8, 2026
## Description

Looker agent management from MCP

## 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/genai-toolbox/blob/main/CONTRIBUTING.md)
- [x] Make sure to open an issue as a

[bug/issue](https://github.com/googleapis/genai-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 #2827

---------

Co-authored-by: hiracky16 <h.piiice16@gmail.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> 649d4ad
github-actions bot pushed a commit to renovate-bot/googleapis-_-genai-toolbox that referenced this pull request Apr 8, 2026
…pis#2830)

## Description

Looker agent management from MCP

## 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/genai-toolbox/blob/main/CONTRIBUTING.md)
- [x] Make sure to open an issue as a

[bug/issue](https://github.com/googleapis/genai-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#2827

---------

Co-authored-by: hiracky16 <h.piiice16@gmail.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> 649d4ad
github-actions bot pushed a commit to bhardwajRahul/genai-toolbox that referenced this pull request Apr 9, 2026
…pis#2830)

## Description

Looker agent management from MCP

## 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/genai-toolbox/blob/main/CONTRIBUTING.md)
- [x] Make sure to open an issue as a

[bug/issue](https://github.com/googleapis/genai-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#2827

---------

Co-authored-by: hiracky16 <h.piiice16@gmail.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> 649d4ad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: p2 Moderately-important priority. Fix may not be included in next release. tests: run Label to trigger Github Action tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(tools/looker): add looker-agent tool to manage AI Agents

4 participants