Draft: feat: add run glql query tool

What does this merge request do and why?

Adds a tool that executes a GitLab Query Language (GLQL) query and returns the results.

Important: This tool is dependant on a monolith MR Draft: Create a new GLQL REST API for Duo integ... (gitlab-org/gitlab!209517) planned for 18.7

Related issue: Create a tool in DAP that calls the GLQL API (gitlab-org/gitlab#578243)

Additional context: This change is required to launch the GitLab Analytics Agent MVC for GitLab Analytics Agent (gitlab-org&19500)

Screen recording

Screen_Recording_2025-11-14_at_12.06.22

How to set up and validate locally

To validate this tool in your GDK:

  1. Follow this guide and check out this branch on AI gateway
  2. Enable foundational agents feature flag duo_foundational_agents_availability
  3. Enable the foundational Analytics Agent feature flag foundational_analytics_agent
  4. Check out this WIP branch in your gitlab directory Draft: Create a new GLQL REST API for Duo integ... (gitlab-org/gitlab!209517).
  5. Navigate to a project, open Duo agentic chat, select the Analytics Agent and verify the responses to these questions:
  • How many MRs in this project?
  • How many issues in this group?

Merge request checklist

  • Tests added for new functionality. If not, please raise an issue to follow up.
  • Documentation added/updated, if needed.
  • If this change requires executor implementation: verified that issues/MRs exist for both Go executor and Node executor or confirmed that changes are backward-compatible and don't break existing executor functionality.
Edited by Robert Hunt

Merge request reports

Loading