MCPTool Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
MCP tool.
public class MCPTool : Azure.AI.AgentServer.Responses.Models.Tool, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Responses.Models.MCPTool>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Responses.Models.MCPTool>
type MCPTool = class
inherit Tool
interface IJsonModel<MCPTool>
interface IPersistableModel<MCPTool>
Public Class MCPTool
Inherits Tool
Implements IJsonModel(Of MCPTool), IPersistableModel(Of MCPTool)
- Inheritance
- Implements
Constructors
| Name | Description |
|---|---|
| MCPTool(String) |
Initializes a new instance of MCPTool. |
Properties
| Name | Description |
|---|---|
| AllowedTools |
Gets or sets the AllowedTools. To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions). To assign an already formatted json string to this property use FromString(String). <remarks> Supported types:
Examples:
|
| Authorization |
An OAuth access token that can be used with a remote MCP server, either with a custom MCP server URL or a service connector. Your application must handle the OAuth authorization flow and provide the token here. |
| ConnectorId |
Identifier for service connectors, like those available in ChatGPT. One of
|
| Headers |
Gets or sets the Headers. |
| ProjectConnectionId |
The connection ID in the project for the MCP server. The connection stores authentication and other connection details needed to connect to the MCP server. |
| RequireApproval |
Gets or sets the RequireApproval. To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions). To assign an already formatted json string to this property use FromString(String). <remarks> Supported types:
Examples:
|
| ServerDescription |
Optional description of the MCP server, used to provide more context. |
| ServerLabel |
A label for this MCP server, used to identify it in tool calls. |
| ServerUrl |
The URL for the MCP server. One of |