Skip to content

Fix: consolidated get_azure_ai_resources_details tool not triggered by Cognitive Search / knowledge source prompts#3041

Open
LarryOsterman with Copilot wants to merge 3 commits into
mainfrom
copilot/fix-get-azure-ai-resources-tool
Open

Fix: consolidated get_azure_ai_resources_details tool not triggered by Cognitive Search / knowledge source prompts#3041
LarryOsterman with Copilot wants to merge 3 commits into
mainfrom
copilot/fix-get-azure-ai-resources-tool

Conversation

Copilot AI commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

In consolidated mode, the AI model failed to route prompts about "Cognitive Search services", "knowledge sources", and "indexes" to get_azure_ai_resources_details — instead falling back to Azure CLI or unrelated tools. Root cause: the tool description lacked the exact vocabulary users employ.

Changes

  • servers/Azure.Mcp.Server/src/Resources/consolidated-tools.json: Rewrote get_azure_ai_resources_details description to explicitly surface all covered capabilities and their common aliases:

    Before After
    "Get details about Azure AI resources including listing and querying AI Search services, knowledge base and source information." "Get details about Azure AI Search (also known as Azure Cognitive Search) services, indexes, knowledge sources, and knowledge bases. List all Cognitive Search services in a subscription; list or get details of indexes (knowledge indexes) in a search service; list or get details of knowledge sources in a search service; list or get details of knowledge bases in a search service; or query an Azure AI Search index for specific content."

    Key terms added: Cognitive Search, knowledge indexes, knowledge sources, explicit listing/getting actions per resource type.

  • changelog-entries/: Added bug fix entry.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI added 2 commits July 14, 2026 22:58
…xplicitly mention Cognitive Search, knowledge sources, knowledge bases, and indexes
Copilot AI changed the title [WIP] Fix prompts for get_azure_ai_resources_details tool in consolidated mode Fix: consolidated get_azure_ai_resources_details tool not triggered by Cognitive Search / knowledge source prompts Jul 14, 2026
Copilot AI requested a review from LarryOsterman July 14, 2026 23:00
@LarryOsterman LarryOsterman marked this pull request as ready for review July 15, 2026 20:54
@LarryOsterman LarryOsterman requested a review from a team as a code owner July 15, 2026 20:54
Copilot AI review requested due to automatic review settings July 15, 2026 20:54
@LarryOsterman LarryOsterman requested a review from a team as a code owner July 15, 2026 20:54
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI 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.

Pull request overview

Updates the consolidated-mode tool description for get_azure_ai_resources_details so user prompts about Azure AI Search / Azure Cognitive Search (services, indexes, knowledge sources, knowledge bases) are more likely to route to the correct consolidated tool rather than falling back to unrelated tooling.

Changes:

  • Expanded get_azure_ai_resources_details description to explicitly include common Azure AI Search / Azure Cognitive Search vocabulary and operations (list/get/query).
  • Added a changelog entry documenting the routing/description fix.

Invoking Livetests

Copilot submitted PRs are not trustworthy by default. Users with write access to the repo need to validate the contents of this PR before leaving a comment with the text /azp run mcp - pullrequest - live. This will trigger the necessary livetest workflows to complete required validation.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
servers/Azure.Mcp.Server/src/Resources/consolidated-tools.json Refines consolidated tool description keywords for better prompt routing to Azure AI Search/Cognitive Search operations.
servers/Azure.Mcp.Server/changelog-entries/copilot-fix-ai-search-consolidated-description.yml Adds a Bug Fixes changelog entry describing the consolidated description update.

{
"name": "get_azure_ai_resources_details",
"description": "Get details about Azure AI resources including listing and querying AI Search services, knowledge base and source information.",
"description": "Get details about Azure AI Search (also known as Azure Cognitive Search) services, indexes, knowledge sources, and knowledge bases. List all Cognitive Search services in a subscription; list or get details of indexes (knowledge indexes) in a search service; list or get details of knowledge sources in a search service; list or get details of knowledge bases in a search service; or query an Azure AI Search index for specific content.",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CONSOLIDATED] Some get_azure_ai_resources_details prompts do not trigger the corresponding tool as expected

3 participants