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
AnnotationsGets or sets optional hints describing the behavior of this tool.
DescriptionGets a description of what the tool does.
ExecuteAsyncGets or sets the handler function that will be executed when the tool is invoked.
IconsGets or sets the icons that clients can display for this tool.
NameGets the unique name of the tool.
OutputSchemaGets or sets the JSON schema that defines the structured output of this 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.