Disambiguate top-N recommendation ranking, result limits, and Advisor/Optimization routing

Aperta
#4,070 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@conniey ci sta già lavorando.

Dal 30/10/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

needs-team-attention server-Azure.Mcp tools-Advisor tools-Core tools-Optimization

Summary

Separate ranking/result-limit ambiguity from the oversized-discovery investigation in microsoft/mcp#4068. Ranking support already exists; the problem is distinguishing ranked recommendation types, ranked individual records, capped lists, and overlapping Advisor/Optimization ownership.

The original October 27 Vally run advertised these capabilities:

Command Existing behavior
advisor_recommendation_summary prioritized: true ranks active recommendation types; top caps ranked groups. Supports impact, category, resource, and other filters.
advisor_recommendation_list Returns individual records. top alone caps results; it is not ranking. prioritized: true orders records within a specified recommendation-type-id.
optimization_recommendation_list Returns individual cost-saving recommendations ranked by impact and currency-normalized annual savings, capped by top.

Advisor's summary description both calls the tool "aggregate-only" and directs broad "top recommendations" requests to its prioritized mode. Optimization also claims cost-saving recommendation requests. This creates a semantic/routing overlap; a separate generic ranking MCP tool is not demonstrably missing.

Affected prompts and observed selection

Case labels identify the original run only; regenerated numbers can change.

Original case Exact prompt Grader expected Observed selection
advisor evaluation 105 Show me the top 10 medium-impact Advisor recommendations in subscription <subscription> advisor_recommendation_summary advisor_recommendation_list with impact: Medium and unsupported limit: 10; retry removed limit without supplying top.
advisor evaluation 56 List Cost recommendations with resource type Microsoft.Storage/storageAccounts, resource <resource-id>, search encryption, subcategory ZoneResiliency, and top 5 in subscription <subscription> advisor_recommendation_list optimization_recommendation_list with top: 5; the requested resource/type/search/subcategory filters were not passed.
optimization evaluation 3 Show me the top cost-saving recommendations for my subscription optimization_recommendation_list advisor_recommendation_summary with category: Cost and prioritized: true.

The first prompt does not clearly distinguish ten recommendation types from ten individual records. The second mixes detailed record filters with "top 5", which may mean a result cap rather than ranking. The third exposes overlapping cost-ranking routes.

Actions and acceptance criteria

  • Define canonical routing for ranked types, ranked records within a type, capped filtered lists, and cost-saving recommendations.
  • Decide whether ambiguous prompts should name the result unit/ranking criterion or permit multiple semantically valid routes; do not assume every grader expectation is correct.
  • Make namespace, command, and option descriptions consistent about ranking versus result limits, particularly summary's "aggregate-only" wording and Advisor/Optimization ownership.
  • Preserve requested counts and filters. Use the supported top parameter, not limit; never silently drop unsupported filters by switching namespaces.
  • Add focused tool-selection evaluations distinguishing the above intents, then rerun the three exact prompts with the same model/environment before removing investigation-required.

These are tool-selection evaluations. Successful Azure execution is not required to pass. Two of these three cases also encountered file-backed discovery previews, so output size remains a possible contributor, not the established cause.

Related: microsoft/mcp#4068 (discovery investigation), microsoft/mcp#3715 (progressive disclosure), microsoft/vally#1393 (retain large-output evidence).

Lingua principale
C#
Stelle
3.9k
Fork
689
Merge medio
2g 11h
PR unite (30g)
143

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/mcp

Tutte le issue di microsoft/mcp

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.