Interface IMcpTool

MCP tool type.

IMcpTool is an interface representing a tool type defined in the MCP (Model Context Protocol).

Note that, don't be confused with IMcpLlmFunction type, that is used for McpLlm.application which converts this IMcpTool type to the IMcpLlmFunction type.

Don't be confused with IMcpLlmFunction

Jeongho Nam - https://github.com/samchon

interface IMcpTool {
    description?: string;
    inputSchema: IInputSchema;
    name: string;
}

Properties

description?: string

Description of the tool.

inputSchema: IInputSchema

Input schema of the tool.

The input schema, parameters of the tool.

As MCP (Model Context Protocol) does not restict the JSON schema specification, @samchon/openapi has defined it to be universal structure OpenApiV3_1.IJsonSchema which can cover every JSON schema specification.

name: string

Name of the tool.

64