MCPToolboxTool 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.
An MCP tool stored in a toolbox.
public class MCPToolboxTool : Azure.AI.Projects.Agents.ToolboxTool, System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.Agents.MCPToolboxTool>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.Agents.MCPToolboxTool>
type MCPToolboxTool = class
inherit ToolboxTool
interface IJsonModel<MCPToolboxTool>
interface IPersistableModel<MCPToolboxTool>
Public Class MCPToolboxTool
Inherits ToolboxTool
Implements IJsonModel(Of MCPToolboxTool), IPersistableModel(Of MCPToolboxTool)
- Inheritance
- Implements
Constructors
| Name | Description |
|---|---|
| MCPToolboxTool(String) |
Initializes a new instance of MCPToolboxTool. |
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: </remarks>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
|
| DeferLoading |
Whether this MCP tool is deferred and discovered via tool search. |
| Description |
Optional user-defined description for this tool or configuration. (Inherited from ToolboxTool) |
| Headers |
Gets or sets the Headers. |
| Name |
Optional user-defined name for this tool or configuration. (Inherited from ToolboxTool) |
| 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. |
| 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. |
| ServerUri |
The URI of an MCP server. |
| ToolCallApprovalPolicy |
The approval policy used by the tool. |
| ToolConfigs |
Per-tool configuration map. Keys are tool names or |