VoiceAgentMcpTool 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 available to a voice agent.
public class VoiceAgentMcpTool : Azure.AI.Projects.Agents.VoiceAgentTool, System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.Agents.VoiceAgentMcpTool>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.Agents.VoiceAgentMcpTool>
type VoiceAgentMcpTool = class
inherit VoiceAgentTool
interface IJsonModel<VoiceAgentMcpTool>
interface IPersistableModel<VoiceAgentMcpTool>
Public Class VoiceAgentMcpTool
Inherits VoiceAgentTool
Implements IJsonModel(Of VoiceAgentMcpTool), IPersistableModel(Of VoiceAgentMcpTool)
- Inheritance
- Implements
Constructors
| Name | Description |
|---|---|
| VoiceAgentMcpTool(String) |
Initializes a new instance of VoiceAgentMcpTool. |
Properties
| Name | Description |
|---|---|
| AllowedCallers |
Gets or sets the AllowedCallers. |
| 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. |
| DeferLoading |
Whether this MCP tool is deferred and discovered via tool search. |
| 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:
|
| ResponseScheduling |
When the MCP invocation creates a follow-up response. Defaults to |
| 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. |
| ToolConfigs |
Deprecated. This property is deprecated and will be removed in a future version. |