Class
McpTool
Represents a tool that can be hosted and executed by an MCP server.
public sealed class McpToolInheritance #
Inherited Members #
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors #
| Name | Description |
|---|---|
| McpTool(string, string, JsonSchema, McpToolHandler, string?) | Initializes a new instance of the McpTool class. |
Properties #
| Name | Description |
|---|---|
| Description | Gets a description of what the tool does. |
| ExecuteAsync | Gets or sets the handler function that will be executed when the tool is invoked. |
| Name | Gets the unique name of the tool. |
| Schema | Gets the JSON schema that defines the expected input arguments for the tool. |
| Title | Gets the display title of the tool. If null, the Name will be used. |