cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Generative AI
Explore discussions on generative artificial intelligence techniques and applications within the Databricks Community. Share ideas, challenges, and breakthroughs in this cutting-edge field.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Databricks Genie One - Managing past conversation initiated by Databricks service principal account

ken_npk
New Contributor II

Hello everyone.

Recently, our team use Databricks service principal account, connecting to Genie One MCP server (via unity gateway) for data retrieval. However, we notice that there are currently no ways for us to manage the past conversations that had happened with service principal.

We not able to find SDKs or APIs to list all or perform deletion on past conversations initiated by service principal. As far as we know, there is no way for us to login as service principal and perform deletion via Genie One interface. We also noted that those functionalities only available for Genie Agent.

This limitation is problematic for us. In some cases, Genie One has misinterpreted our data during its reasoning process. Although we have corrected the relevant issues in the data semantic layer, Genie One continues to rely on past conversations containing incorrect interpretations when answering user questions. Since we are unable to delete these past conversations, it is difficult for us to prevent Genie One from reusing misleading context.

Are there any future plans on having a way for listing all or performing deletion on past conversations that were done by service principals? Or are there any alternative ways to manage the past conversations by service principals?

Appreciate any insights and suggestions from Databricks community. Thank you.

3 REPLIES 3

Ashwin_DSA
Databricks Employee
Databricks Employee

Hi @ken_npk,

Thanks for the detailed write-up. I think there is a supported way to list and delete service principal conversations, with one caveat about which MCP server you are using.

The reason you can't find the service principal's conversations is that the list call only returns the caller's own conversations by default. The Genie Conversation API has an include_all option that returns conversations from all users in a Genie Agent, provided the caller has CAN_MANAGE permission. You don't need to sign in as the service principal. Any user or service principal with CAN_MANAGE can list and then delete. The list conversations and delete conversation endpoints are documented, and the Conversation API guide also covers deletion.

I tested this using a service principal that calls the per-agent Genie MCP endpoint. Its conversation did not appear in the default list, appeared when I added include_all, and was removed by the delete call. With the CLI, it looks like this:

databricks genie list-conversations <space_id> --include-all
databricks genie delete-conversation <space_id> <conversation_id>

The list response includes a creation timestamp and a conversation type, so you can target old conversations by age.

Your post mentions the Genie One MCP. That server is workspace-wide, as described on the managed MCP servers page, while the list and delete calls above are scoped to a single Genie Agent. I tested the per-agent endpoint, so I can't confirm whether conversations from the Genie One MCP appear in those calls. Please run the list command with include_all on the agents your questions affect, and let us know what comes back. If nothing from the service principal appears, your Databricks account team is the right route for a feature request. I can't speak to plans.

The per-agent Genie MCP tool treats each query as standalone unless you pass a conversation_id. If your client passes the same conversation_id on follow-up questions, earlier reasoning stays in that conversation. Starting a fresh conversation for each question avoids carrying it over. Deleting a conversation also does not remove its rows from system.query.history, which has its own retention period.

Try the list command with include_all first and check whether the service principal's conversations appear. If they do, delete the ones with incorrect interpretations and check how your client handles conversation_id. Post back with what you find and we can look further.

If this answer resolves your question, could you mark it as โ€œAccept as Solutionโ€? That helps other users quickly find the correct fix.

Regards,
Ashwin | Delivery Solution Architect @ Databricks
Helping you build and scale the Data Intelligence Platform.
***Opinions are my own***

ken_npk
New Contributor II

Hi, thanks for checking out my enquiry and your detail guides.

To add on, we used service principal account to call the following URL:

https://<workspace-hostname>/ai-gateway/mcp-services/system.ai.genie_one_mcp
 
We had checked both databricks-cli commands mentioned:
databricks genie list-conversations <space_id> --include-all
databricks genie delete-conversation <space_id> <conversation_id>

Unfortunately, <space_id> is a required argument. Currently, we are not using or setup any Genie Agents in our workspace.

Ashwin_DSA
Databricks Employee
Databricks Employee

Hi @ken_npk,

Thanks for the extra detail and for checking the commands. Agree... the answer I gave earlier does not apply to your setup. Those calls work per Genie Agent, so they need a space ID.

I reproduced your case by calling the same gateway URL as a service principal. The Genie One MCP server only exposes tools to ask a question, poll for the answer, fetch query results, and cancel a response. There is no tool to list or delete past conversations. The conversation it creates is a Genie One thread, a separate store from Genie Agent conversations, and none of the list or delete calls I tried on the workspace's Genie Agents could see it. I also could not find a documented API for managing those threads.

Please raise this with your Databricks account team or through a support ticket as a feature request, and describe both needs.. Listing threads created by a service principal, and deleting the ones where the model misreads your data. A thread ID from one of your calls would help them find where it is stored.

 

Regards,
Ashwin | Delivery Solution Architect @ Databricks
Helping you build and scale the Data Intelligence Platform.
***Opinions are my own***