Motivation
Cosmos DB search results can be large (thousands of rows, embeddings, hybrid-search hits). Under direct tool calling, the full result set flows through the model; under Code Mode (Anthropic post), the client would prefer to receive only what it will actually project. Reducing at the server saves tokens for every client, not just Code-Mode clients.
Scope — extend the following tools
text_search
vector_search
hybrid_search
get_recent_documents
New optional parameters
projection: string[] — dotted field paths to include (maps to SQL SELECT)
maxResults: int — hard cap (existing default preserved for back-compat)
continuationToken: string — for pagination
summaryOnly: bool — return { count, ids[], continuationToken } only
Acceptance criteria
Related
Part of the "Code Mode" support umbrella.
Motivation
Cosmos DB search results can be large (thousands of rows, embeddings, hybrid-search hits). Under direct tool calling, the full result set flows through the model; under Code Mode (Anthropic post), the client would prefer to receive only what it will actually project. Reducing at the server saves tokens for every client, not just Code-Mode clients.
Scope — extend the following tools
text_searchvector_searchhybrid_searchget_recent_documentsNew optional parameters
projection: string[]— dotted field paths to include (maps to SQLSELECT)maxResults: int— hard cap (existing default preserved for back-compat)continuationToken: string— for paginationsummaryOnly: bool— return{ count, ids[], continuationToken }onlyAcceptance criteria
McpToolRequestValidator)docs/USE-CASES.mdupdated with examplesRelated
Part of the "Code Mode" support umbrella.