Table of Contents

Constructor McpTool

Namespace
Sisk.ModelContextProtocol
Assembly
Sisk.ModelContextProtocol.dll

McpTool(string, string, JsonSchema, McpToolHandler, string?)

Initializes a new instance of the McpTool class.

public McpTool(string name, string description, JsonSchema schema, McpToolHandler executionHandler, string? title = null)

Parameters

name string

The unique name of the tool.

description string

A description of what the tool does.

schema JsonSchema

The JSON schema defining the tool's input arguments.

executionHandler McpToolHandler

The handler function that will be executed when the tool is invoked.

title string

The optional display title of the tool.