Skip to content

Enhance descriptions for Kusto tools#666

Merged
vcolin7 merged 8 commits intomicrosoft:mainfrom
vcolin7:description-tuning/kusto-under-threshold
Oct 2, 2025
Merged

Enhance descriptions for Kusto tools#666
vcolin7 merged 8 commits intomicrosoft:mainfrom
vcolin7:description-tuning/kusto-under-threshold

Conversation

@vcolin7
Copy link
Copy Markdown
Contributor

@vcolin7 vcolin7 commented Oct 1, 2025

What does this PR do?

This PR updates the descriptions of Kusto tools to get them all above the 0.4 cosine similarity threshold, make them the top choice and reduce ambiguity vs. the second choice.

image

GitHub issue number?

#253

Pre-merge Checklist

  • Required for All PRs
    • Read contribution guidelines
    • PR title clearly describes the change
    • Commit history is clean with descriptive messages (cleanup guide)
    • Added comprehensive tests for new/modified functionality
    • Updated servers/Azure.Mcp.Server/CHANGELOG.md and/or servers/Fabric.Mcp.Server/CHANGELOG.md for product changes (features, bug fixes, UI/UX, updated dependencies)
  • For MCP tool changes:
    • One tool per PR: This PR adds or modifies only one MCP tool for faster review cycles
    • Updated servers/Azure.Mcp.Server/README.md and/or servers/Fabric.Mcp.Server/README.md documentation
    • Updated command list in /docs/azmcp-commands.md and/or /docs/fabric-commands.md
    • For new or modified tool descriptions, ran ToolDescriptionEvaluator and obtained a score of 0.4 or more and a top 3 ranking for all related test prompts
    • For new tools associated with Azure services or publicly available tools/APIs/products, add URL to documentation in the PR description
  • Extra steps for Azure MCP Server tool changes:
    • Updated test prompts in /docs/e2eTestPrompts.md
    • 👉 For Community (non-Microsoft team member) PRs:
      • Security review: Reviewed code for security vulnerabilities, malicious code, or suspicious activities before running tests (crypto mining, spam, data exfiltration, etc.)
      • Manual tests run: added comment /azp run mcp - pullrequest - live to run Live Test Pipeline

@vcolin7 vcolin7 added this to the 2025-10 milestone Oct 1, 2025
@vcolin7 vcolin7 self-assigned this Oct 1, 2025
Copilot AI review requested due to automatic review settings October 1, 2025 22:10
@vcolin7 vcolin7 requested review from a team, danield137 and prvavill as code owners October 1, 2025 22:10
@vcolin7 vcolin7 added tools-Kusto tools-ToolSelection Issues related to the Tools Description Evaluator and incorrect tool selection by LLMs labels Oct 1, 2025
@github-project-automation github-project-automation Bot moved this to Untriaged in Azure MCP Server Oct 1, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the descriptions for Kusto tools to improve their discoverability and reduce ambiguity when selected by LLMs, aiming to achieve a cosine similarity threshold of 0.4 or higher.

  • Updated descriptions for all 7 Kusto command tools to include synonyms like "Azure Data Explorer" and "KQL"
  • Modified parameter formatting from backticks to double dashes for consistency
  • Updated changelog and test configuration files to reflect the changes

Reviewed Changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tools/Azure.Mcp.Tools.Kusto/src/Commands/TableSchemaCommand.cs Enhanced description with synonyms and standardized parameter format
tools/Azure.Mcp.Tools.Kusto/src/Commands/TableListCommand.cs Updated description to include Azure Data Explorer/KQL terms
tools/Azure.Mcp.Tools.Kusto/src/Commands/SampleCommand.cs Enhanced description with synonyms and parameter formatting
tools/Azure.Mcp.Tools.Kusto/src/Commands/QueryCommand.cs Improved description with more specific use cases and synonyms
tools/Azure.Mcp.Tools.Kusto/src/Commands/DatabaseListCommand.cs Updated description with Azure Data Explorer/KQL terms
tools/Azure.Mcp.Tools.Kusto/src/Commands/ClusterListCommand.cs Enhanced description with synonyms
tools/Azure.Mcp.Tools.Kusto/src/Commands/ClusterGetCommand.cs Improved description with clarification and synonyms
servers/Azure.Mcp.Server/CHANGELOG.md Added changelog entry for Kusto command description updates
eng/tools/ToolDescriptionEvaluator/tools.json Updated tool descriptions in evaluation configuration
eng/tools/ToolDescriptionEvaluator/prompts.json Minor formatting and ordering changes
docs/e2eTestPrompts.md Fixed table formatting alignment

@vcolin7 vcolin7 requested a review from anannya03 October 1, 2025 22:11
Copy link
Copy Markdown
Contributor

@anannya03 anannya03 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vcolin7 vcolin7 enabled auto-merge (squash) October 1, 2025 22:22
@vcolin7 vcolin7 disabled auto-merge October 1, 2025 22:22
@vcolin7 vcolin7 merged commit 78289e5 into microsoft:main Oct 2, 2025
26 checks passed
@github-project-automation github-project-automation Bot moved this from Untriaged to Done in Azure MCP Server Oct 2, 2025
colbytimm pushed a commit to colbytimm/microsoft-mcp that referenced this pull request Dec 8, 2025
* Updated low-scoring Kusto command descriptions

* Updated the cluster get command description reduce ambiguity caused by the previous change

* Updated CHANGELOG

* Fixed e2eTestPrompts.md

* Ran tests

* Updated all Kusto descriptions to mention Azure Data Explorer/Kusto/KQL

* Updated results

* Updated CHANGELOG
@vcolin7 vcolin7 deleted the description-tuning/kusto-under-threshold branch January 9, 2026 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tools-Kusto tools-ToolSelection Issues related to the Tools Description Evaluator and incorrect tool selection by LLMs

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants