Sisk

Class

McpTool

Namespace
Sisk.ModelContextProtocol
Assembly
Sisk.ModelContextProtocol.dll

Represents a tool that can be hosted and executed by an MCP server.

C#
public sealed class McpTool

Inheritance #

object ← McpTool

Inherited Members #

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors #

NameDescription
McpTool(string, string, JsonSchema, McpToolHandler, string?)Initializes a new instance of the McpTool class.

Properties #

NameDescription
DescriptionGets a description of what the tool does.
ExecuteAsyncGets or sets the handler function that will be executed when the tool is invoked.
NameGets the unique name of the tool.
SchemaGets the JSON schema that defines the expected input arguments for the tool.
TitleGets the display title of the tool. If null, the Name will be used.

Type to search the documentation and the API reference.