SearchModelFactory.McpServerTool Method

Definition

Represents a single tool within an MCP server knowledge source.

public static Azure.Search.Documents.Indexes.Models.McpServerTool McpServerTool(string name = default, Azure.Search.Documents.Indexes.Models.McpServerOutputParsing outputParsing = default, Azure.Search.Documents.Indexes.Models.McpServerToolInclusionMode? inclusionMode = default, int? maxOutputTokens = default);
static member McpServerTool : string * Azure.Search.Documents.Indexes.Models.McpServerOutputParsing * Nullable<Azure.Search.Documents.Indexes.Models.McpServerToolInclusionMode> * Nullable<int> -> Azure.Search.Documents.Indexes.Models.McpServerTool
Public Shared Function McpServerTool (Optional name As String = Nothing, Optional outputParsing As McpServerOutputParsing = Nothing, Optional inclusionMode As Nullable(Of McpServerToolInclusionMode) = Nothing, Optional maxOutputTokens As Nullable(Of Integer) = Nothing) As McpServerTool

Parameters

name
String

The name of the MCP tool to invoke.

outputParsing
McpServerOutputParsing

Optional configuration for parsing the tool's output.

inclusionMode
Nullable<McpServerToolInclusionMode>

Controls how the parsed results from this tool are integrated into the final result set. Defaults to 'reranked' when not specified.

maxOutputTokens
Nullable<Int32>

Optional post-parsing token cap for this tool's output. Must be greater than 0 when specified.

Returns

A new McpServerTool instance for mocking.

Applies to