Evaluation Azure AI Search for pagination

Open
#4,335 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
azure, csharp, github

Research direction

Start with tools/Azure.Mcp.Tools.Search/src/Services/SearchService.cs and IndexQueryCommand.cs, then review docs/tool-pagination.md and the Azure AI Search SDK continuation support for text, vector, and semantic queries. Establish supported modes, limits, and ordering consistency before choosing a cursor contract; acceptance requires tests for paging, terminal and empty responses, opaque tokens, and changed inputs. Document any unsupported modes and the result limit decision.

Written by the indexing model from the issue text.

Description

enhancement needs-team-triage server-Azure.Mcp tools-Search

Evaluate cursor pagination for Azure AI Search queries

Context

IndexQueryCommand returns search results through SearchService.QueryIndex, which sets SearchOptions.Size = 20 and enumerates the result set. Continuing beyond the present top-20 behavior would be a contract change.

Work

  • Verify which continuation or offset mechanisms the existing Azure AI Search SDK and API support for the tool's text, vector, and semantic query modes, including limits and ordering consistency.
  • If a valid continuation strategy exists, add the standard cursor contract and bind it to service, index, search text, query mode, semantic configuration, and any other fixed search inputs.
  • Decide whether a page means a subset of the existing top 20 or whether the tool should expose further matches. Preserve current behavior until a migration decision is made; explicitly document result ordering and any service limits.

Acceptance criteria

  • Tests exercise supported modes, first and subsequent pages, terminal and empty responses, opaque token handling, and changed-input rejection.
  • Preserve the existing result wrapper and source-generated serialization; document and test any intentional change to the result limit.
  • If the backend does not support a safe continuation for a mode, document that limitation rather than returning an unreliable cursor.

References

  • tools/Azure.Mcp.Tools.Search/src/Commands/Index/IndexQueryCommand.cs
  • tools/Azure.Mcp.Tools.Search/src/Services/SearchService.cs
  • docs/tool-pagination.md
Dominant language
C#
Stars
3.9k
Forks
689
Avg merge
2d 11h
Merged PRs (30d)
143

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/mcp

All issues in microsoft/mcp

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.