McpServerTool Class

Definition

Represents a single tool within an MCP server knowledge source.

public class McpServerTool : System.ClientModel.Primitives.IJsonModel<Azure.Search.Documents.Indexes.Models.McpServerTool>, System.ClientModel.Primitives.IPersistableModel<Azure.Search.Documents.Indexes.Models.McpServerTool>
type McpServerTool = class
    interface IJsonModel<McpServerTool>
    interface IPersistableModel<McpServerTool>
Public Class McpServerTool
Implements IJsonModel(Of McpServerTool), IPersistableModel(Of McpServerTool)
Inheritance
McpServerTool
Implements

Constructors

Name Description
McpServerTool()

Initializes a new instance of McpServerTool.

Properties

Name Description
InclusionMode

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

MaxOutputTokens

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

Name

The name of the MCP tool to invoke.

OutputParsing

Optional configuration for parsing the tool's output.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<McpServerTool>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<McpServerTool>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<McpServerTool>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<McpServerTool>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<McpServerTool>.Write(ModelReaderWriterOptions)

Applies to