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
stringThe unique name of the tool.
description
stringA description of what the tool does.
schema
JsonSchemaThe JSON schema defining the tool's input arguments.
executionHandler
McpToolHandlerThe handler function that will be executed when the tool is invoked.
title
stringThe optional display title of the tool.