Class McpTool
- Namespace
- Sisk.ModelContextProtocol
- Assembly
- Sisk.ModelContextProtocol.dll
Represents a tool that can be hosted and executed by an MCP server.
public sealed class McpTool
- Inheritance
-
McpTool
- Inherited Members
Constructors
- McpTool(string, string, JsonSchema, McpToolHandler, string?)
Initializes a new instance of the McpTool class.
Properties
- 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.