[Doc Gap] azmcp-commands.md missing standard metadata annotation for azqr commands after LocalRequired change (PR #3503)
Documentation Gap
Server: Azure.Mcp.Server
Tool directory: tools/Azure.Mcp.Tools.Extension
Triggered by: 040fb3ee4a31d55463b53ae0b0607b6f1a02c3e6 (PR #3503) by @g2vinay
Changed files: servers/Azure.Mcp.Server/docs/azmcp-commands.md, servers/Azure.Mcp.Server/src/Resources/consolidated-tools.json, tools/Azure.Mcp.Tools.Extension/src/Commands/AzqrCommand.cs, tools/Azure.Mcp.Tools.Extension/src/ExtensionSetup.cs
What Changed
PR #3503 fixed azqr (Azure Quick Review CLI) tool discovery by introducing a version-checking AzqrCliService, changed the AzqrCommand metadata attribute LocalRequired from false to true, and updated consolidated-tools.json accordingly (localRequired.value: true). The tool is now conditionally registered at runtime only when a supported azqr CLI (v3.0.0+) is present on PATH. Because this tool is absent from azmcp tools list output in CI (no azqr CLI installed), the automated eng/scripts/Update-AzCommandsMetadata.ps1 regeneration step cannot pick up its metadata, so the PR manually removed the old (now-incorrect) metadata annotation lines for the two azqr example commands instead of replacing them with corrected ones.
Gaps Found
- Every other command section in
azmcp-commands.mdhas a# ❌/✅ Destructive | ... | LocalRequiredannotation comment directly above each example command (see### Azure AI Services Speech Operationsfor the✅ LocalRequiredpattern). The### Azure Quick Review CLI Operationssection is now the only one where these per-command metadata annotation lines are missing entirely, breaking the file's consistent documented structure. - The
LocalRequiredflag was flipped totrueforextension_azqr, but this is only expressed via a prose sentence above the code block ("These local-only commands are available when..."), not via the standard annotation line that every other command uses — making the doc inconsistent and harder to scan/parse for tooling that may rely on the annotation format. - Because
azqris conditionally registered (skipped in CI via$conditionallyRegisteredToolsinTest-ToolSelectionPrompts.ps1), the normal auto-regeneration path (Update-AzCommandsMetadata.ps1, which runsazmcp tools list) will never restore these annotation lines automatically in an environment withoutazqrinstalled — this needs to be fixed manually or the script/process needs to account for conditionally-registered tools.
Files to Update
- [ ]
servers/Azure.Mcp.Server/docs/azmcp-commands.md
Context
Current state of the affected section (missing annotation lines):
### Azure Quick Review CLI Operations
These local-only commands are available when Azure Quick Review CLI (`azqr`) version 3.0.0 or later is installed and available on `PATH`.
\`\`\`bash
# Scan a subscription for recommendations
azmcp extension azqr --subscription <subscription>
# Scan a subscription and scope to a specific resource group
azmcp extension azqr --subscription <subscription> \
--resource-group <resource-group-name>
\`\`\`
Diff from the triggering commit showing the removal without replacement:
```bash
# Scan a subscription for recommendations
-# ❌ Destructive | ✅ Idempotent | ❌ OpenWorld | ✅ ReadOnly | ❌ Secret | ❌ LocalRequired
azmcp extension azqr --subscription <subscription>
# Scan a subscription and scope to a specific resource group
-# ❌ Destructive | ✅ Idempotent | ❌ OpenWorld | ✅ ReadOnly | ❌ Secret | ❌ LocalRequired
azmcp extension azqr --subscription <subscription> \
--resource-group <resource-group-name>
<details>
<summary><strong>📐 Implementation Guide</strong></summary>
This section contains step-by-step instructions for a coding agent to implement the changes described above
### Step 1: Modify files
**`servers/Azure.Mcp.Server/docs/azmcp-commands.md`** — edit (restore corrected metadata annotation lines for both `azqr` example commands under `### Azure Quick Review CLI Operations`, using the now-correct `✅ LocalRequired` value):
```markdown
```bash
# Scan a subscription for recommendations
# ❌ Destructive | ✅ Idempotent | ❌ OpenWorld | ✅ ReadOnly | ❌ Secret | ✅ LocalRequired
azmcp extension azqr --subscription <subscription>
# Scan a subscription and scope to a specific resource group
# ❌ Destructive | ✅ Idempotent | ❌ OpenWorld | ✅ ReadOnly | ❌ Secret | ✅ LocalRequired
azmcp extension azqr --subscription <subscription> \
--resource-group <resource-group-name>
Keep the existing prose sentence about the `azqr` v3.0.0+ prerequisite above the code block; it complements (does not replace) the per-command metadata annotation convention used throughout the rest of the file.
Additionally, consider updating `eng/scripts/Update-AzCommandsMetadata.ps1` (or documenting a manual step in `CONTRIBUTING.md`/`docs/recorded-tests.md`) so that conditionally-registered tools like `extension_azqr` — which are intentionally absent from `azmcp tools list` output in environments lacking the external CLI dependency — are not silently dropped from metadata regeneration. One option is to maintain a static fallback metadata source (e.g., read from `consolidated-tools.json`, which already contains the correct `localRequired: true` value for `extension_azqr`) for tools missing from the live `tools list` output.
### Step 2: Verify documentation structure
**`servers/Azure.Mcp.Server/docs/azmcp-commands.md`** — must include:
- A global options table at the top (subscription, resource-group, tenant)
- One `## azmcp <service> <resource> <operation>` section per command, containing a description, parameters table, and example usage block
- A `# ❌/✅ Destructive | ✅/❌ Idempotent | ❌/✅ OpenWorld | ✅/❌ ReadOnly | ❌/✅ Secret | ❌/✅ LocalRequired` annotation line directly above every example `azmcp ...` command, matching the tool's actual metadata (see `consolidated-tools.json` for ground truth, e.g. `extension_azqr` → `localRequired.value: true`)
### Step 3: Validate
Run these commands in order. Each must succeed before proceeding to the next:
1. `dotnet build servers/Azure.Mcp.Server/` — confirms the server project compiles cleanly
2. `dotnet build tools/Azure.Mcp.Tools.Extension/src/` — confirms the affected toolset compiles
3. `dotnet test tools/Azure.Mcp.Tools.Extension/tests/Azure.Mcp.Tools.Extension.Tests/ --filter "TestType!=Live"` — runs unit tests for the affected toolset
4. `.\eng\common\spelling\Invoke-Cspell.ps1` — checks spelling in new or modified documentation
</details>
## Next Steps
> [!TIP]
> **Ready for automated implementation?** Assign this issue to **@copilot** to have Copilot coding agent implement the changes described in the Implementation Guide above
> Generated by [Documentation Updater](https://github.com/microsoft/mcp/actions/runs/37079632509) · copilot · auto · 63.9 AIC · ⌖ 5.03 AIC · ⊞ 11.2K · [◷](https://github.com/search?q=repo%3Amicrosoft%2Fmcp+is%3Aissue+%22gh-aw-workflow-call-id%3A+microsoft%2Fmcp%2Fdoc-gap-detector%22&type=issues)
<!-- gh-aw-agentic-workflow: Documentation Updater, engine: copilot, model: auto, id: 37079632509, workflow_id: doc-gap-detector, run: https://github.com/microsoft/mcp/actions/runs/37079632509 -->
<!-- gh-aw-workflow-id: doc-gap-detector -->
<!-- gh-aw-workflow-call-id: microsoft/mcp/doc-gap-detector -->
I'd like to work on this — please assign it to me. I'll open a PR shortly.
I'd like to work on this. I'll add the missing metadata annotations. Please let me know if it's still available.