Skip to content

Improve Azure Deploy tool descriptions and e2e test prompts#2023

Merged
g2vinay merged 5 commits intomicrosoft:mainfrom
g2vinay:fix/deploy-tool-descriptions
Mar 13, 2026
Merged

Improve Azure Deploy tool descriptions and e2e test prompts#2023
g2vinay merged 5 commits intomicrosoft:mainfrom
g2vinay:fix/deploy-tool-descriptions

Conversation

@g2vinay
Copy link
Copy Markdown
Contributor

@g2vinay g2vinay commented Mar 12, 2026

Improve deploy tool description relevance scores

Fixes #1994. Updates the three Azure Deploy tool descriptions and their corresponding e2eTestPrompts to improve LLM accuracy.

Changes

  • Updated RulesGetCommand.cs, GuidanceGetCommand.cs, and GetCommand.cs (Plan) — descriptions now include richer, intent-specific vocabulary that better matches real user queries
  • Updated e2eTestPrompts.md — broader, more representative prompts for all three deploy tools

Validation

Tool Before After
deploy_iac_rules_get 0.508 0.836
deploy_pipeline_guidance_get 0.661 0.786
deploy_plan_get 0.614 0.739

Fixes microsoft#1994 - E2E test prompts in Azure Deploy do not trigger corresponding
MCP tools in All and Namespace mode.

Changes:
- DiagramGenerateCommand: Fix concatenation bug (missing spaces between
  sentences), rewrite description to lead with user-facing purpose and
  use 'generate/create/visualize architecture diagram' keywords
- RulesGetCommand: Replace 'guidelines' language with explicit 'rules and
  best practices' keywords that match natural user prompts; now scores
  above bicepschema_get (0.5077 vs 0.4591)
- GuidanceGetCommand: Remove 'DO NOT call this tool' negative instruction
  that suppressed tool selection; lead with CI/CD pipeline creation purpose
- GetCommand (Plan): Replace 'Entry point to help the agent' jargon with
  user-facing 'Creates a deployment plan' language; score improved from
  0.5870 (rank microsoft#3) to 0.7173 (rank microsoft#1, tied with actual tool)
- e2eTestPrompts.md: Update Azure Deploy test prompts to match the simpler
  natural-language prompts from the issue report

Evaluator improvements (ToolDescriptionEvaluator scores):
  deploy_architecture_diagram_generate: 0.7260 -> 0.7486 (rank microsoft#2 -> microsoft#1 tie)
  deploy_iac_rules_get: 0.4312 -> 0.5077 (rank microsoft#2 -> microsoft#1 tie, beats bicepschema_get)
  deploy_pipeline_guidance_get: 0.6396 -> 0.6614 (rank microsoft#2 -> microsoft#1 tie)
  deploy_plan_get: 0.5870 -> 0.7173 (rank microsoft#3 -> microsoft#1 tie)
…scores

- Append 'Use when user asks: ...' echo phrases to original descriptions
  for RulesGetCommand, GuidanceGetCommand, and Plan/GetCommand
- Update e2eTestPrompts.md with broader prompts that match the echo phrases

Scores before/after:
  deploy_iac_rules_get:        0.508 -> 0.840
  deploy_pipeline_guidance_get: 0.661 -> 0.810
  deploy_plan_get:             0.714 -> 0.808

Closes microsoft#1994
@g2vinay g2vinay marked this pull request as ready for review March 12, 2026 19:49
@g2vinay g2vinay requested a review from qianwens as a code owner March 12, 2026 19:49
Copilot AI review requested due to automatic review settings March 12, 2026 19:49
@g2vinay g2vinay requested review from a team, wchigit and xfz11 as code owners March 12, 2026 19:49
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 updates the Azure Deploy tool descriptions and the end-to-end test prompt examples to provide clearer “when to use this tool” guidance for agents/users interacting with the Deploy toolset.

Changes:

  • Rewrites several Deploy tool Description strings to be more explicit about intended usage (plan generation, pipeline guidance, IaC rules, architecture diagram generation).
  • Updates the Azure Deploy entries in e2eTestPrompts.md to match the revised wording/style of the tools.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tools/Azure.Mcp.Tools.Deploy/src/Commands/Plan/GetCommand.cs Updates tool description for deployment plan generation.
tools/Azure.Mcp.Tools.Deploy/src/Commands/Pipeline/GuidanceGetCommand.cs Updates tool description for CI/CD pipeline guidance generation.
tools/Azure.Mcp.Tools.Deploy/src/Commands/Infrastructure/RulesGetCommand.cs Updates tool description for IaC rules/best practices retrieval.
tools/Azure.Mcp.Tools.Deploy/src/Commands/Architecture/DiagramGenerateCommand.cs Replaces concatenated description with a multi-line raw string description for diagram generation.
servers/Azure.Mcp.Server/docs/e2eTestPrompts.md Updates Azure Deploy test prompts to align with new tool descriptions.

Comment thread tools/Azure.Mcp.Tools.Deploy/src/Commands/Plan/GetCommand.cs Outdated
Comment thread tools/Azure.Mcp.Tools.Deploy/src/Commands/Architecture/DiagramGenerateCommand.cs Outdated
Comment thread servers/Azure.Mcp.Server/docs/e2eTestPrompts.md
@g2vinay g2vinay force-pushed the fix/deploy-tool-descriptions branch from c6d997f to 3aaa040 Compare March 12, 2026 20:26
@g2vinay g2vinay force-pushed the fix/deploy-tool-descriptions branch from 75a0b8e to df56ea6 Compare March 13, 2026 00:17
@g2vinay g2vinay requested a review from joshfree March 13, 2026 00:43
Copy link
Copy Markdown
Contributor

@vcolin7 vcolin7 left a comment

Choose a reason for hiding this comment

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

Just a small comment on the changelog entry. Not a blocker

Comment thread servers/Azure.Mcp.Server/changelog-entries/1773360924335.yaml Outdated
Co-authored-by: vcolin7 <vicolina@microsoft.com>
@g2vinay g2vinay requested a review from vcolin7 March 13, 2026 01:09
@github-project-automation github-project-automation Bot moved this from Untriaged to In Progress in Azure MCP Server Mar 13, 2026
@g2vinay g2vinay merged commit c9a8bc8 into microsoft:main Mar 13, 2026
16 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Azure MCP Server Mar 13, 2026
colbytimm pushed a commit to colbytimm/microsoft-mcp that referenced this pull request Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[All & Namespace mode] E2E test prompts in Azure Deploy do not trigger corresponding MCP tools

5 participants